| | |
| | | |
| | | |
| | | OutputQueue.CRN.offer(MessageFormat.format("【{0}】[id:{1}] <<<<< 实时数据更新成功", DateUtils.convert(new Date()), slave.getId())); |
| | | System.out.println(crnProtocol); |
| | | if (crnProtocol.getMode() == 1) { |
| | | // 复位信号 |
| | | if (!Cools.isEmpty(crnProtocol.getStatusType()) && crnProtocol.getStatusType().equals(CrnStatusType.WAITING)) { |
| | |
| | | CrnCommand crnCommand = new CrnCommand(); |
| | | crnCommand.setAckFinish((short) 1); |
| | | if (write(crnCommand)) { |
| | | resetFlag = false; |
| | | resetFlagTwo = false; |
| | | } |
| | | } |
| | | } |
| | |
| | | crnCommand.setAckFinish((short) 1); |
| | | if (write(crnCommand)) { |
| | | resetFlag = false; |
| | | resetFlagTwo = false; |
| | | } |
| | | } |
| | | } |