S7协议 大版本合并

This commit is contained in:
caixiang 2023-01-03 16:32:16 +08:00
parent 0ad4d2b3e3
commit 33bc99c697

View File

@ -24,8 +24,8 @@ public enum S7Client {
//TODO 步骤1 这里是配置多PLC 有多个plc 就在这里配置一个枚举类
//1500 西门子200smart12001500默认的 机架号=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;