diff --git a/doc/modbus_mask_write_register.txt b/doc/modbus_mask_write_register.txt index 072a541..97ebb8c 100644 --- a/doc/modbus_mask_write_register.txt +++ b/doc/modbus_mask_write_register.txt @@ -14,9 +14,10 @@ SYNOPSIS DESCRIPTION ----------- -The _modbus_mask_write_register()_ function shall modify the value of the +The _modbus_mask_write_register()_ function shall modify the value of the holding register at the address 'addr' of the remote device using the algorithm: -new value = (current value AND 'and') OR ('or' AND (NOT 'and')) + + new value = (current value AND 'and') OR ('or' AND (NOT 'and')) The function uses the Modbus function code 0x16 (mask single register). @@ -35,5 +36,6 @@ linkmb:modbus_write_registers[3] AUTHORS ------- +Martijn de Gouw The libmodbus documentation was written by Stéphane Raimbault