Timers

Drift-Resistant Flasher

hard

Keeps one-second ON and OFF phases aligned without accumulating scan-cycle delays.

What it teaches

If Flasher is built by restarting a timer each half-cycle, two copies on different PLCs slowly walk out of step — each restart discards the gap between the timer passing preset and the logic noticing. Harmless on one indicator lamp, wrong wherever a cycle must stay aligned with the clock or other equipment. The fix: never restart. One elapsed-time timer, phase derived from the total, error bounded at one scan instead of growing.

Inputs and outputs

TagTypeDefaultDescription
In_EnableBOOLEnable signal
Out_FlashBOOLDrift-resistant flashing output

Required behavior