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 int16 to float16
#7
(02.03.2020, 15:33)Daniel. Wrote: If in profile value_multiplier": 0.1 works then you should do the same here 
outside_te*0.1
I don't think the 65523 is a correct value. Usually such is send when No value or no sensor is on PLC side.
I figured out.

uint16 max value is 65535. If minus degrees, value is changed reversely.

65535-65523=12
12/10=1.2 
1.2*-1=-1.2°C
Reply


Messages In This Thread
Convert int16 to float16 - by fleeceable - 28.02.2020, 13:23
RE: Convert int16 to float16 - by Daniel - 29.02.2020, 09:24
RE: Convert int16 to float16 - by fleeceable - 02.03.2020, 14:26
RE: Convert int16 to float16 - by admin - 02.03.2020, 07:42
RE: Convert int16 to float16 - by Daniel - 02.03.2020, 15:33
RE: Convert int16 to float16 - by fleeceable - 02.03.2020, 16:58
RE: Convert int16 to float16 - by admin - 02.03.2020, 15:52
RE: Convert int16 to float16 - by Daniel - 02.03.2020, 17:10
RE: Convert int16 to float16 - by admin - 02.03.2020, 19:03

Forum Jump: