From b01723592cc0e6a9702dea57fb176a465c5ee45c Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期四, 23 十月 2025 13:18:34 +0800
Subject: [PATCH] 仓储设备图色块修改,element组件国际化语言添加
---
hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/config/S7Config.java | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/config/S7Config.java b/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/config/S7Config.java
index 2eaf886..f3fdc41 100644
--- a/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/config/S7Config.java
+++ b/hangzhoumesParent/moduleService/GlassStorageModule/src/main/java/com/mes/config/S7Config.java
@@ -13,9 +13,17 @@
*/
@Configuration
public class S7Config {
- @Bean
- public S7Serializer s7Serializer() {
- S7PLC s7PLC = new S7PLC(EPlcType.S1200, "10.153.19.192");
+ @Bean(name = "s7SerializerSPOne")
+ public S7Serializer s7SerializerSPOne() {
+ S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.80");
+// S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.0.15");
return S7Serializer.newInstance(s7PLC);
}
+
+// @Bean(name = "s7SerializerSPTwo")
+// public S7Serializer s7SerializerSPTwo() {
+// S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.86");
+//// S7PLC s7PLC = new S7PLC(EPlcType.S1500, "10.153.19.191");
+// return S7Serializer.newInstance(s7PLC);
+// }
}
--
Gitblit v1.8.0