Ankündigung

Einklappen
Keine Ankündigung bisher.

Baustein with time function

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

    Baustein with time function

    Hi,

    Someone has an example of a Baustein with time functions ?
    I checked a couple of Baustein but didn't find it.

    I'm willing to do a compare on certain hours and other conditions in order to take actions, i.e.
    a user click and hour of the day < 12 then do action A
    a user click and hour of the day > 12 and < 16 then do action B

    Thank you

    #2
    As far as I remember there should be "Datum und Uhrzeit" which gives you "Ausgang Stunde" in [hours].

    So I would do some logic as follows:
    - Click sets iKO to 1
    - "Eingangsbox" iKO goes into "Und" together with some comparisons as "Stunde < 12" or "Stunde > 8"
    - "Und" goes into "Ausgangsbox"
    Es grüßt der Alex!

    Kommentar


      #3
      Hi Raymond,

      you will find some examples in the file logic.dat in your HS-directory, e.g. 9043 'Sonnenstand' or 9084 'Sonnenaufgang'.

      Maybe there is a simple 2-module-solution for your problem: you should consider to use the logic module "Vergleicher/Fall-Prüfung (<=) 8 Ausgänge", with the current time as decimal time connected to E1, and output A1 connected to the logic module "Auswahlschalter/Eingang => 16 Ausgänge".
      Gruß, Rainer

      Kommentar

      Lädt...
      X