| | |
| | | if (commandTaskMode.equals(CrnTaskModeType.RESET.id)) { |
| | | commandTaskNo = 0; |
| | | commandTaskMode = 0; |
| | | |
| | | if (!Cools.isEmpty(command.getLocNo())){ |
| | | OperateResult resultAck = siemensNet.Write("DB110." + command.getIndex() * 2, command.getValue()); |
| | | if (resultAck.IsSuccess) { |
| | | Integer index = command.getIndex()*2 + 200; |
| | | OperateResult resultAck1 = siemensNet.Write("DB110." + index, command.getValue()); |
| | | if (resultAck1.IsSuccess) { |
| | | News.info("库位橙色按钮命令下发[locNo:{}] >>>>> {}", command.getLocNo(), command.getValue()); |
| | | } else { |
| | | News.error("库位白色灯命令下发失败[locNo:{}] >>>>> {}", command.getLocNo(), command.getValue()); |
| | | } |
| | | News.info("库位白色灯命令下发[locNo:{}] >>>>> {}", command.getLocNo(), command.getValue()); |
| | | } else { |
| | | News.error("库位白色灯命令下发失败[locNo:{}] >>>>> {}", command.getLocNo(), command.getValue()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | short[] array = new short[9]; |