8-8
Chapter 8. Modbus COMMUNICATION FUNCTION
• Example in case of error
(2)(1) (3) (4)
3AH
:
30H
0
41H
A
38H
8
34H
4
30H
0
31H
1
(5) (6)
37H
7
31H
1
0DH
CR
0AH
LF
(1) Start of message
(2) Station address
(3) Error flag (since undefined "04" is sent as a command with a send message,
the most significant bit is turned ON and sent back as "84".)
(4) Abnormal termination code ( p.8-6)
(5) Checksum (LRC)
(6) Delimiter
Modbus RTU
• Example in case of normal reception
(2)(1) (3) (4)
0AH 03H 04H 03H 01H 00H 03H
(5) (6)
51H 76H
(1) Station address
(2) Read command
(3) Number of read data X 2 (bytes)
(4) Read data 1
(5) Read data 2
(6) Checksum (CRC)
• Example in case of error
(2)(1) (3)
0AH 84H 01H F3H 02H
(4)
(1) Station address
(2) Error flag (since undefined "04H" is sent as a command with a send
message, the most significant bit is turned ON and sent back as "84H".)
(3) Abnormal termination code ( p.8-6)
(4) Checksum (CRC)