Block
Code switch KNX| Block function block for the
control element Block Code switch KNX; the control element must
be connected with this function block. See
Block Presence and Presence
General. With this function block a KNX switch can be used as a code keypad. For this, each rocker is interpreted as a number. The short-time object (short button press) serves as a number starting with 0; with the long-time object (long button press) you can switch between functions, and an individual code can be stored for each function. This means that, for example, with 4 buttons 4 functions with 4 PIN codes can be used, with 6 buttons 6 functions, etc. During commissioning a master PIN code is stored. In the app this code is used to assign a separate PIN code for each function. These must be assigned once during commissioning. In addition, there is the option of generating a one-time code. This code is valid either only once or for a specified time. Alternatively the function selection can be omitted: then all codes are checked and each code triggers its own output, e.g. one code for the owner and one for the cleaning staff. After several wrong entries, input can be locked for an adjustable time. |
Inputs |
||
| K0-9 | Short time 0-9 | The short-time addresses (short button press) are interpreted as numbers 0-9.
It always reacts to telegrams, i.e. either
1 or 0 telegrams from the button. Each button press may only send
one telegram. The controller does not acknowledge telegrams on the bus. If an address of the push button is not linked to any other device on the bus, the push button receives no acknowledgement and repeats its telegram up to three times. If the same button arrives several times within 0.3 seconds, it is therefore counted only once. To avoid repetitions, the addresses of the buttons should still be linked to a device on the bus in the ETS. |
| L0-9 | Long time 0-9 | The long-time addresses (long button press) are used for function switching. |
| FG | Enable | Optional enable. If the input is connected, the code switch is only active when the input is not equal to 0. |
| OE |
One-time code external |
Optional input for an external one-time code. If this input is connected, no one-time code is generated; instead the one from this input is used and output at the output. This can for example be used when several code switches are to use the same one-time code (e.g. entrance and room). |
| OT | One-time code trigger | With a positive edge at this input a new one-time code is generated. |
| OZ |
One-time code time |
Time the one-time code is valid. After the time has elapsed the one-time code is set to 0 and thus deactivated. |
| OF |
One-time code time factor |
A time factor can be specified here
for the time the one-time code should be valid.
|
Outputs |
||
| L0-0 |
LED
0-9 |
Addresses for controlling the LEDs on the buttons. On a long button press the respective LED is driven. This way a separate password can be stored for each button. If the wrong code is entered, all LEDs flash for 5 seconds. |
| C0-0 |
Code
correct 0-9 |
Depending on the LED or function control, the corresponding output is driven on correct entry of the code. This way separate outputs / functions can be driven for each button. |
| OC |
One-time code |
Current one-time code. If the output is not equal to 0, this is also accepted in addition to the stored ones. |
| OZ |
One-time code time |
Time the one-time code is still valid. After the time has elapsed the one-time code is set to 0 and thus deactivated. |
| GS | Locked | Is 1 while input at the keypad is locked after too many wrong attempts, e.g. for an LED on the keypad. |
Parameters |
||
| Create switch addresses |
Optionally, internal addresses can be created and connected with this parameter. This only makes sense for tests; normally the addresses come from the KNX switch. | |
| Number of buttons | Number of buttons. Please note that with a number of 4 buttons the numbers 0-3 are available, with 8 0-7, etc. | |
| Code length | Length of the code. Please note that with a number of 4 buttons the numbers 0-3 are available, with 8 0-7, etc. | |
| Reset PIN | With this code the codes can be reassigned via the app. When the element is newly created, a random code is generated. To change the code, the control element must be connected with the function block; the code can then be changed via the app. | |
| Type code correct | Output control on entry of the correct code. | |
| Function selection | Long press button: a long button press selects the function,
the code entered applies to this function (previous behaviour). None: all codes are checked, each code triggers its own output "Code correct". If several codes are to switch the same output, connect their outputs to the same address. In this case codes can only be assigned with the reset PIN, and each code may occur only once. A one-time code triggers the output "Code correct 0". |
|
| Wrong attempts until lock | After this many wrong codes in a row, input is locked for the lock time. The lock only applies where the wrong code was entered: wrong attempts at the keypad lock the keypad, wrong attempts in the visualization lock input there. Default is 0, i.e. no lock. | |
| Lock time | Duration of the lock in minutes. If this time passes without another wrong attempt, counting of wrong attempts starts again. | |