HRX-OM-M091
Chapter 4 MODBUS communication function
4.9 Negative response
HRS Series
4-16
4.9 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)
2)
Start Slave
Address
Function
Error
Code
LRC
End
[:] XX XX [0] [3] XX XX XX XX
[CR]
[LF]
1) Function
Assign the value consisting of the request function code (hexadecimal
value) plus 80h in ASCII code.
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
Response message
Code
Contents
Code
Contents
01
Slave Address
01
Slave Address
03 Function
83 Function
(03h+80h)
0100
Head address of register out of range
02
Error Code (Specified register address is
out of range.)
0007
Quantity of register to read
7A LRC
F4 LRC
This product
(Request):010301000007F4 [CR][LF]
(Response):0183027A [CR][LF]
Your system
Data is sent and
received in ASCII
code.
Содержание HRS012-W
Страница 54: ...HRX OM M091 Chapter 4 MODBUS communication function 4 10 Register Map HRS Series 4 22...
Страница 81: ......