| | |
| | | News.info("写入安全信号成功 [id:{}] [siteId:{}] [workNo:{}] [destSta:{}] [retry:{}]", |
| | | staProtocol.getPlcId(), staProtocol.getSiteId(), staProtocol.getWorkNo(), |
| | | staProtocol.getStaNo(), writeCount); |
| | | OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入安全信号输送线命令成功。输送线plc编号={1},站点数据={2}", |
| | | OutputQueue.DEVP.offer(MessageFormat.format("写入安全信号输送线命令成功。输送线plc编号={0},站点数据={1}", |
| | | staProtocol.getPlcId(), staProtocol.getSafeSignalData())); |
| | | success = true; |
| | | break; |
| | |
| | | } |
| | | |
| | | if (!success) { |
| | | String errorMsg = MessageFormat.format("【{0}】写入安全信号失败。输送线plc编号={1},站点数据={2}", |
| | | String errorMsg = MessageFormat.format("写入安全信号失败。输送线plc编号={0},站点数据={1}", |
| | | staProtocol.getPlcId(), staProtocol.getSafeSignalData()); |
| | | OutputQueue.DEVP.offer(errorMsg); |
| | | News.error("SiemensDevp - 4 - 写入安全信号失败。输送线plc编号={},站点数据={}", |
| | |
| | | News.info("写入输送线命令成功 [id:{}] [siteId:{}] [workNo:{}] [destSta:{}] [retry:{}]", |
| | | staProtocol.getPlcId(), staProtocol.getSiteId(), staProtocol.getWorkNo(), |
| | | staProtocol.getStaNo(), writeCount); |
| | | OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线命令成功。输送线plc编号={1},站点数据={2}", |
| | | OutputQueue.DEVP.offer(MessageFormat.format("写入输送线命令成功。输送线plc编号={0},站点数据={1}", |
| | | staProtocol.getPlcId(), staProtocol.getTaskData())); |
| | | success = true; |
| | | break; |
| | |
| | | } |
| | | |
| | | if (!success) { |
| | | String errorMsg = MessageFormat.format("【{0}】写入输送线站点数据失败。输送线plc编号={1},站点数据={2}", |
| | | String errorMsg = MessageFormat.format("写入输送线站点数据失败。输送线plc编号={0},站点数据={1}", |
| | | staProtocol.getPlcId(), staProtocol.getTaskData()); |
| | | OutputQueue.DEVP.offer(errorMsg); |
| | | News.error("SiemensDevp - 4 - 写入输送线站点数据失败。输送线plc编号={},站点数据={}", |