Ankündigung

Einklappen
Keine Ankündigung bisher.

Convert three integers to a string

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

    HS/FS Convert three integers to a string

    Hi!

    I have three group adresses with an integer, that together is a date. Like:

    1/0/0 Year (2018)
    1/0/1 Month (12)
    1/0/2 Day (29)

    I need to create one GA with a complete date, like 2018-12-29. It could be a EIS 4 date, or it could be a 14-byte text. Doesn't matter that much - but I'm totally unable to find a way to combine them.

    I tried using IntToString (together with "Compile texts"), and that works - except that if I reboot the HS, the IntToString will not read the GA 1/0/0 - it will wait for an update. Which will come sooner or later, but it could be weeks without that GA changing. Thus my date will stay empty untill then...

    Hope someone understands my problem, and again - sorry for writing English. You are welcome to answer in German, if that helps. I can read it quite good, but will not offend anyone with my writing...

    #2
    have you enabled query during restart on those objects?

    Kommentar


      #3
      Thank you for your reply

      Yes, it is enabled. For test, I have added these three individual GA's in QuadClient. After a HS boot the three individual values show, but my "calculated" one does not show up untill the values are updated (they come from a KNX-modbus adapter)...

      Kommentar


        #4
        Post the logic you have built for this.

        Kommentar


          #5
          Ok, here it is. This works when the values 15/7/102, 103 and 104 is updated/changed. But after a reboot, it's empty.

          logic.png

          I did track it down to the IntToString module. After that, I read the module's help, where it says "Recalculation during start: No" - which I guess explains it.

          So I'm looking for another way to do this... The values comes from my ventilation unit, and it's the date of the latest alarm. In a perfect world the only alarm I would get is the filter-change reminder every year. In real life I get four-five alarms during the year. So it's not a good solution for me if it's only working after the values are updated...

          Kommentar


            #6
            Set a „OR Gatter“ at your logig site. The input on E1 is IKO „Systemstart“. In the Output Box set the action „Read GA from bus“. So you can read all 3 Values after start.

            Kommentar


              #7
              you can try to use http://service.knx-user-forum.de/?co...nload&id=13424

              With EN1 YY EN2 MM EN3 DD
              EN6 '20{1:02.0f}-{2:02.0f}-{3:02.0f}'.format(*EN)
              EN11 1
              Nils

              aktuelle Bausteine:
              BusAufsicht - ServiceCheck - Pushover - HS-Insight

              Kommentar


                #8
                Simplest Way: Make your IKO Dato remanent

                Kommentar


                  #9
                  Plenty of answers by now - one more: I have issues like you described in multiple places, so I force certain reads shortly after start-up. For that I use the system start KO Vento66 referred to. I then use one of those start-up internal KOs to query certain communication objects for the sole purpose of loading the logic modules (which then recalculate). See attachment.
                  Bram
                  Angehängte Dateien

                  Kommentar


                    #10
                    Thank you for the reply, vento66 - what you write makes sense. I'm not 100% sure about the translation of modules and actions, so I might have done it wrong (hopefully, because it's not working...)

                    I put the logic module "Binary trigger" - with the IKO "System" as input E1. as output I used action "Scan EIB" (which was the only thing I found that could be "Read GA from bus"). But this made no difference...

                    Kommentar


                      #11
                      Wow, so many answers! Thank you! Especially bramlangen seems helpful. Will try some more and post back!

                      Kommentar


                        #12
                        Use the query command in the output box. See attachment.
                        Angehängte Dateien

                        Kommentar


                          #13
                          Thank you very much, bramlangen !! That works! And thanks to everyone else for giving tips and advices! Been struggling with this for a while, and was not aware that I could do like that.

                          Thanks!

                          Kommentar

                          Lädt...
                          X