Configuration 5 Configuration The server can receive Modbus functions via TCP/IP. Modbus areas The Modbus specification defines these four modbus-areas: After the installation the modbus areas are mapped to the PLC areas. Check the article about the default- mapping [ } 14] . The TwinCAT Modbus TCP/IP server configurator [ } 12] is used for configuring this mapping. ADS-Access If you want to access the specific modbus areas, you have to add these global variables to your PLC project. VAR_GLOBAL mb_Input_Coils : ARRAY [0..255] OF BOOL; mb_Output_Coils : ARRAY [0..255] OF BOOL; mb_Input_Registers : ARRAY [0..255] OF WORD; mb_Output_Registers :
ARRAY [0..255] OF WORD; END_VAR 5.1 TwinCAT Modbus TCP Configurator The configurator is installed per default to the directory \TwinCAT\TcModbusSrv . The tools allow to read and change the actual configuration of TwinCAT Modbus TCP server. TS6250 12 Version: 1.2 Modbus-ar- eas Data type Access Example digital inputs (Discrete Inputs) 1 Bit Read only digitale outputs (Coils) 1 Bit Read / write Input registers 16 Bit Read only Output registers 16 Bit Read / write