This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Convert HEX value to binary values
#2
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 Smile

(PS: from a profile for a different modbus device)

Eirik
Reply


Messages In This Thread
RE: Convert HEX value to binary values - by eirik - 14.12.2017, 16:55

Forum Jump: