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 Profil/Bool values?
#1
Hey guys,

I try to read the values from my Sungrow Inverter. When i try to read values with the "Read Check" I get good values. After that I made the profil for the device, added it and it seems that i only get boolean values but i don't know what to change.
My Profil:
Code:
{
  "manufacturer": "Sungrow",
  "description": "SH10RT Inverter",
  "mapping": [
    {
      "name": "NominalOutputPower",
      "bus_datatype": 1,
      "datatype": "uint16",
      "type": "inputregister",
      "address": 5000,
      "units": "kW",
      "value_multiplier":0.1
    },
    {
      "name": "Daily Output Energy (PV+BAT)",
      "bus_datatype": 1,
      "datatype": "uint16",
      "type": "inputregister",
      "address": 5002,
      "units": "kWh",
      "value_multiplier":0.1
    },
    {
      "name": "Total Output Energy (PV+BAT)",
      "bus_datatype": 1,
      "datatype": "uint32",
      "type": "inputregister",
      "address": 5003,
      "units": "kWh",
      "value_multiplier":0.1
    },
    {
      "name": "Inside Temperature",
      "bus_datatype": 1,
      "datatype": "uint16",
      "type": "inputregister",
      "address": 5007,
      "units": "°C"
    },
    {
      "name": "MPPT 1 Voltage",
      "bus_datatype": 1,
      "datatype": "uint16",
      "type": "inputregister",
      "address": 5010,
      "units": "V",
      "value_multiplier":0.1
    },
    {
      "name": "MPPT 1 Current",
      "bus_datatype": 1,
      "datatype": "uint16",
      "type": "inputregister",
      "address": 5011,
      "units": "A",
      "value_multiplier":0.1
    }
   
  ]
}

[Image: Q5Q1P]

Can somebody help me please. And yes I am very new to this whole topic
Reply
#2
You did set "bus_datatype": 1, this is a boolean change to "float16"
------------------------------
Ctrl+F5
Reply
#3
You mean "bus_datatype": float16
Reply
#4
"bus_datatype": "float16",
------------------------------
Ctrl+F5
Reply
#5
(02.01.2024, 16:29)Daniel Wrote: "bus_datatype": "float16",

Thank you. Worked out fine after updating the firmware of the modbus device.
Reply


Forum Jump: