From 80cf36c5d25e9d4623c3f5337332466fb6794d62 Mon Sep 17 00:00:00 2001
From: mrzhssss <pro6@qq.com>
Date: 星期二, 20 九月 2022 13:30:01 +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