8 Communication
8.2 Modbus
141
SICAM I/O Unit, 7XV5673, Device Manual
E50417-H1040-C484-A3, Edition 05.2012
8.2.3
Modbus TCP
Properties of the Modbus TCP
•
Connection-oriented Ethernet protocol based on TCP/IP
•
Use of IP addresses for addressing individual components connected to the bus (bus nodes)
•
The Modbus TCP protocol has the TCP port number 502 reserved on the server side. It is possible to use
a parameterized port number (see Table 8-2).
•
All data types in the Modbus TCP messages which are larger than 1 byte, are stored in the Big-Endian
format, that is the most significant byte (MSB) is stored at the lowest register address and is transmitted
first.
•
Sequence of the communication:
−
In order to start data transfer from server to client, the client sends a request to the server.
−
If the requested data is not available, the server sends the client the requested data or an error
feedback.
•
The Modbus TCP data packet has a maximum size of 260 bytes:
−
253 bytes max. for data
−
7 bytes for the Modbus TCP header
Parameterization
The following parameters can be set for the Modbus see also chapter 6.3.3.6:
Table 8-2
Modbus TCP Settings
Parameter
Default Setting
Settings
IP address
192.168.0.55
Any,
0.0.0.0 for DHCP
Subnet mask
255.255.255.0
Any
Default gateway
192.168.0.1
Any
Bus protocol
Modbus TCP
-
Use a user-port number
no
no
yes
User-port number
(only, if
Use a user-port number
yes
has been
parameterized)
10000
10000 to 65535
Access rights for user port 502
Full
Full
Read only
Access rights for user port
(only, if
Use a user-port number
yes
has been
parameterized)
Full
Full
Read only
Keep Alive time
10 s
0 s = switch off
1 s to 65 535 s
Communication supervision time
600 * 100 ms
0 s = none
100 ms to 6 553 400 ms
MAN_SICAM_IO-Unit_7XV5673_US.book Page 141 Thursday, May 10, 2012 10:59 AM