The On-Delay Timer
Part of the Timers section of Coddy's PLC Programming journey. Lesson 1 of 18.
Machines wait all the time: a fan starts a few seconds after a heater, a lamp lights only after a switch has been on for a while. A timer does the waiting.
The on-delay timer, TON, is a box on the rung. Power into it is its input, IN. When IN turns on, the timer starts counting. After the preset time, PT, its output Q turns on and passes power to the right.
Each timer box has its own name, here T1. A time is written like T#3s (3 seconds) or T#500ms (half a second).
If IN turns off, the timer starts over: Q turns off at once, and the next time IN turns on it counts from zero again.
Challenge
EasyMake Amber light 3 seconds after SW1 is turned on:
- add a
TONbox after theSW1contact, namedT1, with PTT#3s - put the
Ambercoil after the box
Press Run, turn SW1 on and off, then Check.
Try it yourself
{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[]}]}All lessons in Timers
4Project: Pedestrian Crossing
Green Until PressedAmber Before RedRed and WalkClear the CrossingThe Wait LampNight ModePractice on your own: PLC playground