21
6-5 Outline of MODBUS TCP and Transmission format
6-5-1 Connections (When set to MODBUS TCP)
PC etc.
Ethernet
KS1 Signal converter
・
RS232C
Serial communication
device
→
①
command
MODBUS TCP server
→
②
command
←
④
response
convert
←
③
response
Slave
MODBUS
TCP
Client
Serial port
・
RS485
・
MODBUS TCP server (KS1 Signal converter) is connected from MODBUS TCP client.
・
MODBUS TCP server is designated by specific IP address and port number.
・
MODBUS TCP server (KS1 Signal converter) converts data from MODBUS TCP client
(command) to MODBUS RTU or MODBUS ASCII and send from the serial port. After that, it
converts data from the serial port (response) and send to MODBUS TCP client.
6-5-2 Compare Packet of MODBUS TCP and MODBUS (RTU and ASCII)
①
Example of Command data from MODBUS TCP client to MODBUS TCP server
Item
Transmit ID
Protocol ID
Transmit byte
Transmit data
Ex. of setting value 0001
0000
0006
0103238D0001
Meaning
ID of
Transmit unit
Fixed
value
Number of byte
of transmit data
Slave unit No.01
Function code 03
Data address 238D
Data 1 byte
Setting range
00 to FF
Fix to 0000
Any value
Any value
This shows the command to read out 1 byte data designated by 238D send from MODBUS
TCP client to serial communication device number 01.
②
Example of MODBUS RTU Command from MODBUS TCP server (KS1 Signal converter) to Serial
slave unit
Item Data
CRC
Ex. of setting value 0103238D0001
1FA5
Meaning
Slave unit No. 01
Function code 03
Data address 238D
Data 1 byte
CRC value of data
Setting range
Any value
Calculated value 2 bytes
・
This shows the command to read out data designated by 238D send from MODBUS TCP
server (KS1 Signal converter) to serial communication device number 01.
・
Pick up transmit data from MODBUS TCP client, and when it is MODBUS RTU, it send
command with additional CRC, and when it is MODBUS ASCII, it send command with
additional LRC.
③
Example of MODBUS RTU response from serial communication device to MODBUS TCP server
(KS1 Signal converter)
Item Data
CRC
Ex. of setting value 0103020128
B9CA
Meaning
Slave unit No. 01
Function code 03
Data 2 byte
Data value 0128 (Hex)
CRC value of data
Setting range
Calculated value 2 bytes
・
This shows the response to send 2 bytes data 0128(Hex) designated 238D send from serial
communication device number 01 to MODBUS TCP server (KS1 Signal converter).
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]