介绍下 MCGS 与TM218E40PLC 通过Modbus TCP 通讯
TM218参数设置如图

MCGS通用父设备参数设置如图

要注意的是,本地IP地址和远程IP地址要在同一个网段内!!
Modbus TCP 子设备参数设置如下

这里面的设备地址默认就好,不用设置,如果MCGS需要带多台PLC,方法如图,没增加一个PLC就需要增加一个父设备!如图!!

值得注意的是,MCGS触摸屏的地址默认显示是从0开始的,但实际是从1开始的,如40001对应PLC %MW0,如果你是40000对应%MW0,是通讯不上的!