| | |
| | | * 堆垛机回原点 |
| | | */ |
| | | public synchronized void originGo() throws InterruptedException { |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "autoHome").eq("status", 1)); |
| | | if (config == null || Cools.isEmpty(config.getValue()) || !config.getValue().equals("Y")) { |
| | | return; |
| | | } |
| | | |
| | | for (CrnSlave crn : slaveProperties.getCrn()) { |
| | | // 获取堆垛机信息 |
| | |
| | | basCrnpService.updateById(basCrnp); // 设置更新时间,避免重复下发回原点 |
| | | log.info("{}号堆垛机回原点任务下发成功:{}", crn.getId(), JSON.toJSON(crnCommand)); |
| | | } |
| | | Thread.sleep(3000); |
| | | Thread.sleep(4000); |
| | | } |
| | | } |
| | | } |