| | |
| | | SafeSignalField.SAFE_SIGNAL_FROM_CONVEYOR.buildAddress(), |
| | | (short) (staNoSize * SafeSignalField.SAFE_SIGNAL_FROM_CONVEYOR.getByteLength())); |
| | | |
| | | |
| | | if (!result.IsSuccess) { |
| | | log.warn("读取PLC安全交互信息异常 [id:{}]", slave.getId()); |
| | | return; |
| | |
| | | staProtocolTake.setOutComplete(status2[4]); |
| | | // |
| | | if (status[3]){ |
| | | redis.push(RedisConveyorConstant.CONVEYOR_SAFE_FLAG, new SafeSignal(i,(short)0,true)); |
| | | staProtocolPut.setSafeSignal( new SafeSignal(i, (short) 0, true)); |
| | | redis.push(RedisConveyorConstant.CONVEYOR_SAFE_FLAG,staProtocolPut); |
| | | } |
| | | if (status2[4]){ |
| | | redis.push(RedisConveyorConstant.CONVEYOR_SAFE_FLAG, new SafeSignal(i, (short) 0,false)); |
| | | staProtocolTake.setSafeSignal(new SafeSignal(i, (short) 0, false)); |
| | | redis.push(RedisConveyorConstant.CONVEYOR_SAFE_FLAG, staProtocolTake); |
| | | |
| | | } |
| | | |