|
|
#define | MODBUS_MAX_PDU_DATA_SIZE (252) |
| | Maximum size of data field in a modbus PDU including checksum.
|
|
#define | ADR_BROADCAST (0x00) |
| | Broadcast address for modbus messages.
|
|
#define | MSG_RECEIVED (2) |
| | Modbus message received.
|
|
#define | MSG_TIMEOUT (3) |
| | Modbus message not received within timeout.
|
|
#define | MB_JBUS (1) |
| | Jbus mode.
|
|
#define | MB_MODBUS (0) |
| | Modbus mode.
|
|
#define | MB_FC_READ_COILS (0x01) |
| | Modbus function code for reading coils.
|
|
#define | MB_FC_READ_DISCRETE_INPUTS (0x02) |
| | Modbus function code for reading discrete inputs.
|
|
#define | MB_FC_READ_HOLD_REGISTERS (0x03) |
| | Modbus function code for reading holding registers.
|
|
#define | MB_FC_READ_INPUT_REGISTERS (0x04) |
| | Modbus function code for reading input registers.
|
|
#define | MB_FC_WRITE_SINGLE_COIL (0x05) |
| | Modbus function code for writing a single coil.
|
|
#define | MB_FC_WRITE_SINGLE_REGISTER (0x06) |
| | Modbus function code for writing a single register.
|
|
#define | MB_FC_WRITE_MULTI_COILS (0x0F) |
| | Modbus function code for writing multiple coils.
|
|
#define | MB_FC_WRITE_MULTI_REGISTERS (0x10) |
| | Modbus function code for writing multiple registers.
|
|
#define | MB_RC_OK (0) |
| | No errors.
|
|
#define | MB_RC_NO_RESPONSE (-1) |
| | No response within timeout.
|
|
#define | MB_RC_ERR_BYTE_COUNT (-2) |
| | No response error in response length.
|
Modbus interface to the application.
- Author
- Tecnologix, 2014