Siemens MODBUS_TCP Client

Siemens MODBUS_TCP Client

This article introduces: the MODBUS TCP client communication program for Siemens S7-1200 PLC. Step One:Create a DB block named:MODBUS_DB Step Two:Create a variable:Mod with data type:TCON_IP_v4 Step Three:Set the hardware identifier:16#40; ID:10 (can be changed);ConnectionType16#0B;ActiveEstablished( Client1 (Active): Server is0 (Passive)): Set toTRUE Step Four:Set theIP address (ADDR): 192.168.1.245 Port number 502 Step Five:Create a MODBUS … Read more