| | |
| | | if ("0".equals(plcRequest.getValue())&&!"0".equals(mesSend.getValue())) { |
| | | //发送字置0 |
| | | int finishCount=taskingService.finishMachineTask(machine); |
| | | nullMachine(machine); |
| | | log.info("1.发送字置零,清除上次发送的数据{},{},{},{},{}" |
| | | ,finishCount |
| | | ,length.getValue() |
| | |
| | | s7objectMachine.plccontrol.writeWord(mesSendId.getAddress(), 0); |
| | | s7objectMachine.plccontrol.writeWord(rotateType.getAddress(), 0); |
| | | s7objectMachine.plccontrol.writeWord(mesSend.getAddress(), 0); |
| | | |
| | | return; |
| | | } |
| | | if ("1".equals(plcRequestType.getValue())&&"0".equals(mesSendType.getValue())) { |