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

    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

    #2
    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)

    Kommentar


      #3
      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

      Kommentar


        #4
        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

        Kommentar


          #5
          Yes, you are right. Just put the "Kommunikationsobjekt" in the Out-Box to switch e.g. a lamp.
          Gruss aus Radevormwald
          Michel

          Kommentar


            #6
            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

            Kommentar


              #7
              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
              Gruß, Rainer

              Kommentar


                #8
                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

                Kommentar


                  #9
                  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

                  Kommentar


                    #10
                    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

                    Kommentar


                      #11
                      In my case: Well, yes!

                      It works as everyone would expect. Please check your data!
                      Gruß Matthias
                      EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
                      - PN nur für PERSÖNLICHES!

                      Kommentar


                        #12
                        Hi Matthias,
                        Sorry to be a pain, but I can't make it work.
                        When I put 2 "standard" variables to the AND, it works fine.
                        When one of the inputs is a HS internal var, that I initialized to 1, it doesn't work.
                        So, I guess I make a mistake in the definition of the variable
                        Do you see something wrong ?
                        Angehängte Dateien

                        Kommentar


                          #13
                          I made one internal variable, same as yours. Init = 1

                          Connected it to both inputs of one AND.

                          Second internal variable (1bit) at output 1.

                          Restart

                          Result:
                          variable 1 (input) = 1
                          second variable (output) = 1


                          Have you checked, whether your varaibles are NOT used in other logic connections?

                          What about your output variable?
                          Gruß Matthias
                          EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
                          - PN nur für PERSÖNLICHES!

                          Kommentar


                            #14
                            Zitat von MatthiasS Beitrag anzeigen
                            I made one internal variable, same as yours.
                            Always expect the worst from a newbee
                            I must make a terrible mistake, obvious for anyone with a bit experience, but I can't see it.
                            Zitat von MatthiasS Beitrag anzeigen
                            Have you checked, whether your varaibles are NOT used in other logic connections?
                            Yes.
                            I created it on purpose, and tested in a new logic sheet

                            Zitat von MatthiasS Beitrag anzeigen
                            What about your output variable?
                            It's a GA switching on a lamp.
                            Imho the AND and the GA are not to be suspected, as they work fine when I select other variables at the input.
                            It beats me

                            Any other idea ? things to check ? pre-requisites

                            Kommentar


                              #15
                              You mean, the output ist NOT an internal variable?

                              That would explain verything.....

                              use a fresh internal variable for output and see.....

                              It is the last part of the init sequence to read eib group adresses from the bus.
                              Gruß Matthias
                              EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
                              - PN nur für PERSÖNLICHES!

                              Kommentar

                              Lädt...
                              X