From 8d3b350275b494d7ed2cc2b655c7e1ed22e49f7d Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 29 八月 2022 17:00:18 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/SiemensDevpThread.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SiemensDevpThread.java b/src/main/java/com/zy/core/thread/SiemensDevpThread.java index 926e4dd..85da205 100644 --- a/src/main/java/com/zy/core/thread/SiemensDevpThread.java +++ b/src/main/java/com/zy/core/thread/SiemensDevpThread.java @@ -44,7 +44,7 @@ public static final ArrayList<Integer> staNos = new ArrayList<Integer>() {{ add(101);add(102);add(103);add(104); add(201);add(202);add(203);add(204); - add(301);add(302);add(303);add(304);add(305);add(306); + add(301);add(302);add(303);add(304);add(305);add(306);add(401);add(402); }}; /** @@ -61,6 +61,8 @@ * 4.鍑哄簱妯″紡 */ public IoModeType ioModeOf2F = IoModeType.NONE; +// public IoModeType ioMode = IoModeType.NONE; + public IoModeType ioModeOf4F = IoModeType.NONE; // public IoModeType ioMode = IoModeType.NONE; public SiemensDevpThread(DevpSlave slave) { @@ -231,7 +233,7 @@ return; } int index = staNos.indexOf(staProtocol.getSiteId()); - short[] array = new short[10]; + short[] array = new short[2]; array[0] = staProtocol.getWorkNo(); array[1] = staProtocol.getStaNo(); OperateResult write = siemensS7Net.Write("DB100." + index*4, array); -- Gitblit v1.9.1