AdvancedHMI Software

General Category => Support Questions => Topic started by: boardmaker on March 18, 2022, 12:59:46 PM

Title: Can you write to modbus words at the bit level?
Post by: boardmaker on March 18, 2022, 12:59:46 PM
Archie,

Wondering if you can write to Modbus words at the bit level?  I know you can read them.
Title: Re: Can you write to modbus words at the bit level?
Post by: Archie on March 18, 2022, 01:08:16 PM
Only if the device supports function code mask write

http://www.mesulog.fr/help/modbus/index.html?page=mask-write-registers-f22.html

Otherwise you need to read the word, modify the value, then write it back and hope it didn't change in the process