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 function shall return the number of written registers if
22 successful. Otherwise it shall return -1 and set errno.
23
25 modbus_write_register(3) modbus_read_registers(3)
26
28 The libmodbus documentation was written by Stéphane Raimbault
29 <stephane.raimbault@gmail.com>
30
31
32
33libmodbus v3.1.6 07/21/2022 MODBUS_WRITE_REGISTE(3)