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.

rounding error
#3
Hi Admin,

I have tested with 2 byte floating point and the temperature variant. So create just an object of 2 byte floating point. then write an event script for this new object that looks like,

if(event.type='groupwrite')then
grp.write(event.dst,103)
elseif (event.type=='groupread')then
grp.response(event.dst, 103)
end

Then use ETS to monitor the LM, in both cases 102.96 is sent on the bus.


thanks,


Roger
Reply


Messages In This Thread
rounding error - by rocfusion - 22.07.2017, 21:22
RE: rounding error - by admin - 24.07.2017, 06:01
RE: rounding error - by rocfusion - 24.07.2017, 08:39
RE: rounding error - by admin - 24.07.2017, 08:52
RE: rounding error - by buuuudzik - 24.07.2017, 09:49

Forum Jump: