Logo Online Help www.anyviz.io

On/Off-Delay Timer

The On/Off Delay (TON/TOF) adopts the state of a boolean tag (true or false) with a time delay. It combines the two blocks known from the PLC world, on-delay timer (TON) and off-delay timer (TOF), in a single block.

Function parameters

Source Boolean tag whose state is adopted with a delay.
Switch on after Time the source must be continuously on before the output switches on. With 0, the output switches on immediately.
Switch off after Time the source must be continuously off before the output switches off. With 0, the output switches off immediately.

How it works

When the source switches on, the Switch on after time starts. Once it has elapsed and the source is still on, the output switches on. If the source switches off before that, the process is cancelled and the output remains off. The same applies to switching off with the Switch off after time.

Source Output Switch on after Switch off after too short: ignored

Depending on the settings, the following behavior results: