Logic Machine Forum
Modbus Profil/Bool values? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Modbus Profil/Bool values? (/showthread.php?tid=5181)



Modbus Profil/Bool values? - Stieges - 02.01.2024

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


RE: Modbus Profil/Bool values? - Daniel - 02.01.2024

You did set "bus_datatype": 1, this is a boolean change to "float16"


RE: Modbus Profil/Bool values? - Stieges - 02.01.2024

You mean "bus_datatype": float16


RE: Modbus Profil/Bool values? - Daniel - 02.01.2024

"bus_datatype": "float16",


RE: Modbus Profil/Bool values? - Stieges - 03.01.2024

(02.01.2024, 16:29)Daniel Wrote: "bus_datatype": "float16",

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