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 !
#5
oh..thank so much Daniel ! I will check. Smile

I read through this, but don't quite understand, sorry I'm new to modbus.
Hope everybody help please!
I have the following example, the value of the register is as follows (42014):
To select the dry mode is:
0100 0010 0000 0111 16903 dry mode
To select the cool mode is:
0100 0010 0000 0010 16898 cool mode
To select fan mode is:
0100 0010 0000 0000 16896 fan mode
Thus, when selecting modes, we only need to send the change command for 3 bits 0,1,2 from left to right (here, 111, 011, and 010). How can I send these bits? Sad . Please help me.
Thank so much !
Reply


Messages In This Thread
RE: convert decimal to binary and contrary ! - by phongvucba - 24.03.2022, 06:45

Forum Jump: