The <modbus_write> block is used to configure remote ModBus/TCP outputs.
Refer to the pymodbus module documentation for more details.
•« client_id » : This is the identifier for the connection to the remote I/O module; it must come from a <modbus_conn> block. The default value is None (type NoneType)
•« #slave » : This is the ModBus slave number. The default value is 1 (type int)
•« #function » : This is the ModBus function number. This number can be 5, 6, 15, or 16. The default value is 16 (type int); this corresponds to writing multiple “holding registers.”
•« offset » : This is the memory offset in the ModBus slave table.
•« value » : This is a value or a list corresponding to the state of the outputs that must be written to the ModBus remote output module.
•« valide » : This is true if the state of the outputs was correctly received by the ModBus slave.
•« status » : This is the write status; it is equal to the requested function if the write was successful, otherwise it is the error code provided by the pymodbus module.
This block uses the Modbus/TCP connection identifier, which is generated by the <modbus_conn> block.
See also the <modbus_read> block if you wish to read ModBus/TCP remote inputs.