ProSoft Technology 5202-DFNT-MCM4 User Manual

Page 39

Advertising
background image

Serial Port Modbus Error and Status Data

MCM ♦ ProLinx Gateway

Driver Manual

Modbus Master/Slave


ProSoft Technology, Inc.

Page 39 of 80

October 16, 2009

4.3 Error

Codes

These are error codes that are part of the Modbus protocol or are extended
codes unique to this gateway.

4.3.1 Modbus Error Codes

These error codes are generated or returned on both the Master and slave ports.
These codes are the standard Modbus errors (page 68).

Code Description

1 Illegal

Function

2

Illegal Data Address

3

Illegal Data Value

4

Failure in Associated Device

5 Acknowledge

6

Busy, Rejected Message

4.3.2 gateway Communication Error Codes

These gateway-specific error codes are also returned from the command polling
process and stored in the Command Error List memory area.

Code Description

-1

CTS modem control line not set before transmit

-2

Timeout while transmitting message

-11

Timeout waiting for response after request

253

Incorrect slave address in response

254

Incorrect function code in response

255

Invalid CRC/LRC value in response

4.3.3 Command List Error Codes

These command-specific error codes are detected during initial command list
loading at gateway power-up or reset and are stored in the Command Error List
memory region.

CODE Description

-41

Invalid enable code

-42

Internal address > maximum address

-43

Invalid node address (<0 or > 255)

-44

Count parameter set to 0

-45

Invalid function code

-46

All parameters set to 0

-47

All parameters set to -1

Advertising