![]() Reg_buf – Is a pointer to an array that will receive the current values of the holding registers from the server. Sends a Modbus message to read the value of holding registers from a server. Num_di – Quantity of discrete inputs to readĠ – If the function was successful int modbus_read_holding_regs ( const int iface, const uint8_t unit_id, const uint16_t start_addr, uint16_t * const reg_buf, const uint16_t num_regs ) ¶ ![]() ![]() Note that the array that will be receiving the discrete input values must be greater than or equal to: (num_di - 1) / 8 + 1 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |