From e80e319804323105915551226a27f93e51fc130d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 22 十二月 2022 15:58:28 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/thread/SiemensDevpThread.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/core/thread/SiemensDevpThread.java b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
index 730f40a..8eaa64b 100644
--- a/src/main/java/com/zy/core/thread/SiemensDevpThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -173,10 +173,10 @@
// 澶栧舰妫�娴� - 102
Thread.sleep(50);
- OperateResultExOne<byte[]> result4 = siemensS7Net.Read("DB102.129.", (short)1);
+ OperateResultExOne<byte[]> result4 = siemensS7Net.Read("DB102.129", (short)1);
if (result4.IsSuccess) {
boolean[] status = siemensS7Net.getByteTransform().TransBool(result4.Content, 0, 1);
- StaProtocol staProtocol = station.get(2); // 102
+ StaProtocol staProtocol = station.get(102);
staProtocol.setFrontErr(status[0]);
staProtocol.setBackErr(status[1]);
staProtocol.setHighErr(status[2]);
@@ -187,10 +187,10 @@
}
// 澶栧舰妫�娴� - 203
Thread.sleep(50);
- OperateResultExOne<byte[]> result5 = siemensS7Net.Read("DB102.130.", (short)1);
+ OperateResultExOne<byte[]> result5 = siemensS7Net.Read("DB102.130", (short)1);
if (result5.IsSuccess) {
boolean[] status = siemensS7Net.getByteTransform().TransBool(result5.Content, 0, 1);
- StaProtocol staProtocol = station.get(25); // 203
+ StaProtocol staProtocol = station.get(203);
staProtocol.setFrontErr(status[0]);
staProtocol.setBackErr(status[1]);
staProtocol.setHighErr(status[2]);
--
Gitblit v1.9.1