| | |
| | | command.setDestinationPosZ((short)0); // 目标库位层 |
| | | write(command); |
| | | break; |
| | | // 复位 |
| | | case 4: |
| | | CrnCommand command4 = (CrnCommand) task.getData(); |
| | | write(command4); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | if (System.currentTimeMillis()-currentTimeMilliConnectCrn>1000*60*10){ |
| | | try{ |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("Crn", slave.getId(), "读取堆垛机plc状态信息失败"); |
| | | deviceErrorService.addDeviceError("CrnErr", slave.getId(), "读取堆垛机plc状态信息失败"); |
| | | } catch (Exception e2){ |
| | | Thread.sleep(1000); |
| | | // log.error("e2:"+e2.getMessage()); |