From 33bc99c6974881bd5471492fe4b174078894f072 Mon Sep 17 00:00:00 2001 From: caixiang <939387484@qq.com> Date: Tue, 3 Jan 2023 16:32:16 +0800 Subject: [PATCH] =?UTF-8?q?S7=E5=8D=8F=E8=AE=AE=20=E5=A4=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java b/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java index a04d7fe..d7c3190 100644 --- a/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java +++ b/src/main/java/com/qgs/dc/s7/my/s7connector/enmuc/S7Client.java @@ -24,8 +24,8 @@ public enum S7Client { //TODO 步骤1 这里是配置多PLC 的,,,有多个plc 就在这里配置一个枚举类 //1500 西门子200smart、1200、1500默认的 机架号=0 槽位号=1; 300/400 默认的 机架-0 插槽-2 // S7_1200("192.168.0.52",0,1,1,PlcVarActual.HeartBeatFor1200), - S7_15001("192.168.0.51",0,1,1,PlcVarActual.HeartBeat), - S7_1500("192.168.0.51",0,1,1,PlcVarActual.HeartBeat), + S7_15001("192.168.0.51",0,1,1), + S7_1500("192.168.0.51",0,1,1), //1500 机架-0 插槽-1 //后续 在这里扩展 多PLC应用。 ; @@ -49,7 +49,7 @@ public enum S7Client { //coreSize 是线程池的数量 - S7Client(String host, Integer rack, Integer slot, Integer coreSize, PlcVarActual heartBeat){ + S7Client(String host, Integer rack, Integer slot, Integer coreSize){ this.host = host; this.rack = rack; this.slot = slot;