14.12.2017, 16:55
Hi
Looks for me you're reading from a Modbus device, and if thats the case I think you could read the bit like this:
One for each bit.
{ "name": "VAV_1_Excessive util", "bus_datatype": "bool", "type": "register", "address": 5, "datatype": "int16", "value_multiplier":1, "value_bitmask": "0x00" },
{ "name": "VAV_1_Mech travel incr", "bus_datatype": "bool", "type": "register", "address": 5, "datatype": "int16", "value_multiplier":1, "value_bitmask": "0x01" }
Please correct me if I'm wrong
(PS: from a profile for a different modbus device)
Eirik
Looks for me you're reading from a Modbus device, and if thats the case I think you could read the bit like this:
One for each bit.
{ "name": "VAV_1_Excessive util", "bus_datatype": "bool", "type": "register", "address": 5, "datatype": "int16", "value_multiplier":1, "value_bitmask": "0x00" },
{ "name": "VAV_1_Mech travel incr", "bus_datatype": "bool", "type": "register", "address": 5, "datatype": "int16", "value_multiplier":1, "value_bitmask": "0x01" }
Please correct me if I'm wrong
(PS: from a profile for a different modbus device)
Eirik