YASKAWA GPD 515/G5 Modbus RTU Technical Manual page 26

Hide thumbs Also See for GPD 515/G5 Modbus RTU:
Table of Contents

Advertisement

The fault response message contains the same slave address as the command message,
indicating to the master which slave is responding.
The function code of a fault response message is actually a value of 80h plus the original function
code of 03h. This indicates to the master that the message is a fault response message, instead
of a normal response message.
The error code indicates where the error occurred in the command message. The value of 2h in
the error code field of this fault response message, indicates that the command message
requested data be read from an invalid register. A complete listing of the error codes is shown in
Chapter 8, Troubleshooting and Error Codes.
A CRC-16 value is generated from a calculation using the values of the address, function code,
and error code sections of the message. The procedure for calculating a CRC-16 value is
described at the end of this chapter. How the response message is handled by the master
depends on what master is used. When the master receives the fault response message it
should calculate a CRC-16 value and compare it to the one in the CRC-16 field of the fault
response message. If these two CRC-16 values are the same the master has received the
proper fault response message.
6-6
The Message Format
Fault Response Message
SLAVE ADDRESS
02h
80h + FUNC. CODE
83h
ERROR CODE
02h
LOWER
30h
CRC-16
UPPER
F1h

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents