4. Modbus RTU
4 - 12
4.8.5 Processing at occurrence of an error
In the Modbus RTU communication, when the Query Message sent from the master (controller) includes an
incorrect value, the slave (servo amplifier) returns an exception response to the master (controller).
When a parity error, CRC error, overrun error, or framing error occurs, the slave (servo amplifier) does not
return a message to the master (controller).
When an exception response occurs, a value obtained by adding "80h" to the function code sent in the
Query Message is returned with an exception code.
However, no exception response occurs in the following cases.
When the function code "03h" (Read Holding Registers) is used
When data can be read from even one of continuous registers, no exception response occurs. In this
case, "0" is returned to the register data that cannot be read.
When the function code "10h" (Preset Multiple Registers) is used
When data can be written into even one of continuous registers, no exception response occurs.
The following shows the Response Message to be sent at occurrence of an exception response.
Response Message
Slave Address
Function
Exception
Code
CRC Check
L
H
(8 bits)
(8 bits)
(8 bits)
(8 bits)
(8 bits)
Message
Size
Description
Slave Address
8 bits
The station number of a slave (servo amplifier) is returned.
Function
8 bits
A value obtained by adding "80h" to the function code of the Query Message is
returned.
When Function is "03h": "83h"
When Function is "08h": "88h"
When Function is "10h": "90h"
When an unsupported Function (example: "01h") is used, "Fu 80h"
(example: "81h") is returned.
Exception Code
8 bits
An exception code is set. For details of exception codes, refer to the following
"List of exception codes".
CRC Check
16 bits
Data for CRC error check
This data is calculated automatically by a servo amplifier, and the result of the
calculation is returned.
List of exception codes
Code
Error name
Description
01h
ILLEGAL FUNCTION
The Query Message sent from the master set a function code that the slave does
not support.
02h
ILLEGAL DATA ADDRESS
The Query Message sent from the master set a register address that the slave
does not support.
(Ex: No register address is set, or reading or writing data from/to registers is not
available.)
03h
ILLEGAL DATA VALUE
The Query Message sent from the master set data that the register cannot handle.
(Ex: A value out of the setting range is set, or "0" is set to No. of Registers.)
When an exception code is generated, a CRC error may occur at the same time.
Summary of Contents for MR-JE-C Series
Page 9: ...A 8 MEMO ...
Page 13: ...4 MEMO ...
Page 33: ...2 CC Link IE Field Network Basic SLMP 2 16 MEMO ...
Page 73: ...5 PARAMETERS 5 14 MEMO ...
Page 79: ...6 MANUFACTURER FUNCTIONS 6 6 MEMO ...
Page 143: ...MEMO ...