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.

correct math for energy metering
#1
Hi,

how correctly make math for my power meter device's data:

I receive 2 byte sighned integer 2083 kWh. But real is 208.3kWh. If I use value myltiplayer for modbus mapper I have only integer part - 208 kWh.

If I just divide 2083 /10 anyway I have only 208. 

So how correctly convert value to floating point to have integer and 2 digits after point for more accurate power metering data??

BR,

Alex
Reply


Messages In This Thread
correct math for energy metering - by AlexLV - 24.06.2019, 20:42

Forum Jump: