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.

set value 5000 on float16 becomes 4999.68
#1
Can you help?

I defined a group object of type float16 (09. 2 byte floating point).

When I set the value (manually or via /cgi-bin/scada-remote/request.cgi) to 5000, I get 4999.68.

There are no event scripts attached to the group object.

I am running on:
HW: Reactor v2 (i.MX28)
SW: 20200720

What am I doing wrong?
Reply
#2
float16 has limited precision so you can't get 5000 precisely. If possible use float32 or int16.
Reply
#3
(27.08.2021, 12:20)admin Wrote: float16 has limited precision so you can't get 5000 precisely. If possible use float32 or int16.

ok, I understand - thanks!
Reply


Forum Jump: