Ankündigung

Einklappen
Keine Ankündigung bisher.

Wenn Dann-Funktion in Gira Experte

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

    Wenn Dann-Funktion in Gira Experte

    Hallo zusammen,

    ich habe wieder ein Problem, bei dem ich nicht weiterkomme. Eingentlich ein kleines, dachte ich:

    Wenn ein Taster (5/0/18) gedrückt wird, soll erst geprüft werden, ob mindestens eine der zwei Lampen (5/0/1+5/0/3) eingeschaltet ist.

    Wenn ja sollen beide Lampen ausgeschaltet werden.
    Wenn nein, soll das Licht anhand einer von 5 Szene eingestellt werden.


    Das Eingangs-Signal für die Szene sind 5 interne Kommunikationsobjekte, die im Quad-Client über die Zeitschaltuhr programmiert werden.
    z.B.
    Szene 1 0:00-5:59
    Szene 2 6:00-9:00
    usw.

    Liegen durch einen Bedienfehler in mehreren Szenen eine 1 an, reicht es, die erste der aktiven Szene auszuführen.


    Mein Problem ist, dass ich schon an der einfachen wenn-dann-Abfrage scheitere. Der Taster liefert nur eine 1 bei steigender Flanke.
    Eine 0 bei fallender Flanke ist nicht vorgesehen. Somit muss ich doch die 1 vom Taster irgendwie reseten, oder?

    Im Anhang mein kläglicher Versuch.
    Ich hoffe, Ihr könnt mir weiterhelfen. Vielen Dank an das Forum.

    Alexander


    You do not have permission to view this gallery.
    This gallery has 1 photos.

    #2
    It is fine that the Taster only sends a '1'.
    What you could do:
    1. Use an 'Oder' to determine if a light is on. The output then will be '1'.
    2. To enable the use of a two-fold output selector (9069), add '1' to the output of the 'Oder'. Connect that to E2 of 9069, which selects the output. If a light is on, and E1 receives a '1', then A2 will be '1'. Set a command to turn off both lights.
    3. Let your timeclock assign a value to an internal GA. From midnight until 4 a 1, then a 2, and so on. If no light is on, and E1 receives a '1', then A1 will be '1'. Set a command to set a second internal GA to the value of the first one. That second GA is the input (E1) of a comparator such as 17702. Based on that input, the corresponding output will send a '1'. Set a command to trigger a scene or whatever you like.
    There may well be easier ways to do it

    PS: if you truly only use scenes, then you can directly assign the value of the first internal GA to the scene GA in the command tied to A1 of the output selector. In that case you do not need the additional module.
    Zuletzt geändert von bramlangen; 11.06.2017, 08:06. Grund: Added the PS.

    Kommentar


      #3
      Dear Axel,
      thank you for help. I'm working on point 1+2 from your description. Please take a view at my picture. Is that correct, what you mean? First time, it works. But I still have problem, that it only works one time.

      Best regards
      Alexander
      You do not have permission to view this gallery.
      This gallery has 1 photos.

      Kommentar


        #4
        The logic looks good. If a light is ON, then the commands will be executed when you press the button. If no light is on, nothing will happen.

        I suggest you manually turn on a light, verify in EIBMON or the ETS group monitor that the RM GA telegram is seen, then press the button. The lights should go OFF. When you repeat that cycle, you should see the same thing in EIBMON. If not, attach a screenshot of the telegrams.

        Bram

        Kommentar


          #5
          Dear Axel,
          in attachment, you'll find telegrams. I marked orange points, I used the scene-switch.
          First time, it works. You can see, 5/0/0 and 5/0/2 are switched off. You can see also back messages 5/0/1 and 5/0/3 OFF.

          But if you use now normal switch for main-light (I marked you blue), again all light would be switch off (I marked red).
          I think, I is because 5/0/18 is still "1". So 9069 give A2 in same moment


          You do not have permission to view this gallery.
          This gallery has 1 photos.

          Kommentar


            #6
            Module 9060 will only send an output if a new telegram arrives at E1. Since the HS still executes the command, to me it means some telegrams may not arrive at the HS. It appears you have multiple routers or couplers, as can be seen in the 'Route' column. One way to check is to use EIBMON instead of the group monitor - that way you know for sure what the HS is seeing. To make troubleshooting easier, I suggest you tie a temporary output box to A1 of the Addition module, so that A1 connects to a temporary GA so that the actual value can be monitored (make sure it is a type that can handle numbers). If the lights turn off, but the temporary GA does not switch back to the value '1', then one of the RM telegrams does not make it to the HS.

            Kommentar


              #7
              Dear Axel,
              here the EIBMON. May be, you can find a mistake. I marked you switches, I turned by hand.
              You do not have permission to view this gallery.
              This gallery has 1 photos.

              Kommentar


                #8
                Are you certain 5/0/18 (in the HS) is not listening to another GA, like 5/0/0 ? The only way for those three commands to execute is if E1 receives a telegram. But, you do not knowingly switch 5/0/18, yet it triggers the command - so I would say it must be listening to another GA. If the external GA in the HS KO listing has a '+' in front of it, then it listens to something else.

                Kommentar


                  #9
                  Do you mean that?
                  You do not have permission to view this gallery.
                  This gallery has 1 photos.

                  Kommentar


                    #10
                    Alexander, I was wrong on module 9069 - it retriggers when the output selector value changes! I had to test it to believe it.
                    Import module 15050 and use that one instead, forget about the 'Add' module. It should work for you. See screenshot (which has the GAs I used for testing, not yours).
                    Bram
                    Angehängte Dateien

                    Kommentar


                      #11
                      Dear Bram,
                      thank you so much. I'll test it next day's and reply.

                      Kommentar


                        #12
                        Dear Bram,
                        sorry for late reply. Now, I changed module and it works. Great! Thank you.

                        Alex

                        Kommentar


                          #13
                          Zitat von bramlangen Beitrag anzeigen
                          Alexander, I was wrong on module 9069 - it retriggers when the output selector value changes! I had to test it to believe it.
                          Import module 15050 and use that one instead, forget about the 'Add' module. It should work for you. See screenshot (which has the GAs I used for testing, not yours).
                          Bram
                          Dear Bram,

                          I've set up some logic for my garden watering. Within this logic I use module 15050 and it works fine.

                          But since 15050 is not a module coming with the Experte and facing my upcoming update from 4.5 to the latest version of the Experte, I'm afraid that 15050 might not work any more after the update. So I replaced 15050 by 9069. But 9069 ist not playing like 15050 (as discussed within this thread) and therefore not usable for my needs.

                          Long talk short sense: Do you have any idea if 15050 is still working with the latest version of the Experte?

                          Peter

                          Kommentar


                            #14
                            Peter, I don't know - I don't have compatible hardware to upgrade beyond Experte 4.5. The formulas of module 15050 do not look exotic so I would expect them to work also in the newer Python version. I would simply take the chance - and if it does not work I would take a copy of 9069 and modify it in such a way that it only acts when E1 changes :-)
                            Bram

                            Kommentar


                              #15
                              Thanks Bram, I will report here...

                              Kommentar

                              Lädt...
                              X