#
TQS
2024-10-23 ffb11402e5e1784f619977caed5a66440ae2b496
#
1个文件已修改
8 ■■■■ 已修改文件
src/main/java/com/zy/core/thread/SiemensDevpThread.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -439,27 +439,27 @@
            if (this.ioModeOf1F != IoModeType.NONE) {
                if (!siemensS7Net.Write("DB100.180", this.ioModeOf1F.id).IsSuccess) {
                    OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线103入出库模式失败。输送线plc编号={1}", slave.getId()));
                    News.error("写入输送线103入出库模式失败。输送线plc编号={}", slave.getId());
//                    News.error("写入输送线103入出库模式失败。输送线plc编号={}", slave.getId());
                }
            }
            if (this.ioModeOf2F != IoModeType.NONE) {
                if (!siemensS7Net.Write("DB100.182", this.ioModeOf2F.id).IsSuccess) {
                    OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线203入出库模式失败。输送线plc编号={1}", slave.getId()));
                    News.error("写入输送线203入出库模式失败。输送线plc编号={}", slave.getId());
//                    News.error("写入输送线203入出库模式失败。输送线plc编号={}", slave.getId());
                }
            }
        } else if (slave.getId()==2){
            if (this.ioModeOf3F != IoModeType.NONE && this.ioModeOf3F.id/2 != this.ioModeOf3FX) {
                if (!siemensS7Net.Write("DB102.50", (short) (this.ioModeOf3F.id/2)).IsSuccess) {
                    OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线113入出库模式失败。输送线plc编号={1}", slave.getId()));
                    News.error("写入输送线113入出库模式失败。输送线plc编号={}", slave.getId());
//                    News.error("写入输送线113入出库模式失败。输送线plc编号={}", slave.getId());
                }
            }
        } else if (slave.getId()==3){
            if (this.ioModeOf4F != IoModeType.NONE  && this.ioModeOf4F.id/2 != this.ioModeOf4FX) {
                if (!siemensS7Net.Write("DB102.50", (short) (this.ioModeOf4F.id/2)).IsSuccess) {
                    OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线213入出库模式失败。输送线plc编号={1}", slave.getId()));
                    News.error("写入输送线213入出库模式失败。输送线plc编号={}", slave.getId());
//                    News.error("写入输送线213入出库模式失败。输送线plc编号={}", slave.getId());
                }
            }
        }