#
luxiaotao1123
2020-08-29 1059e2e1706d9dd189b779631ce10a26b990c700
src/main/java/com/zy/core/thread/CrnThread.java
@@ -180,13 +180,14 @@
        OutputQueue.CRN.offer(MessageFormat.format("【{0}】[id:{1}] <<<<< 实时数据更新成功",DateUtils.convert(new Date()), slave.getId()));
//        if (crnProtocol.getStatusType().equals(CrnStatusType.WAITING)) {
//            if (resetFlag) {
//                if (melsecMcNet.Write("D2218", 1).IsSuccess) {
//                    resetFlag = false;
//                }
//            }
//        }
        // 复位信号
        if (crnProtocol.getStatusType().equals(CrnStatusType.WAITING)) {
            if (resetFlag) {
                if (melsecMcNet.Write("D2218", (short) 1).IsSuccess) {
                    resetFlag = false;
                }
            }
        }
        // 根据实时信息更新数据库
//        BasCrnpService basCrnpService = SpringUtils.getBean(BasCrnpService.class);
@@ -237,7 +238,7 @@
                if (!melsecMcNet.Write("D2218", command.getAckFinish()).IsSuccess) { break; }
            }
            System.out.println(MessageFormat.format("【{0}】[id:{1}] >>>>> {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSON(command)));
            log.info("堆垛机命令下发[id:{}] >>>>> {}", slave.getId(), JSON.toJSON(command));
            OutputQueue.CRN.offer(MessageFormat.format("【{0}】[id:{1}] >>>>> 命令下发: {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSON(command)));
            return;