r/controlengineering • • 2d ago

Develop a ladder logic program to switch ON a lamp after a delay of 5 seconds and turning it off after 10 seconds using a timer instruction.

/r/mechatronics/comments/1yauspn/develop_a_ladder_logic_program_to_switch_on_a/
1 Upvotes

1 comment sorted by

1

u/Relevant_Throat_7277 16h ago

For that exact sequence I'd do it with two TONs and a seal-in bit, not one timer trying to do both delays.

START seals in a run bit, and the run bit starts the first timer, preset 5 s. When that timer is done it turns the lamp on and starts the second timer, preset 10 s. When the second timer is done it breaks the seal, so the lamp drops out and both timers reset, ready for the next START. In rungs, roughly:

Run  = START OR Run, AND NOT T2.DN
T1   = TON, Run, 5 s
Lamp = T1.DN AND NOT T2.DN
T2   = TON, T1.DN, 10 s

The part I always check first is what happens when the 10 s runs out. With a momentary START it just stops after one run. If your START is a maintained switch it will start the 5 s delay again, so add a STOP to break the seal if you want one shot only. And if you let T2.DN reset T1 directly without the seal in between, the lamp flickers instead of staying on for the full 10 s.

Try it in simulation first, toggle START and watch the lamp bit through the full 5 s plus 10 s, before downloading it to a PLC or wiring a real lamp. Don't use a timer sequence like this for a safety function.