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 decimal to binary and contrary !
#3
Specifically I am wanting to control the air conditioner via modbus rtu. But my device only sends back the value of the register as Decimal for LM. But the modbus documentation of the conditioner must read and send commands via binary value. So I have to convert from Decimal to Binary. But the problem now how do I send the command into any of the 0-15 bits? Through Modbus poll software, I can do this, but on LM I can't do it Sad
I am very happy for your help! But how do I convert the value 5000 to a binary value, and vice versa I have 1 binary value and then convert it to a decimal value? Smile

Attached Files Thumbnail(s)
           
Reply


Messages In This Thread
RE: convert decimal to binary and contrary ! - by phongvucba - 23.03.2022, 10:16

Forum Jump: