| | |
| | | OutputQueue.CRN.offer(MessageFormat.format("【{0}】[id:{1}] <<<<< 实时数据更新成功",DateUtils.convert(new Date()), slave.getId())); |
| | | |
| | | // 复位信号 |
| | | if (crnProtocol.getStatusType().equals(CrnStatusType.WAITING)) { |
| | | log.error("-------------------------------------------第一步、[堆垛机号:{}][工作号:{}]==>> 状态为90,等待确认!!",slave.getId(),crnProtocol.getTaskNo()); |
| | | if (resetFlag) { |
| | | if(crnProtocol.getTaskNo()==9999){ |
| | | backHpFlag = false; |
| | | } |
| | | CrnCommand crnCommand = new CrnCommand(); |
| | | crnCommand.setAckFinish((short)1); |
| | | if (write(crnCommand)) { |
| | | resetFlag = false; |
| | | } |
| | | } |
| | | } |
| | | // if (crnProtocol.getStatusType().equals(CrnStatusType.WAITING)) { |
| | | // log.error("-------------------------------------------第一步、[堆垛机号:{}][工作号:{}]==>> 状态为90,等待确认!!",slave.getId(),crnProtocol.getTaskNo()); |
| | | // if (resetFlag) { |
| | | // if(crnProtocol.getTaskNo()==9999){ |
| | | // backHpFlag = false; |
| | | // } |
| | | // CrnCommand crnCommand = new CrnCommand(); |
| | | // crnCommand.setAckFinish((short)1); |
| | | // if (write(crnCommand)) { |
| | | // resetFlag = false; |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | // 根据实时信息更新数据库 |
| | | BasCrnpService basCrnpService = SpringUtils.getBean(BasCrnpService.class); |