HRX-OM-W004
Chapter 3 Serial communication
HRR Series 3.12
Negative response
3-17
2) Error Code
Assign error code below.
01 : Function code of a command is outside the standard
02 : The specified address of register is outside the range.
03 : Data field of a command is not normal.
■
Communication example
○Slave Address: No 1
○
Read seven consecutive data from register 0100h which is out of range.
Request message 010401000007
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header - “:”
None
Slave Address
0x01 “0”,“1” 0x01
Function 0x04 “0”,“4” 0x04
Head address of register out of range
0x0100 “0”,“1”,“0”,“0” 0x01,0x00
Quantity of register to read
0x0007 “0”,“0”,“0”,“7” 0x00,0x07
Checksum ASCII:LRC RTU:CRC
- “F”,”3” 0xB0,0x34
Trailer
- CR/LF
None
-
Total
quantity of byte
16 8
Response message 018402
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header
- “:”
None
Slave Address
0x01
“0”,“1” 0x01
Function (03h+80h) 0x84
“8”,“4” 0x84
Error Code
(Specified register address
is out of range.)
0x02
“0”,“2” 0x02
Checksum ASCII:LRC RTU:CRC
- “7”,“9” 0xC2,0xC1
Trailer
- CR/LF
None
Total
quantity of byte
11 5