| | |
| | | if (command.getAckFinish1().equals((short)0)) { |
| | | // Thread.sleep(100L); |
| | | siemensNet.Write("DB24.10.7", command.getRgvSome() == 1); |
| | | Thread.sleep(100L); |
| | | Thread.sleep(20L); |
| | | result = siemensNet.Write("DB24.10.0", true); |
| | | } else { |
| | | siemensNet.Write("DB24.10.1", true); |
| | |
| | | } catch (Exception ignore) {} |
| | | |
| | | if (result != null && result.IsSuccess) { |
| | | Thread.sleep(200); |
| | | this.readStatus(); |
| | | // Thread.sleep(200); |
| | | // this.readStatus(); |
| | | log.info("RGV 工位1命令下发[id:{}] >>>>> {}", slave.getId(), JSON.toJSONString(command)); |
| | | OutputQueue.RGV.offer(MessageFormat.format("【{0}】[id:{1}] >>>>> 工位1命令下发: {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSONString(command))); |
| | | return true; |
| | |
| | | // OperateResult result = siemensNet.Write("DB24.0", array); |
| | | OperateResult result = null; |
| | | if (command.getAckFinish1().equals((short)0)) { |
| | | Thread.sleep(100L); |
| | | Thread.sleep(20L); |
| | | result = siemensNet.Write("DB24.10.0", true); |
| | | } else { |
| | | siemensNet.Write("DB24.10.1", true); |
| | |
| | | } catch (Exception ignore) {} |
| | | |
| | | if (result != null && result.IsSuccess) { |
| | | Thread.sleep(200); |
| | | this.readStatus(); |
| | | // Thread.sleep(200); |
| | | // this.readStatus(); |
| | | log.info("RGV 工位1命令下发[id:{}] >>>>> {}", slave.getId(), JSON.toJSONString(command)); |
| | | OutputQueue.RGV.offer(MessageFormat.format("【{0}】[id:{1}] >>>>> 工位1命令下发: {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSONString(command))); |
| | | return true; |