The On/Off Delay node applies separate delays to the activation and deactivation of a logic signal.
When the Input connector changes from 0 to 1, the node waits for the configured ON delay before sending 1 to the Output connector.
When Input changes from 1 to 0, the node waits for the configured OFF delay before sending 0 to Output.
This node can be used, for example, to:
| Connector | Direction | Data type | Description |
|---|---|---|---|
| Input | Input | 1 bit | Logic signal to which the ON and OFF delays are applied. |
| Reset | Input | 1 bit | When it receives the value 1, it stops the current timing operation and immediately forces Output to 0. |
| Output | Output | 1 bit | Provides the input value after the configured delay has been applied. |
The Reset connector takes effect when its value is 1. Normal operation can resume when the value returns to 0.
| Property | Description |
|---|---|
| Factor for ON delay | Defines the factor used for the delay applied when Input changes from 0 to 1. |
| Factor for OFF delay | Defines the factor used for the delay applied when Input changes from 1 to 0. |
| Gate | When enabled, adds the Gate connector, which can be used to enable or disable node processing. |
| Await all inputs | When set to True, the node waits until all connected inputs have received at least one value before starting the calculation. |
For the general operation of the Gate connector, refer to Gate connector.
When Input receives a rising edge, therefore changing from 0 to 1:
When Input receives a falling edge, therefore changing from 1 to 0:
When Reset is set to 1:
Behavior of the On/Off Delay node
Assume the following delays are configured:
The node operates as follows:
| Event | State during the delay | Result |
|---|---|---|
| Input changes from 0 to 1 | Output remains at 0 for 5 seconds. | After 5 seconds, Output changes to 1. |
| Input changes from 1 to 0 | Output remains at 1 for 10 seconds. | After 10 seconds, Output changes to 0. |
| Reset changes to 1 | Any timing operation in progress is stopped. | Output immediately changes to 0. |
One possible application is the delayed control of a fan:
To verify the operation of the node using Offline Simulation:
During Offline Simulation, input values must be set manually. The simulation does not communicate with the KNX bus or with the real system objects.