-
Notifications
You must be signed in to change notification settings - Fork 3
/
modbus_const.h
5 lines (4 loc) · 1.01 KB
/
modbus_const.h
1
2
3
4
5
//generated file, do not edit - see libmodbus modbus.h"
namespace ModBUS {
const int MODBUS_FC_READ_COILS = 0x01;const int MODBUS_FC_READ_DISCRETE_INPUTS = 0x02;const int MODBUS_FC_READ_HOLDING_REGISTERS = 0x03;const int MODBUS_FC_READ_INPUT_REGISTERS = 0x04;const int MODBUS_FC_WRITE_SINGLE_COIL = 0x05;const int MODBUS_FC_WRITE_SINGLE_REGISTER = 0x06;const int MODBUS_FC_READ_EXCEPTION_STATUS = 0x07;const int MODBUS_FC_WRITE_MULTIPLE_COILS = 0x0F;const int MODBUS_FC_WRITE_MULTIPLE_REGISTERS = 0x10;const int MODBUS_FC_REPORT_SLAVE_ID = 0x11;const int MODBUS_FC_MASK_WRITE_REGISTER = 0x16;const int MODBUS_FC_WRITE_AND_READ_REGISTERS = 0x17;const int MODBUS_BROADCAST_ADDRESS = 0;const int MODBUS_MAX_READ_BITS = 2000;const int MODBUS_MAX_WRITE_BITS = 1968;const int MODBUS_MAX_READ_REGISTERS = 125;const int MODBUS_MAX_WRITE_REGISTERS = 123;const int MODBUS_MAX_WR_WRITE_REGISTERS = 121;const int MODBUS_MAX_WR_READ_REGISTERS = 125;const int MODBUS_MAX_PDU_LENGTH = 253;const int MODBUS_ENOBASE = 112345678;
} //namespace ModBUS"