Comfort Automation/ Security System Forums

Full Version: KNX Push button trigger sequance response
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i had a request from a client to make one channel of KNX universal module triggering 6 sequence lighting mode, i need to share it with whom interest or who have a previous experience with that type of operation. first i made the channel properties of knx module to send \"1\" value only then connect it to a counter at configrator, then i wrote the following response using counter70 for sequence operation:

Increment Counter0070
If Counter Counter0070 = 1 Then
    Do HosamMode1
Else
    If Counter Counter0070 = 2 Then
        Do HosamMode2
    Else
        If Counter Counter0070 = 3 Then
            Do HosamMode3
        Else
            If Counter Counter0070 = 4 Then
                Do HosamMode4
            Else
                If Counter Counter0070 = 5 Then
                    Do HosamAllON
                Else
                    If Counter Counter0070 = 6 Then
                        Do HosamAllOFF
                        Set Counter0070 = 0
                    End If
                End If
            End If
        End If
    End If
End If

appreciate your contribution Smile thanx
This response works, right?

You mean that every time you press the KNX button either On or Off, the mode will change?
Is the mode change also in KNX lights
first thanx for fast reply Smile that was quick
yes the switch on send ON value
and the lighting modes is a combination between cytech and KNX

ASCII art.
we download the program but it works only on sending (0) value from the  universal kNX module (US/2) and doesn\'t works at all when it send (1) - ON value -to the counter, after all it  works , but dose any one has an explanation for that ?
thx
The counter70 value of 1 does not work?
Check the counter 70 using the command
C?46 command gives a reply to tell what the value is
46 is hexadecimal for 70
eg
C?4602 means the counter 70 is value 2

This checks if the counter value is what you expect