164 unsigned char u_char[4];
166 unsigned short u_short[2];
205 int write (
int slave,
int function,
const unsigned char *data,
int len,
int *transactionID = NULL);
206 int request (
int slave,
int function,
int start_adr,
int num_register);
207 int response(
int *slave,
int *
function,
unsigned char *data,
int timeout=1000);
208 int readRequest(
int *slave,
int *
function,
unsigned char *data,
int timeout=1000,
int *transactionID = NULL);
211 int data2int(
const unsigned char *data);
212 int int2data(
int val,
unsigned char *data);
215 int readCoilStatus (
int slave,
int start_adr,
int number_of_coils,
unsigned char *status,
int timeout=1000);
216 int readInputStatus (
int slave,
int start_adr,
int number_of_inputs,
unsigned char *status,
int timeout=1000);
220 int readHoldingRegisters (
int slave,
int start_adr,
int number_of_registers,
int *registers,
int timeout=1000);
224 int readInputRegisters (
int slave,
int start_adr,
int number_of_registers,
int *registers,
int timeout=1000);
225 int forceSingleCoil (
int slave,
int coil_adr,
int value,
int timeout=1000);
233 int forceMultipleCoils (
int slave,
int coil_adr,
int number_of_coils,
unsigned char *coils,
int timeout=1000);
237 int presetMultipleRegisters (
int slave,
int start_adr,
int number_of_registers,
int *registers,
int timeout=1000);
int readInputStatus(int slave, int start_adr, int number_of_inputs, unsigned char *status, int timeout=1000)
int int2data(int val, unsigned char *data)
int readCoilStatus(int slave, int start_adr, int number_of_coils, unsigned char *status, int timeout=1000)
void registerSerial(rlSerial *serial)
void int2buf_ascii(int i, unsigned char *buf)
int buf2int_ascii(unsigned char *buf)
void registerSocket(rlSocket *socket)
int write(int slave, int function, const unsigned char *data, int len, int *transactionID=NULL)
int buf2int_rtu(unsigned char *buf)
int forceSingleCoil(int slave, int coil_adr, int value, int timeout=1000)
int presetMultipleRegisters(int slave, int start_adr, int number_of_registers, int *registers, int timeout=1000)
rlModbus(long max_telegram_length=1024, int mode=MODBUS_RTU, char end_delimitor=0x0a)
int readHoldingRegisters(int slave, int start_adr, int number_of_registers, int *registers, int timeout=1000)
int forceMultipleCoils(int slave, int coil_adr, int number_of_coils, unsigned char *coils, int timeout=1000)
int presetSingleRegister(int slave, int register_adr, int value, int timeout=1000)
void int2buf_rtu(int i, unsigned char *buf)
int response(int *slave, int *function, unsigned char *data, int timeout=1000)
int data2int(const unsigned char *data)
int request(int slave, int function, int start_adr, int num_register)
int readInputRegisters(int slave, int start_adr, int number_of_registers, int *registers, int timeout=1000)
int readRequest(int *slave, int *function, unsigned char *data, int timeout=1000, int *transactionID=NULL)