[email protected]
Member
Hey,
I have a structure I want to make accessible over the network (ModbusTCP). I've assigned a modbus address to the structure and it auto populated the addresses.
What I am wondering is how does it pack the BOOL data type into the MW? I noticed it uses the same MW address for two boolean registers. How do I access those bits when I unpack the word? Is bit 0 the first boolean and bit 1 the second boolean?
Thanks
I have a structure I want to make accessible over the network (ModbusTCP). I've assigned a modbus address to the structure and it auto populated the addresses.
What I am wondering is how does it pack the BOOL data type into the MW? I noticed it uses the same MW address for two boolean registers. How do I access those bits when I unpack the word? Is bit 0 the first boolean and bit 1 the second boolean?
Thanks