Error Codes for RTU Master Commands
Error Codes for RTU Master Commands
Symbolic values for major and minor error codes and their meanings are shown in the
table below. See also the table of error codes for the Initialize RTU Master Port command
on p. 13.
Numeric
Major Error
Minor Error Code Status Description
Code
Value
COMMREQ_OK None 0001h The RTU Master COMMREQ command has
succeeded.
PARAMETER_ NOT_A_COMREQ 0103h A Message received from CPU is not a COMREQ.
ERROR WAIT_COMREQ 0203h WAIT-mode COMREQs are not supported.
UNSUPP_COMREQ_CMD 0303h The COMREQ Command is unsupported.
COMREQ_LEN_INVALID 0403h The COMREQ data length is too small.
PORT_DATA_INVALID 0503h Port Setup COMREQ data is invalid.
DEV_ADDRESS_INVALID 0603h The RTU slave device is invalid.
FUNC_CODE_UNSUPPORTED 0703h The RTU function code is not supported.
FUNC_INVALID_FOR_BCAST 0803h The specified function code requires a response.
DIAG_CODE_UNSUPPORTED 0903h The Diagnostic code is unsupported in
Loopback/Maintenance queries.
DATA_START_INVALID 0A03h The specified data starting location is invalid.
DATA_QUANTITY_INVALID 0B03h The specified data quantity results in an invalid
message length.
DATA_MEM_TYPE_INVALID 0C03h The specified memory type for the data
source/destination is invalid for local PLC CPU.
DATA_MEM_OFFSET_INVALID 0D03h The specified memory location for the data
source/destination is invalid for local PLC CPU.
STATUS_MEM_TYPE_INVALID 0E03h The specified status memory type invalid for the local
PLC CPU.
STATUS_MEM_ 0F03h The specified status memory location invalid for the
OFFSET_INVALID local PLC CPU.
DSW_RANGE_INVALID 1003h The specified Diagnostic Status Words starting
location or length is invalid.
BUF_ALLOC_ERROR 1103h An error occurred during an attempted system
memory allocation.
PORT_ERROR PARITY_ERROR 0104h Parity error detected, response discarded.
FRAMING_ERROR 0204h Framing error detected, response discarded.
OVERRUN_ERROR 0204h Over-run error detected, response discarded.
SHORT_RSP_ERROR 0304h Incomplete response detected, response discarded.
CRC_ERROR 0404h CRC error detected, response discarded.
TIMEOUT_ QUERY_XMIT_TIMEOUT 0105h HARDWARE flow control is in use, and CTS was not
ERROR detected within the specified time.
RESPONSE_TIMEOUT 0205h A response was not received within the specified
time.
MEM_ERROR STATUS_WORD_WRITE_ERR 0106h An error occurred while writing the COMREQ Status
Word.
DATA_WRITE_ERR 0206h An error occurred while writing to RTU Data Memory.
DATA_READ_ERR 0306h An error occurred while reading from RTU Data
Memory.
GFK-2220B 27
Numeric
Major Error
Minor Error Code Status Description
Code
Value
RESPONSE_ INVALID_RESPONSE_CRC 0107h The response CRC-16 is incorrect.
ERROR INVALID_RESPONSE_LENGTH 0207h The response length is incorrect.
INVALID_RESPONSE_ADDR 0307h The response device address is incorrect.
INVALID_RESPONSE_FUNC 0407h The response function code is incorrect.
INVALID_LOOPBACK_RESP 0507h A Loopback/Maintenance response data is
incorrect.
RCVD_ ILLEGAL_FUNCTlON 0108h The Modbus slave detected a function code it
EXCEPTION does not support.
ILLEGAL_DATA_ADDRESS 0208h The Modbus slave detected a data address it
does not support.
ILLEGAL_DATA_VALUE 0308h The Modbus slave detected a data value that is
not allowable.
SLAVE_DEVlCE_FAILURE 0408h The Modbus slave encountered an unrecoverable
error while attempting to complete the requested
function.
ACKNOWLEDGE 0508h This exception code does not apply to the
SLAVE_DEVlCE_BUSY 0608h functions supported by this implementation.
NEGATlVE_ACKNOWLEDGE 0708h
MEMORY_PARlTY_ERROR 0908h The slave detected a parity error in extended
memory.