HRX-OM-W004
Chapter 3 Serial communication
3.12
Negative response HRR Series
3-16
Response message 011706000000000000
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header - “:”
None
Slave Address
0x01
“0”,“1” 0x01
Function
0x17
“1”,“7” 0x17
Quantity of bytes to read 0x06
“0”,“6” 0x06
Information of 0004h (Status flag 1)
0x0000
“0”,“0”,“0”,“0” 0x00,0x00
Information of 0005h (Alarm flag 1)
0x0000
“0”,“0”,“0”,“0” 0x00,0x00
Information of 0006h (Alarm flag 2)
0x0000
“0”,“0”,“0”,“0” 0x00,0x00
Checksum ASCII:LRC RTU:CRC - “E”,“2” 0x21,0x8A
Trailer - CR/LF
None
Total
quantity of byte
23 11
3.12 Negative response
A negative response is returned when the following request message is
received.
1) When unspecified function code is used.
2) An address out of range is specified.
3) The data field is not normal.
Negative response message (Slave to Master)
1) Negative acknowledgment message frame in ASCII mode.
Start
Slave
Address
1)Function
2)Error
Code
LRC End
[:] XX XX XX XX XX XX XX XX [CR] [LF]
2)
Negative acknowledgment message frame in RTU.
Start
Slave
Address
1)Function
2)Error
Code
CRC End
T1-T2-T3-T4
∗1
XX XX XX XX XX XX T1-T2-T3-T4
∗1
∗1 Silent interval for 3.5 characters
1) Function
Assign the value consisting of the request function code (hexadecimal
value) plus 80h.
Example 1) ASCII mode
Received function code: “04”(0000 0100)” ASCII code 30h, 34h
Abnormal function code: ”84”(1000 0100)” ASCII code 38h, 34h
Example 2) RTU mode
Receive function code: "04" (0000 0100)
Abnormal function code: "84" (1000 0100)