Ankündigung

Einklappen
Keine Ankündigung bisher.

Modifying Logic modules

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

    HS/FS Modifying Logic modules

    I'm learning to make Logic modules by modifying existing modules.
    Does anybody know where I could find the module with Internal designation 9080 (Decimal time in time of day)?
    As all outputs are Sent By Change the output of my Operating Hours Counter does not look correct....
    It starts with 0 in stead of 00:00:00
    If I could disable the SBC it would sent the Hours, Minutes and Seconds every time when a telegram reaches the Input.
    Danke!

    #2
    Zitat von 747driver Beitrag anzeigen
    Does anybody know where I could find the module with Internal designation 9080 (Decimal time in time of day)?
    You will not find it as a separate file. Many modules are "build in", they are to be found in a file "logik.dat" in my case (ver 2.5) at
    C:\Program Files\GIRA\HS+FS\exp250\DE\dat\logik.dat
    edit the file with NotePad and search for your reference: 9080
    you'll find this

    ### BS : Dezimal in Uhrzeit
    5001|9080|1|3|0|0|1
    5002|9080|1|0 #Uhrzeit (Dezimal)
    5004|9080|1|0|0|2 #A1: Stunde (sbc)
    5004|9080|2|0|0|2 #A2: Minute (sbc)
    5004|9080|3|0|0|2 #A3: Sekunde (sbc)
    5012|9080|0|"EI or EC[1]"|"int(EN[1])"|""|1|0|0|0
    5012|9080|0|"EI or EC[1]"|"int((EN[1]-(int(EN[1])))*60)"|""|2|0|0|0
    5012|9080|0|"EI or EC[1]"|"int((((EN[1]-(int(EN[1])))*60)-int((EN[1]-(int(EN[1])))*60))*60)"|""|3|0|0|0

    Kommentar


      #3
      Yessss, Hartelijk dank!!
      Found the file Logik.dat in C:\Program Files\GIRA\HS+FS\exp280\dat
      To prevent the new module from being changed by an update of HS Expert program I took out the part I needed and saved it in the "regular" Logic folder.

      ### BS : Dezimal in Uhrzeit (internal module 9080)
      ### Modified version without SBC for the Outputs
      ### Outputs giving Hours, Minutes and seconds whenever the Input changes
      5000|"Eric\Decimal Time Conversion Eric"|0|1|"E1 Time (decimal)"|3|"A1 Hr."|"A2 min."|"A3 sec."|
      5001|1|3|0|0|1
      5002|1|0 #Uhrzeit (Dezimal)
      5004|1|0|0|1 #A1: Stunde
      5004|2|0|0|1 #A2: Minute
      5004|3|0|0|1 #A3: Sekunde
      5012|0|"EI or EC[1]"|"int(EN[1])"|""|1|0|0|0
      5012|0|"EI or EC[1]"|"int((EN[1]-(int(EN[1])))*60)"|""|2|0|0|0
      5012|0|"EI or EC[1]"|"int((((EN[1]-(int(EN[1])))*60)-int((EN[1]-(int(EN[1])))*60))*60)"|""|3|0|0|0

      Kommentar


        #4
        I wrote a How-To to extract parts of logik.dat and save changes as a separate hsl-File:

        HowTo: Logikbaustein erstellen - HS/FS - Lexikon - KNX-User-Forum
        Gruß Matthias
        EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
        - PN nur für PERSÖNLICHES!

        Kommentar


          #5
          Thanks a lot Matthias!
          I have the doku-logiksprache.pdf document from Dacom.
          With your Howto it becomes easier to understand how it works.
          Right now I'm trying to produce reset telegrams which are produced every Hour, Day, Month and Year to keep track of water usage and to see how often and how long the well pump has been running.
          The problem there is that the resets are also sent every time the HS is restarted...
          So far the only solution has been to produce the telegram at 1 second past the hour in stead of exactly on the hour.
          Guess is has something to do with either the SBC, "Berechnung bei Initialisierung" or the Input/Output Init.-Wert.
          Still a lot to learn....
          Angehängte Dateien

          Kommentar

          Lädt...
          X