EXCEPTION_CODE
Description
The exception code is used for the Modbus Slave node to return the packet so that the Modbus Master can get feedback.
Code
- MODBUS_SUCCESS (0x00)
 – The packet was successfully transmitted
- MODBUS_ILLEGAL_FUNCTION (0x01)
 – The slave device received an unauthorized function code
- MODBUS_ILLEGAL_DATA_ADDRESS (0x02)
 – The slave device received an unauthorized address space
- MODBUS_ILLEGAL_DATA_VALUE (0x03)
 – Slave The device received an impermissible value in the specified address space
- MODBUS_SERVER_DEVICE_FAILURE (0x04)
 – An unrecoverable error occurred during operation
- MODBUS_ACKNOWLEDGE (0x05)
 – A command has been accepted and is being processed, but it will take a long time to complete
- MODBUS_SERVER_DEVICE_BUSY (0x06)
 – A long command is being processed
- MODBUS_MEMORY_PARITY_ERROR (0x08)
 – A parity error was detected while trying to read memory
- MODBUS_GATEWAY_PATH_UNAVAILABLE (0x0A)
 – Unavailable Modbus Gateway path
- MODBUS_GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND (0x0B)
 – Modbus Gateway device is not on the network
- MODBUS_INVALID_SLAVE_ID (0xE0)
 – Invalid Slave number
- MODBUS_INVALID_FUNCTION (0xE1)
 – Invalid function code
- MODBUS_RESPONSE_TIMEOUT (0xE2)
 – Reply timeout
- MODBUS_INVALID_CRC (0xE3)
 – Invalid cyclic redundancy check
- MODBUS_ILLEGAL_DATA_MODE (0xE4)
 – Illegal data mode
- MODBUS_INVALID_BUS (0xE5)
 – Invalid channel
The text in the 86Duino reference is modified from the Arduino reference and is licensed under the Creative Commons Attribution-ShareAlike 3.0 License . The code examples in the reference have been released into the public domain.
