Conveyor ladder logic with a TON dwell timer
A conveyor should not report ready the instant it is told to run. This example starts the belt, waits on a 5-second on-delay timer, and lights the ready lamp only if the belt ran for all five seconds.

The program
XIC(RunRequest)XIO(EStop)OTE(Conveyor); XIC(Conveyor)TON(DwellTimer,5000,0); XIC(DwellTimer.DN)OTE(ReadyLamp); XIO(Conveyor)OTE(StoppedLamp);
How it works
Rung 0 runs the belt: Conveyor is on while RunRequest is on and EStop is not. There is no seal-in on this rung, so RunRequest has to stay on for the belt to keep running.
Rung 1 is the dwell. TON(DwellTimer,5000,0) is an on-delay timer with a preset of 5000 ms and an accumulator that starts at 0. While Conveyor is on, the timer's EN bit is set and ACC counts up in milliseconds. When ACC reaches the preset, DN sets.
If Conveyor drops before the five seconds are up, a TON resets: ACC goes back to 0 and the dwell starts over the next time the belt runs. So the lamp means five unbroken seconds of running, not five seconds in total.
Rung 2 lights ReadyLamp from DwellTimer.DN. Rung 3 lights StoppedLamp whenever Conveyor is off.
Try this
In the simulator, an input changes when you click it in the tag list: click once to turn it on and again to turn it off. To press a button, turn it on; to release it, turn it off; to pulse it, do both.
- Turn RunRequest on and watch DwellTimer.ACC climb to 5000 before ReadyLamp lights.
- Turn RunRequest off at about 3000 ms, then on again. The accumulator starts again from 0.
- Turn EStop on while the belt runs. Conveyor, the timer and ReadyLamp all drop together, and StoppedLamp lights.
Tags
| TAG | ROLE |
|---|---|
| RunRequest | BOOL input. Asks for the belt to run. |
| EStop | BOOL input. 1 when the emergency stop is tripped. |
| Conveyor | BOOL output. Belt motor. |
| DwellTimer | TIMER. On-delay, preset 5000 ms. |
| ReadyLamp | BOOL output. Lit once the belt has run for 5 seconds. |
| StoppedLamp | BOOL output. Lit while the belt is off. |
More examples
Motor start/stop
Ladder (NT)A latching start/stop station. Click Start once and the seal-in branch holds the motor on through its own contact until Stop breaks the rung.
Pump station (L5X)
L5X importAn L5X program export with lead/lag pumps, program-scope tags and a JSR'd alarm routine.
Read more about the ladder logic simulator, or see all examples.