| | |
| | | DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); |
| | | deviceErrorService.addDeviceError("crnWriteIng", slave.getId(), "巷道号"+command.getLaneNo()+";堆垛机待下发指令:"+JSON.toJSONString(command.getNowTask())); |
| | | } catch (Exception e){ |
| | | log.error("crnWriteIng新增异常"); |
| | | } |
| | | |
| | | try{ |
| | |
| | | |
| | | try{ |
| | | Thread.sleep(50L); |
| | | } catch (Exception e){} |
| | | } catch (Exception e){log.error("延时异常324行");} |
| | | |
| | | log.info("堆垛机任务写100.0:值:array crnWrite-317行;array:"+JSON.toJSONString(array)); |
| | | OperateResult result = siemensNet.Write("DB100.0", array); |
| | |
| | | i++; |
| | | //堆垛机任务写入后,回读一次,看是否成功 |
| | | try{ |
| | | Thread.sleep(100L); |
| | | } catch (Exception e){} |
| | | Thread.sleep(50L); |
| | | } catch (Exception e){log.error("延时异常335行");} |
| | | |
| | | log.info("堆垛机任务读100.0:值:20 crnWrite-317行;"); |
| | | OperateResultExOne<byte[]> resultRead = siemensNet.Read("DB100.0", (short) 20); |