Parameterizing and Configuring
Configuring devices at Modbus TCP
74
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Register 0x1130: Modbus connection mode
This register defines the behavior of the Modbus connections.
Bit
Designation
Value
Meaning
0
MB_OnlyOneWritePermis-
sion
0
All Modbus connections receive the write au-
thorization
1
Only one Modbus connection can receive the
write permission. A write permission is opened
until a Disconnect. After the Disconnect the
next connection which requests a write access
receives the write authorization.
1
MB_ImmediateWritePer-
mission
0
With the first write access, a write authoriza-
tion for the respective Modbus connection is
requested. If this request fails, an exception re-
sponse with exception-code 0x01 is gener-
ated. If the request is accepted, the write ac-
cess is executed and the write authorization
remains active until the connection is closed.
1
The write authorization for the respective
Modbus connection is already opened during
the connection establishment. The first Mod-
bus connection thus receives the write author-
ization, all following connections don’t (only if
bit 0 = 1).
2…15
reserved
-
-
Register 0x1131: Modbus connection timeout
This register defines after which time of inactivity a Modbus connection is closed through a Dis-
connect.
Value range: 0…65535 s
default: 0 s = never (Modbus connection will never be closed)
Behavior of the BUS LED
If Modbus is the active protocol in case of a connection Time out and no further Modbus con-
nections exist, the BUS LED behaves as follows:
Connection timeout
BUS LED
timeout
Green flashing
Register 0x113C and 0x113D: Restore Modbus connection parameters
Registers 0x113C and 0x113D serve for resetting the parameter-register 0x1120 and 0x1130 to
0x113B to the default settings. The service resets the parameters without saving them.
Procedure:
Write 0x6C6F to register 0×113C.
To activate the reset of the registers, write 0x6164 ("load") within 30 seconds in register
0x113D. Both registers can also be written with one single request using the function
codes FC16 and FC23.
a
The parameters are reset tot default values.
Save changes via a subsequent Save service.