Query: modbus_report_slave_id
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MODBUS_REPORT_SLAVE_(3) Libmodbus Manual MODBUS_REPORT_SLAVE_(3)NAMEmodbus_report_slave_id - returns a description of the controllerSYNOPSISint modbus_report_slave_id(modbus_t *ctx, uint8_t *dest);DESCRIPTIONThe modbus_report_slave_id() function shall send a request to the controller to obtain a description of the controller. The response stored in dest contains: o the byte count of the response o the slave ID, this unique ID is in reality not unique at all so it's not possible to depend on it to know how the information are packed in the response. o the run indicator status (0x00 = OFF, 0xFF = ON) o additional data specific to each controller. For example, libmodbus returns the version of the library as a string.RETURN VALUEThe modbus_report_slave_id() function shall return the number of read data if successful. Otherwise it shall return -1 and set errno.EXAMPLEuint8_t *tab_bytes; ... rc = modbus_report_slave_id(ctx, tab_bytes); if (rc > 1) { printf("Run Status Indicator: %s ", tab_bytes[1] ? "ON" : "OFF"); }AUTHORSThe libmodbus documentation was written by Stephane Raimbault <stephane.raimbault@gmail.com[1]>NOTES1. stephane.raimbault@gmail.com mailto:stephane.raimbault@gmail.com libmodbus 3.0.3 05/26/2012 MODBUS_REPORT_SLAVE_(3)
Related Man Pages |
---|
modbus_new_rtu(3) - debian |
modbus_reply_exception(3) - debian |
modbus_send_raw_request(3) - debian |
modbus_set_slave(3) - debian |
modbus_write_and_read_registers(3) - debian |
Similar Topics in the Unix Linux Community |
---|
[Joy Share] - Replace an unknown status controller on HP FC60 disk array |
Obtain Real Novelty UK,US,CA,AU Passport,Id cards:Best.unique.producers@gmail.com |