| | |
| | | throw new ProcessException("未获取板卡设备"); |
| | | |
| | | bool? isToPause = null; //true 暂停 false 继续 |
| | | if (opConfig.InputPara != null && opConfig.InputPara.Count > 0) |
| | | //if (opConfig.InputPara != null && opConfig.InputPara.Count > 0) |
| | | //{ |
| | | // isToPause = opConfig.InputPara[0] == 1; |
| | | //} |
| | | if (opConfig.InputPara[0] == 10) |
| | | { |
| | | isToPause = opConfig.InputPara[0] == 1; |
| | | isToPause = false; |
| | | } |
| | | else if (opConfig.InputPara[0] == 11) |
| | | { |
| | | isToPause = true; |
| | | } |
| | | |
| | | if (isToPause == null) |
| | |
| | | [ProcessMethod("", "SafetyBeamSignal", "安全光幕信号监控,正常ON,OFF时报警", InvokeType.TestInvoke)] |
| | | public ProcessResponse SafetyBeamSignal(IOperationConfig opConfig, IDevice invokeDevice, IDevice sourceDevice) |
| | | { |
| | | if (MachineState != MachineState.Running || MachineState != MachineState.Alarm) |
| | | if (MachineState != MachineState.Running && MachineState != MachineState.Alarm) |
| | | return new ProcessResponse(true); |
| | | |
| | | if (opConfig.InputPara == null || opConfig.InputPara.Count == 0) |