ON Delay
This function block delays the activation of a boolean signal. When the input signal switches from False to True, the block waits for a configured amount of time before allowing the output to go True. If the input returns to False before the delay elapses, the output remains False.
π₯ Inputs (sockets)
InputProvide a boolean signal to be delayed.
π€ Outputs (sockets)
OutputDelayed boolean signal. Becomes True only after the configured delay following an input rising edge.
πΉοΈ Controls (widgets)
Delay TimeText field where you enter the delay duration in seconds. Enter numeric seconds (for example 5 for a five second delay).
βοΈ Running mechanism
The block monitors the provided
Inputsignal.On a rising edge (when
Inputchanges from False to True), the block starts a timer for the number of seconds specified inDelay Time.While the timer is running the
Outputremains False.If the timer completes and the
Inputis still True, theOutputbecomes True.If the
Inputreturns to False before the timer completes, the timer is cancelled and theOutputstays False.Subsequent rising edges restart the delay process.
β¨ Features
Simple configurable delay for rising signals without additional scripting.
Safe cancellation of the delay when the input falls back to False.
Works with any boolean-producing blocks or signals in the system.
π Usage instructions
Connect a boolean source to the
Inputsocket (for example a manualLogic Inputor an event-producing block).Set
Delay Timeto the number of seconds you want to wait after an input becomes True.Use the
Outputas the delayed control signal for downstream blocks (for example to drive aLed Outputor start a process).
π‘ Tips and Tricks
Pair with
OFF Delaywhen you need controlled delay behavior for both rising and falling edges (ON Delay for rise, OFF Delay for fall).Use
Rising Edgeif you need to convert a sustained True input into a single delayed pulse or to detect the exact moment a transition occurs before starting other logic.For manual testing connect a
Logic Inputblock to theInputsocket so you can toggle and observe behavior interactively.Connect the
OutputtoLed Outputto visualize the delayed signal during tuning.Combine with
Counterto increment only after the delayed output becomes True, avoiding counts from short glitches.Use logical blocks such as
AndorOrto gate the delayed output with other conditions before driving final actuators or logging.
π οΈ Troubleshooting
If the output never becomes True after a rising input, verify
Delay Timecontains a valid numeric value and that the input remains True for at least that duration.If the output becomes True too early, increase
Delay Timeto match the desired hold period.If brief input spikes should be ignored, consider combining a short
Delay Stepor a pre-filtering logic so only sustained rises start the delay.
Last updated
Was this helpful?