| | |
| | | if (command.getAckFinish() == 1) { |
| | | result = siemensNet.Write("DB100.0", (short) 1); |
| | | } else { |
| | | // 先清除下发确认位 |
| | | siemensNet.Write("DB100.18",(short) 0); |
| | | command.setCrnNo(slave.getId()); |
| | | short[] array = new short[10]; |
| | | array[0] = command.getAckFinish(); |
| | |
| | | if (command.getAckFinish() == 1) { |
| | | result = siemensNet.Write("DB100.0", (short) 1); |
| | | } else { |
| | | // 先清除下发确认位 |
| | | siemensNet.Write("DB100.18",(short) 0); |
| | | command.setCrnNo(slave.getId()); |
| | | short[] array = new short[10]; |
| | | array[0] = command.getAckFinish(); |
| | |
| | | array[7] = command.getDestinationPosY(); |
| | | array[8] = command.getDestinationPosZ(); |
| | | array[9] = command.getCommand(); |
| | | Thread.sleep(200); // 延迟写入 |
| | | result = siemensNet.Write("DB100.0", array); |
| | | log.info(JSON.toJSONString(array)); |
| | | |