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.

Modbus scaling to float
#1
Hello,

I'm trying to scale a 0.1 m3/h register to m3
Code:
{
"manufacturer": "DabPumps",
"description": "Evoplus Small_test",
    "mapping":
    
    
        [        
        
        {    "name": "Flusso Stimato",
            "address": 220,
            "type": "register",
            "bus_datatype": "float16",
            "value_multiplier": 0.1,
            "writable": false,
            "units": " m³/h"
        }
        
        
    ]
}

It keeps giving me 0.00, if I remove value_multiplier it reads pretty much 7...how could it be?

I know that probably it's a simple thing but I can't see where I'm wrong

Thank you!
Reply
#2
Add "datatype": "int16"
------------------------------
Ctrl+F5
Reply
#3
False alarm, now it's reading good with the previous code.

I really don't know what the problem was, since yesterday it kept reading 0.00 until now.

Thank you for your help.
Reply


Forum Jump: