Long Click

This function block will give a pulse on one to four outputs depending on the length of the press on the input.

INTRODUCTION

When an input is pressed when connected to the Tr input on the long click block the duration of the press is measured. Depending on how long the pulse is, an adjustable pulse will occur on one of the digital outputs Q1 to Q4. The duration of the output pulse can be defined using the parameter T.

The analogue value that is output can also be changed using the parameters V1 to V4.

Four different scenarios can occur with this block depending on how long the input is pressed for:

Press Time Active Outputs
Pulse on input Tr is shorter or equal than parameter TiQ1 pulses on, V1 parameter is output at AQ
Pulse on input Tr is longer than parameter Ti and less or equal than 2x TiQ2 pulses on, V2 parameter is output at AQ
Pulse on input Tr is longer than 2x parameter Ti and less or equal than 3x TiQ3 pulses on, V3 parameter is output at AQ
Pulse on input Tr is longer than 3x parameter TiQ4 pulses on, V4 parameter is output at AQ

EXAMPLES

Output Q1 and Q2 sequentially active

The first press on input Tr is a pulse longer than parameter Ti but shorter than 2x Ti (a short press). Output Q2 is active with a pulse of parameter T duration. Also the value of parameter V2 is output at AQ. By default this is 2.

Then a quicker press happens on input Tr. Therefore output Q1 is active with a pulse of parameter T duration. The value of parameter V1 is also output at AQ. By default this is 1.

You could use the long click block to have multiple functions inbuilt into one switch for example a short press will raise the blinds by a small amount whereas a long press will raise them fully.

Example Diagram Of Long Click Loxone Config

Q4 output active

The press on input Tr is a pulse 3 times longer than parameter Ti. Output Q4 is active with a pulse of parameter T duration. Also the value of parameter V4 is output at AQ. By default this is 4.

Example Diagram Of Long Click Output Loxone Config

OVERVIEW

INPUTS

TrTriggerThe pulse length is measured on this input.
RResetSets all outputs to 0.

PARAMETERS

TiTime of input pressTime parameter that determines how long the press on Tr needs to be for the different outputs to be active (s).
TPulse duration Duration of the output pulse on the digital outputs Q1-Q4 (s).
V1Value output on AQValue for AQ when Tr press is shorter than or equal to Ti.
V2Value output on AQ Value for AQ when Tr press is longer than Ti but shorter or equal to 2x Ti.
V3Value output on AQValue for AQ when Tr press is longer than 2x Ti but shorter or equal to 3x Ti.
V4Value output on AQ Value for AQ when Tr press is longer than 3x.

OUTPUTS

Q1Digital outputPulses when Tr press is shorter than or equal to Ti.
Q2Digital outputPulses when Tr press is longer than Ti but shorter or equal to 2x Ti.
Q3Digital outputPulses when Tr press is longer than 2x Ti but shorter or equal to 3x Ti.
Q4Digital outputPulses when Tr press is longer than 3x.
AQDigital outputOutputs value of V1-V4 depending on the press duration on Tr.