@kklaus
Du musst berechnen, ob die Batterie be oder entladen wird, dass kann Modbus so nicht
Datenpunkt berechnen Skript
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="(ocA``hXb:ASln87_[5i">PV Akku Be- oder Entladung</variable>
</variables>
<block type="on_ext" id="ehBZF8`0,PKLSMKg__PB" x="-2012" y="-487">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="0m^saRA]WjVCQ`9A%2n8">
<field name="oid">modbus.0.inputRegisters.13007_Load_power_</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="F`@4}oyq-b-2|/kYbR$U">
<field name="VAR" id="(ocA``hXb:ASln87_[5i">PV Akku Be- oder Entladung</field>
<value name="VALUE">
<block type="math_arithmetic" id="1Zv4~dL0,_aGpt}7[_kP">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="d[QgpJU-{V|[)Y8g,,:@">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="5||kb1lHC-qwY!85c3KH">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="lWjzQ^1^A)~nyY4K}k/%">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="v|oqCDrxh=7lS_fPh~*[">
<field name="ATTR">val</field>
<field name="OID">modbus.0.inputRegisters.5016_Total_DC_Power</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="hMTHE%-|Fip{Z1M$2d7y">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="pQL:D)uc#*C|yW94;;1U">
<field name="ATTR">val</field>
<field name="OID">modbus.0.inputRegisters.13007_Load_power_</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="LWB:(CTORxv:`-#$RF=q">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="E}0?u4:S)mn)6}@G9fd]">
<field name="ATTR">val</field>
<field name="OID">modbus.0.inputRegisters.13009_Export_power</field>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="(TMX3NmoY?k,I8B2]p?C">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.PV_Datenpunkte.Berechnung_Batterieentladung_negativ</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="p$a.=$hGsH%AenyyxPI!">
<field name="VAR" id="(ocA``hXb:ASln87_[5i">PV Akku Be- oder Entladung</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</xml>