EXCEPTION_CODE

[Modbus]

Description

The exception code is used for the Modbus Slave node to send back packets so that the Modbus Master can get feedback.

Code

  • MODBUS_SUCCESS (0x00)
    - The packet was successfully transferred.
  • MODBUS_ILLEGAL_FUNCTION (0x01)
    - The Slave device receives an unallowed function code.
  • MODBUS_ILLEGAL_DATA_ADDRESS (0x02)
    - The Slave device receives an unallowed address space.
  • MODBUS_ILLEGAL_DATA_VALUE (0x03)
    - The Slave device receives an unallowed value in the specified address space.
  • MODBUS_SERVER_DEVICE_FAILURE (0x04)
    - A non-recoverable error occurred during operation.
  • MODBUS_ACKNOWLEDGE (0x05)
    - The instruction has been accepted and is being processed, but it will take a long time to complete.
  • MODBUS_SERVER_DEVICE_BUSY (0x06)
    - Long command being processed.
  • MODBUS_MEMORY_PARITY_ERROR (0x08)
    - Parity error detected when trying to read memory.
  • MODBUS_GATEWAY_PATH_UNAVAILABLE (0x0A)
    - Unavailable Modbus Gateway paths.
  • MODBUS_GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND (0x0B)
    - Modbus Gateway devices are not on the network.
  • MODBUS_INVALID_SLAVE_ID (0xE0)
    - Invalid Slave Number.
  • MODBUS_INVALID_FUNCTION (0xE1)
    - Invalid Function Code.
  • MODBUS_RESPONSE_TIMEOUT (0xE2)
    - Replies over time.
  • MODBUS_INVALID_CRC (0xE3)
    - Ineffective cyclic redundancy checks.
  • MODBUS_ILLEGAL_DATA_MODE (0xE4)
    - Illegal data patterns.
  • MODBUS_INVALID_BUS (0xE5)
    - Ineffective access.

Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Scroll to Top