| | |
| | | /** |
| | | * 写入数据 |
| | | */ |
| | | private boolean write5(CrnCommand command) throws InterruptedException { |
| | | private synchronized boolean write5(CrnCommand command) throws InterruptedException { |
| | | String methodName = Thread.currentThread().getStackTrace()[1].getMethodName(); |
| | | |
| | | if (null == command) { |
| | |
| | | OperateResult result = siemensNet.Write("DB100.0", array); |
| | | |
| | | int i=0; |
| | | // if(result.IsSuccess){ |
| | | // log.info("堆垛机命令地址写入成功[id:{}]>>>>写入[{}]", slave.getId(),JSON.toJSON(command)); |
| | | // }else{ |
| | | // log.error("堆垛机命令地址写入失败!!![id:{}]>>>>写入[{}]", slave.getId(),JSON.toJSON(command)); |
| | | // } |
| | | do{ |
| | | //堆垛机任务写入后,回读一次,看是否成功 |
| | | Thread.sleep(300); |