NEWS
[gelöst] Blockly: Retriggerbare Monoflop mit TimeOut (B)
-
Wahrscheinlich betrifft es nicht Blockly sondern Flot Edit. Da ich aber meinen Trigger vereinfacht habe schreibe ich das mal hier rein.

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="interval" id="Intervall">Intervall</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="comment" id="^5?|70{fl~%^v-[{-k|7" x="-487" y="-187"> <field name="COMMENT">retriggerbarer Monoflop </field> <next> <block type="update" id="~Ra#[Kx}_}:m:Gez6-7g"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox_Laden</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="hvu0e$07vgUijgi2$=3e"> <field name="NUM">30</field> </block> </value> <next> <block type="timeouts_setinterval" id="kn:(:z/YV@]6wBDB!7e("> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="debug" id=")c@EDf2z105/C3+QC_)("> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="]KhJHSrGl%J~3}(/*9({"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="2?1?bX6zf!}$HnOE8nJc"> <field name="ATTR">val</field> <field name="OID">hs100.0.192_168_178_19.power</field> </block> </value> <next> <block type="controls_if" id="3/h=@eQ;9xhK^Swe?*Ts"> <value name="IF0"> <block type="logic_compare" id="HRs0Yp$)JmO4kJDx$?RK"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="y9#]`fVZ=7X.VD.LTeqr"> <field name="ATTR">val</field> <field name="OID">hs100.0.192_168_178_19.power</field> </block> </value> <value name="B"> <block type="math_number" id="fAq^,b#jE8pj2|(u]S?|"> <field name="NUM">190</field> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="/3}R2V}RQHI]^-wK(%)$"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="Qd-}U-PPYB?,gE93gp@p"> <field name="TEXT">timeout Start</field> </shadow> </value> <next> <block type="update" id="fSY.6y%kkOxxs=mx@EYr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="R]E?0l,`C)fyIG%EG_*H"> <field name="NUM">201</field> </block> </value> <next> <block type="debug" id="6}rdF%T8dxIYMtVM4%d5"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="?|S9K73m[e?GM)u}vH]("> <field name="ATTR">val</field> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="M]eb%V@iO]sdMjpSWhN,"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="S08T!/a$2RR6|l?TQny?"> <field name="NAME">timeout</field> <field name="DELAY">30</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="update" id="u:#a{W26~oAKMyBKiKzW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!*yzjn{SWFWCt$KFqxLv"> <field name="NUM">30</field> </block> </value> <next> <block type="debug" id="}oV)U`L(CiZZ=gA]5=Zr"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="S*O!ME}$ung!!5Xz:uvd"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> </block> </value> <next> <block type="debug" id="-nbSwRw%rTQp9f_{Gtlf"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="{6*;a2!boSloL`5+PE#o"> <field name="TEXT">timeout Ende 1</field> </shadow> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </xml>Beim Diagramm sieht es am Anfang recht gut aus:

Wobei meine erste Frage dazu wäre: wie bekomme ich die Diagonale (am Anfang) weg. Ich habe nur 2 Werte. Einen unteren und einen oberen Wert! Ist da eine "Grauzone"?
Und wenn dann der Wert auf den untern springt, dann sieht es auf einmal so aus:

Normalerweise sollte die gelbe Linie noch einige Zeit weiter waagerecht verlaufen.
Es ist bestimmt wieder nur eine Einstellungssache, aber welche? Bitte um Hilfe :-) -
Wahrscheinlich betrifft es nicht Blockly sondern Flot Edit. Da ich aber meinen Trigger vereinfacht habe schreibe ich das mal hier rein.

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="interval" id="Intervall">Intervall</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="comment" id="^5?|70{fl~%^v-[{-k|7" x="-487" y="-187"> <field name="COMMENT">retriggerbarer Monoflop </field> <next> <block type="update" id="~Ra#[Kx}_}:m:Gez6-7g"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox_Laden</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="hvu0e$07vgUijgi2$=3e"> <field name="NUM">30</field> </block> </value> <next> <block type="timeouts_setinterval" id="kn:(:z/YV@]6wBDB!7e("> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="debug" id=")c@EDf2z105/C3+QC_)("> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="]KhJHSrGl%J~3}(/*9({"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="2?1?bX6zf!}$HnOE8nJc"> <field name="ATTR">val</field> <field name="OID">hs100.0.192_168_178_19.power</field> </block> </value> <next> <block type="controls_if" id="3/h=@eQ;9xhK^Swe?*Ts"> <value name="IF0"> <block type="logic_compare" id="HRs0Yp$)JmO4kJDx$?RK"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="y9#]`fVZ=7X.VD.LTeqr"> <field name="ATTR">val</field> <field name="OID">hs100.0.192_168_178_19.power</field> </block> </value> <value name="B"> <block type="math_number" id="fAq^,b#jE8pj2|(u]S?|"> <field name="NUM">190</field> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="/3}R2V}RQHI]^-wK(%)$"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="Qd-}U-PPYB?,gE93gp@p"> <field name="TEXT">timeout Start</field> </shadow> </value> <next> <block type="update" id="fSY.6y%kkOxxs=mx@EYr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="R]E?0l,`C)fyIG%EG_*H"> <field name="NUM">201</field> </block> </value> <next> <block type="debug" id="6}rdF%T8dxIYMtVM4%d5"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="?|S9K73m[e?GM)u}vH]("> <field name="ATTR">val</field> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="M]eb%V@iO]sdMjpSWhN,"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="S08T!/a$2RR6|l?TQny?"> <field name="NAME">timeout</field> <field name="DELAY">30</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="update" id="u:#a{W26~oAKMyBKiKzW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!*yzjn{SWFWCt$KFqxLv"> <field name="NUM">30</field> </block> </value> <next> <block type="debug" id="}oV)U`L(CiZZ=gA]5=Zr"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="get_value" id="S*O!ME}$ung!!5Xz:uvd"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field> </block> </value> <next> <block type="debug" id="-nbSwRw%rTQp9f_{Gtlf"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="{6*;a2!boSloL`5+PE#o"> <field name="TEXT">timeout Ende 1</field> </shadow> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </xml>Beim Diagramm sieht es am Anfang recht gut aus:

Wobei meine erste Frage dazu wäre: wie bekomme ich die Diagonale (am Anfang) weg. Ich habe nur 2 Werte. Einen unteren und einen oberen Wert! Ist da eine "Grauzone"?
Und wenn dann der Wert auf den untern springt, dann sieht es auf einmal so aus:

Normalerweise sollte die gelbe Linie noch einige Zeit weiter waagerecht verlaufen.
Es ist bestimmt wieder nur eine Einstellungssache, aber welche? Bitte um Hilfe :-) -
Hervorragend :-)
Danke.
Der kleine Piks ist über 190 Watt. Die anderen sind drunter!
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