Parameterizing and Configuring
Configuring devices at Modbus TCP
72
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
8.6
Configuring devices at Modbus TCP
8.6.1
Implemented Modbus functions
The devices support the following functions for accessing process data, parameters, dia-
gnostics and other services.
Function Code
1
Read Coils – reading multiple output bits
2
Read Discrete Inputs – reading multiple input bits
3
Read Holding Registers – reading multiple output registers
4
Read Input Registers – reading multiple input registers
5
Write Single Coil – writing single output bit
6
Write Single Register – writing single output register
15
Write Multiple Coils – writing multiple output bits
16
Write Multiple Registers – writing multiple output
23
Read/Write Multiple Registers – reading and writing multiple registers
8.6.2
Modbus registers
Address
Access
Meaning
0x0000…0x01FF
read only
Process data of inputs (identical to registers 0x8000…
0x8FFF)
0x0800…0x09FF
read/write
Process data of the outputs (identical to registers
0x9000…0x9FFF)
0x1000…0x100B
read only
Module identifier
0x100C
read only
Module status
0x1017
read only
Register mapping revision (always 2, if not, mapping is
incompatible with this description)
0x1020
read only
Watchdog, actual time in ms
0x1120
read/write
Watchdog, predefined time in ms (default: 500 ms)
0x1130
read/write
Modbus connection mode register
0x1131
read/write
Modbus Connection Timeout in sec. (def.: 0 = never)
0x113C…0x113D
read/write
Modbus Parameter Restore (reset of parameters to de-
fault values)
0x113E…0x113F
read/write
Modbus Parameter Save (permanent storing of para-
meters)
0x1140
read/write
Deactivate protocol
Deactivates explicitly the selected Ethernet protocol:
n
Bit 0 = deactivate EtherNet/IP
n
Bit 1 = deactivate Modbus TCP
n
Bit 2 = deactivate PROFINET
n
Bit 15 = deactivate web server
0x1141
read/write
Active protocol
n
Bit 0 = EtherNet/IP active
n
Bit 1 = Modbus TCP active
n
Bit 2 = PROFINET active
n
Bit 15 = Web server active
0x2400
read only
V1 in mV: 0 at < 18 V