| | |
| | | crnProtocol = new CrnProtocol(); |
| | | } |
| | | crnProtocol.setMode((short) -1); |
| | | crnProtocol.setCrnNo(slave.getId()); |
| | | // crnProtocol.setTaskNo((short)0); |
| | | crnProtocol.setStatus((short)-1); |
| | | crnProtocol.setBay((short)0); |
| | |
| | | } |
| | | }while (writeCount2<5); |
| | | } |
| | | } else { |
| | | BasCrnpService basCrnpService = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = basCrnpService.selectById(slave.getId()); |
| | | basCrnp.setModiTime(new Date()); |
| | | basCrnpService.updateById(basCrnp); |
| | | // log.info("更新{}号堆垛机执行任务完成复位时间",slave.getId()); |
| | | } |
| | | |
| | | try { |