S7协议 大版本合并
This commit is contained in:
parent
0ad4d2b3e3
commit
33bc99c697
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user