Issue
How can Modbus address xxxx, function 16 be written?
Environment
Modbus driver
Cause
To use function code 16 instead of 06, configure the properties usePresetMultipleRegister and usePresetMultipleCoil
Resolution
By default, the Modbus driver uses function codes 05 (Force Single Coil) and 06 (Force Single Register) and can be set up to support the Force Multiple function codes.
Navigate to the Modbus Service properties -> General – Config tab.
Set the properties usePresetMultipleRegister and usePresetMultipleCoil both to true.
The driver will now write using function code 16 instead of 06 for both the ModbusGenericAO and ModbusPresetRegister objects.