Ankündigung

Einklappen
Keine Ankündigung bisher.

HS logic modules: understanding the overall logic

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Warichet
    antwortet
    Hi,

    Yet another question, about the HS internal variables and logic modules.

    I've defined a HS internal variable, init at 1.
    In the graphical logic editor, I put the variable to BOTH inputs of an AND gate. So I expected the result to be 1 after the reboot of the HS !

    Well no .
    I can't understand this . There must some external condition before it runs ? pre-requisites ? (other then download & reboot)
    In other words, when does this "init at 1" take place ?

    Thank you

    Einen Kommentar schreiben:


  • Gaston
    antwortet
    Inline comments used to be a problem. As far as I remember this has been fixed. The problem did only occur if the comment included the "|" sign.

    Kind regards,
    Gaston

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von Taxus Beitrag anzeigen
    question 3): it stops the calculation of the current module. The module will be re-triggered, when anything happens to one of the input-pins.
    Thank you, that's what I understood from EIB-Freak.

    Zitat von Taxus Beitrag anzeigen
    so far the DACOM documentation uses comments only as standalone lines starting with '#' as first character.
    Yes, I noticed, but as most languages allow for in-line comments, I wondered...

    Zitat von Taxus Beitrag anzeigen
    (I will not call it a bug because inlne-comments are not defined to work).
    What a sweet statement ... but neither are they defined "not to work".
    Anyway, I'll follow the advice of the wise.

    Thank you for your kind help

    Einen Kommentar schreiben:


  • Taxus
    antwortet
    Inline comments

    First, to your question 3): it stops the calculation of the current module. The module will be re-triggered, when anything happens to one of the input-pins.

    Second, to the comments: so far the DACOM documentation uses comments only as standalone lines starting with '#' as first character. Comments may work within a line, but I don't use them any more having lost some time searching the following effect (I will not call it a bug because inlne-comments are not defined to work). With HS Experte 2.1.2 the code

    5004|1|0|0|1|0
    5004|2|0|0|1|0 # Kommentar 1
    5004|3|"a"|0|1|1 # Kommentar 2
    5004|4|"b"|0|1|1
    5004|5|"c"|0|1|1 # Kommentar 3

    gives the module as shown in the picture added; with HS Experte 2.2 RC it gives the module as expectet. So be careful.

    Greetinx, Rainer
    Angehängte Dateien

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Is it allowed to put a comment on the same line as a definition or a formula, like:
    Code:
    5001|2|2|1|1|0  # 2 Input, 2 Output, 1 Time Var, 1 Mem Var, No Compute at Start
    Normally, yes, but who knows....
    I've found no example where it is written that way, so I ask.

    Thank you

    Einen Kommentar schreiben:


  • Michel
    antwortet
    Yes, you are right. Just put the "Kommunikationsobjekt" in the Out-Box to switch e.g. a lamp.

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von EIB-Freak Beitrag anzeigen
    at any event on the Inputs the module is calculating/working.
    Sorry, forgot to ask about the Grafisher Logikeditor ...
    Suppose the output of the logic module is 1, is it sufficient to feed it directly to an Ausgangs-box i.e. just like a PB would do to light a lamp ? or do I need to specify "Befehle".
    I thought the "Befehle" field is for additional commands ?

    Thanks

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von EIB-Freak Beitrag anzeigen
    at any event on the Inputs the module is calculating/working.
    OK, thanks
    Zitat von EIB-Freak Beitrag anzeigen
    The module calculate/work while the HS restarts.
    OK, thanks. I totally misundestood this. I though it was at initializing of the logic bloc itself
    Zitat von EIB-Freak Beitrag anzeigen
    I've read the topic several times, but mmmh, my poor knowledge of the language is a handicap.

    Thank you "Magier" for helping a poor apprentice sorcerer

    Einen Kommentar schreiben:


  • EIB-Freak
    Ein Gast antwortete
    Zitat von Warichet Beitrag anzeigen
    1) Is the logic module evaluated only once, or is it looping for ever ?
    at any event on the Inputs the module is calculating/working.
    Such as KNX: Event-based!

    Zitat von Warichet Beitrag anzeigen
    2) There is a variable EI "Die Berechnung findet innerhalb der Initialisierung statt."
    The module calculate/work while the HS restarts. Look also here: https://knx-user-forum.de/showthread.php?t=357 (page 3)

    Einen Kommentar schreiben:


  • Warichet
    hat ein Thema erstellt HS logic modules: understanding the overall logic.

    HS logic modules: understanding the overall logic

    Hi,

    I've some questions about the working of the overall logic of the logic modules.

    1) Is the logic module evaluated only once, or is it looping for ever ?

    2) There is a variable EI "Die Berechnung findet innerhalb der Initialisierung statt."
    but don't fully undestand the meaning or use, an example would help.

    3) In the 5012 line, there is a flag "Ende nach Ausführen"
    does it mean that only the current line is not executed anymore after this run (but all subsequent well) or does it stop the whole logic module for ever (in which case, another question arises: how can I restart it).

    Thank you
Lädt...
X