rossko57
(Rossko57)
December 11, 2019, 8:33pm
25
Do I see you writing individual bits in a register there?
There are other approaches to that - should you need to avoid setting/unsetting other bits in the same register
I’ve covered this before, but it got a bit lost in a general thread. @kazemiprince flushed out my errors, thankyou so we can present a tested solution here.
Problem
There are few “rules” in Modbus, each manufacturer decides their own way how to present device data and controls.
Even though Modbus provides ‘discrete’ inputs and ‘coil’ outputs for binary controls, such as go/nogo limit switches or on/off relays, sometimes a designer opts to present binary values as individual bits pack…