From 2f9b947344a9218390b30dd2d5d141c1f6d319b9 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期五, 07 十一月 2025 08:17:41 +0800
Subject: [PATCH] 仓储异常情况断联,任务无法执行,添加clear按钮可手动清除异常状态任务,
---
hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/config/S7Config.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/config/S7Config.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/config/S7Config.java
index 04a7141..2a7b564 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/config/S7Config.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/config/S7Config.java
@@ -15,7 +15,13 @@
public class S7Config {
@Bean
public S7Serializer s7SerializerSP1() {
- S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.86");
+ S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.10");
+ return S7Serializer.newInstance(s7PLC);
+ }
+
+ @Bean
+ public S7Serializer s7SerializerSP2() {
+ S7PLC s7PLC = new S7PLC(EPlcType.S1200, "10.168.10.0");
return S7Serializer.newInstance(s7PLC);
}
}
--
Gitblit v1.8.0