NEWS
Impulse zählen bei Leistungsanstieg
-
Hallo,
ich möchte über den Leistungsanstieg meiner Wasserpumpe zählwn wie oft sie einschaltet.
Zur Umsetzung dachte ich, einfach messen wenn 25 Watt überschritten werden, dann den Zähler um 1 hochzählen.
Um sicher zu sein dass er nur einmal zählt dachte ich, einfach 1 Minute warten und dann erst ausführen. (Die Pumpe läuft nur 30Sekunden dann ist der Sammelschacht leer.)
Das passt aber nicht :) Der Zähler zählt nach 1 Minute zuerst um Eins hoch, dann kurz darauf nochmal um Eins.

Wo liegt mein Denkfehler? DANKE !<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> <variable id="3okqS59VMsK+XDFh+0SE">impulse_alt</variable> <variable id="RZI_u}?y}!ozy(dUH5QW">impulse_neu</variable> </variables> <block type="on_ext" id="^O]{#X4cLVr,dxA8J+oZ" x="-713" y="-613"> <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="?QVRfK`Km3@@7fspSI:1"> <field name="oid">hm-rpc.0.REQ0777466.2.POWER</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="eKBgg_cLdvp!h%Wc06}0"> <value name="IF0"> <block type="logic_compare" id="*qAWBZj1_x(%/dw$7Eg="> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="MhP%.qzHXx/4b3,jg:8m"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.REQ0777466.2.POWER</field> </block> </value> <value name="B"> <block type="math_number" id="5#c}BclPeXD9xA?*d*u_"> <field name="NUM">25</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="E6c,Dz{-d+No68M=DC)H"> <field name="COMMENT">1min warten um die Leistungsspitze nur einmal zu zählen</field> <next> <block type="timeouts_settimeout" id="4Qg?p*Z]DCF/!{)cK{Fx"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="t;/Zh{uMf(o],~-+OntM"> <field name="VAR" id="3okqS59VMsK+XDFh+0SE">impulse_alt</field> <value name="VALUE"> <block type="get_value" id="?wTnwt0?K_8E%Tnk6.eq"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Garten.grundwasser_impulse_keller</field> </block> </value> <next> <block type="variables_set" id=":-/Kcx*z%P%epeF0:V$o"> <field name="VAR" id="RZI_u}?y}!ozy(dUH5QW">impulse_neu</field> <value name="VALUE"> <block type="math_arithmetic" id="LJD1uV9)Doq@HNDZtfa5"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="V[M.Om=|S,oi.((D{R!@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="[G?ZEF:EN$JXinyHX$~b"> <field name="VAR" id="3okqS59VMsK+XDFh+0SE">impulse_alt</field> </block> </value> <value name="B"> <shadow type="math_number" id="e-?sbeL0_BQAkq]M_~Br"> <field name="NUM">1</field> </shadow> </value> </block> </value> <next> <block type="update" id="SZ?cd/H@X{ZP^]M7vBgL"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Garten.grundwasser_impulse_keller</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="P!GBoAUR~j;[3B}t2|so"> <field name="VAR" id="RZI_u}?y}!ozy(dUH5QW">impulse_neu</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml> -
Hallo,
ich möchte über den Leistungsanstieg meiner Wasserpumpe zählwn wie oft sie einschaltet.
Zur Umsetzung dachte ich, einfach messen wenn 25 Watt überschritten werden, dann den Zähler um 1 hochzählen.
Um sicher zu sein dass er nur einmal zählt dachte ich, einfach 1 Minute warten und dann erst ausführen. (Die Pumpe läuft nur 30Sekunden dann ist der Sammelschacht leer.)
Das passt aber nicht :) Der Zähler zählt nach 1 Minute zuerst um Eins hoch, dann kurz darauf nochmal um Eins.

Wo liegt mein Denkfehler? DANKE !<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> <variable id="3okqS59VMsK+XDFh+0SE">impulse_alt</variable> <variable id="RZI_u}?y}!ozy(dUH5QW">impulse_neu</variable> </variables> <block type="on_ext" id="^O]{#X4cLVr,dxA8J+oZ" x="-713" y="-613"> <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="?QVRfK`Km3@@7fspSI:1"> <field name="oid">hm-rpc.0.REQ0777466.2.POWER</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="eKBgg_cLdvp!h%Wc06}0"> <value name="IF0"> <block type="logic_compare" id="*qAWBZj1_x(%/dw$7Eg="> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="MhP%.qzHXx/4b3,jg:8m"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.REQ0777466.2.POWER</field> </block> </value> <value name="B"> <block type="math_number" id="5#c}BclPeXD9xA?*d*u_"> <field name="NUM">25</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="E6c,Dz{-d+No68M=DC)H"> <field name="COMMENT">1min warten um die Leistungsspitze nur einmal zu zählen</field> <next> <block type="timeouts_settimeout" id="4Qg?p*Z]DCF/!{)cK{Fx"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="t;/Zh{uMf(o],~-+OntM"> <field name="VAR" id="3okqS59VMsK+XDFh+0SE">impulse_alt</field> <value name="VALUE"> <block type="get_value" id="?wTnwt0?K_8E%Tnk6.eq"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Garten.grundwasser_impulse_keller</field> </block> </value> <next> <block type="variables_set" id=":-/Kcx*z%P%epeF0:V$o"> <field name="VAR" id="RZI_u}?y}!ozy(dUH5QW">impulse_neu</field> <value name="VALUE"> <block type="math_arithmetic" id="LJD1uV9)Doq@HNDZtfa5"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="V[M.Om=|S,oi.((D{R!@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="[G?ZEF:EN$JXinyHX$~b"> <field name="VAR" id="3okqS59VMsK+XDFh+0SE">impulse_alt</field> </block> </value> <value name="B"> <shadow type="math_number" id="e-?sbeL0_BQAkq]M_~Br"> <field name="NUM">1</field> </shadow> </value> </block> </value> <next> <block type="update" id="SZ?cd/H@X{ZP^]M7vBgL"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Garten.grundwasser_impulse_keller</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="P!GBoAUR~j;[3B}t2|so"> <field name="VAR" id="RZI_u}?y}!ozy(dUH5QW">impulse_neu</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml> -
@aiouh sagte: Wo liegt mein Denkfehler?
Die Leistung ist im Ein-Zustand nicht konstant, so dass der Timer mehrfach gestartet wird. Versuche es mal so:

Wert und vorheriger Wert findet man unter "Trigger".
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden