1MODBUS_WRITE_REGISTE(3) Libmodbus Manual MODBUS_WRITE_REGISTE(3)
2
3
4
6 modbus_write_registers - write many registers
7
9 int modbus_write_registers(modbus_t *ctx, int addr, int nb, const
10 uint16_t *src);
11
13 The modbus_write_registers() function shall write the content of the nb
14 holding registers from the array src at address addr of the remote
15 device.
16
17 The function uses the Modbus function code 0x10 (preset multiple
18 registers).
19
21 The modbus_write_registers() function shall return the number of
22 written registers if successful. Otherwise it shall return -1 and set
23 errno.
24
26 modbus_write_register(3) modbus_read_registers(3)
27
29 The libmodbus documentation was written by Stéphane Raimbault
30 <stephane.raimbault@gmail.com[1]>
31
33 1. stephane.raimbault@gmail.com
34 mailto:stephane.raimbault@gmail.com
35
36
37
38libmodbus 3.0.8 07/31/2019 MODBUS_WRITE_REGISTE(3)