Ankündigung

Einklappen
Keine Ankündigung bisher.

Value going down below threshold logic

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

    HS/FS Value going down below threshold logic

    I'm trying to create a logic module that will trigger a "1" on an output whenever a value drops below a certain threshold comming from a higher value.

    So lets say my threshold is 18. I have a value of 20 and go down to 17, that would trigger the "1". but when the value is 15 and goes to 19 nothing should happen.
    So far after looking at how the logic modules work and the articles on how the formula's work i have gotten this far:

    Code:
    5012|0|"EC[1]"|"EN[1]"|"1"|0|0|1|0
    5012|0|"EC[1] and SA[1] > EN[1] and EN[2] > EN[1]"|"1"|""|1|0|0|0
    The first line will so far as i understand check for a changing input value then it will write the value of input 1 (EN[1]) to memory 1 with a 1 second delay
    The second line will check for changing input AND changed memory AND check if input 2 is bigger then input 1 (input 1 being the variable, input 2 the threshold) it will then write an "1" to output 1

    This works each time i test it. But the output will stay at "1" this way.
    I tried adding the following:

    Code:
    5012|0|"AC[1]|"0"|"1"|1|0|0|0
    In my mind this should translate to: on change of output write a "0" with a 1 second delay to output 1
    Thing is when i add this the module never gives a "1" on the output.

    What am i doing wrong?

    #2
    You are wrong! there is no time delay.. Have a look at this: http://service.knx-user-forum.de/?co...load&id=100008

    Kommentar


      #3
      Code:
      5012|0|"EC[1] AND (EN[1] > EN[2])"|"1"|""|0|0|1|0
      
      5012|0|"EC[1] AND (EN[1] < EN[2])"|"1"|""|0|0|2|0
      
      5012|0|"SN[1] AND SN[2]"|"1"|"1"|1|1|0|0
      
      5012|0|"OC[1]"|"0>1"|""|1|0|0|0
      
      5012|0|"OC[1]"|"0"|""|0|0|1|0
      5012|0|"OC[1]"|"0"|""|0|0|2|0
      My german isnt that good so i had to translate quite some things
      But looking at that document the zeit i thought was a delay is the timer for a temporary memory?

      Following that logic this should work? With Input 1 being the changing value and input 2 the threshold.
      First i check if input 1 is greater then input 2, if so i write a "1" to memory 1
      Then if input 1 is smaller then input 2 i write a "1" to memory 2

      I then AND gate memory 1 and 2, if thats TRUE then i write a "1" into output and the temp memory 1 for 1 sec

      When the temp memory time laps i write a "0" to input 1, memory 1 and memory 2 thus reseting the output and the memory's

      I'm thinking i will get the same reply You are wrong!

      Kommentar

      Lädt...
      X