Skip to content
Ladder (NT)Runs without an account · Updated

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.

Run it
The conveyor example running in PLCflow Sim. The belt is on and the dwell timer is part-way to 5000 ms, so the ready lamp is still off.
Conveyor with dwell, running in the PLCflow Sim workspace.

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.

  1. Turn RunRequest on and watch DwellTimer.ACC climb to 5000 before ReadyLamp lights.
  2. Turn RunRequest off at about 3000 ms, then on again. The accumulator starts again from 0.
  3. Turn EStop on while the belt runs. Conveyor, the timer and ReadyLamp all drop together, and StoppedLamp lights.
Run it

Tags

TAGROLE
RunRequestBOOL input. Asks for the belt to run.
EStopBOOL input. 1 when the emergency stop is tripped.
ConveyorBOOL output. Belt motor.
DwellTimerTIMER. On-delay, preset 5000 ms.
ReadyLampBOOL output. Lit once the belt has run for 5 seconds.
StoppedLampBOOL 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.

StartStopMotor

Pump station (L5X)

L5X import

An L5X program export with lead/lag pumps, program-scope tags and a JSR'd alarm routine.

TankLevelLeadPumpLagPump

Read more about the ladder logic simulator, or see all examples.