From a3b72b747a8e855cab1a6d40f42022db67646004 Mon Sep 17 00:00:00 2001
From: TQS <56479841@qq.com>
Date: 星期二, 21 三月 2023 15:30:28 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/thread/SteThread.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/zy/core/thread/SteThread.java b/src/main/java/com/zy/core/thread/SteThread.java
index ad7edf6..42f7440 100644
--- a/src/main/java/com/zy/core/thread/SteThread.java
+++ b/src/main/java/com/zy/core/thread/SteThread.java
@@ -89,7 +89,7 @@
steProtocol = new SteProtocol();
}
steProtocol.setSteNo(slave.getId().shortValue());
- steProtocol.setMode((short) 0);
+ steProtocol.setMode((short) -1);
steProtocol.setStatus(SteStatusType.OFF_LINE);
steProtocol.setTaskNo((short) 0);
steProtocol.setExecute(false);
@@ -340,6 +340,12 @@
} else {
OutputQueue.STE.offer(MessageFormat.format("銆恵0}銆戝啓鍏ョ┛姊溅plc鏁版嵁澶辫触 ===>> [id:{1}] [ip:{2}] [port:{3}]", DateUtils.convert(new Date()), slave.getId(), slave.getIp(), slave.getPort()));
News.error("鍐欏叆绌挎杞lc鏁版嵁澶辫触 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
+
+ //鍐欏叆澶辫触鍚庯紝閲嶆柊娣诲姞commanddao 浠诲姟闃熷垪涓�,骞剁珛鍗冲洖璇讳竴娆¤澶囩姸鎬�
+ MessageQueue.offer(SlaveType.Ste, slave.getId(), new Task(2, command));
+ readStatus();
+
+ initSte();
return false;
}
}
--
Gitblit v1.9.1