Operating Spanner Modules at Modbus TCP
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
32
7.3
Modbus TCP – Registers
7.3.1
Register 0x1130: Modbus Connection Mode
This register defines the behavior of the Modbus connections:
Address (hex.)
Access
ro = read only
rw = read/
write
Description
0x0000
ro
8 DIP – Input data mapping
0x0001
ro
Status Word
0x3000…0x30EF
ro
Packed process data of inputs
0x3400…0x34EF
rw
Packed process data of outputs
0x1000 …0x1006
ro
Station Identifier
0x100C
ro
Module status
0x1012
ro
Process image length in bit for the digital output modules
0x1013
ro
Process image length in bit for the digital input modules
0x1017
ro
Register mapping revision
Register mapping revision (always 1, if not, mapping is incompat-
ible with this description)
0x1020
ro
Watchdog, actual time [ms]
0x1120
rw
Watchdog predefined time [ms] (default: 0)
see
Error behavior (watchdog) (Seite 33)
0x1130
rw
Modbus connection mode register (s.
0x1131
rw
Modbus connection timeout in sec. (default: 0 = never) (s.
0x113C…0x113D
rw
(reset of parameters to default values)
0x113E…0x113F
rw
Modbus Parameter Save (s.
(permanent storing of parameters)
Bit
Name
–
Description
15 to 2
reserved
1
MB_ImmediateWritePermission
–
0:
With the first write access, a write authorization for the respective Modbus-connection is
requested. If this request fails, an exception response with exception-code 0x01 is generated. If
the request is accepted, the write access 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 Modbus-connection thus receives the write authorization,
all following connections don’t (only if bit 0 = 1).
0
MB_OnlyOneWritePermission
–
0
: all Modbus-connections receive the write authorization
–
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.