For a teacher with a class? The classroom edition has the full plan, slides and standards.

Homeschooling PDF

Family edition

PLC Lab: Timers on the Line, On-Delay and Pulse Timers on a Conveyor

Ages 15-18 ยท about 45 minutes, in one sitting

In PLC Lab your teen programs a pretend factory conveyor to wait: each box stops under a label machine for 3 seconds, and a horn warns everyone before the belt starts. Nothing in the app drives real hardware.

What you need

Before you start: try it once yourself

Open mytekdev.com/try/plclab?lesson=timers-on-the-line&ref=fam-plclab-2. A short guide opens over Job 2, Stop at the Eye, on the Build it tab. A labeler stands over the belt, and a photoeye shines across it where a box should stop.

  1. The wiring list. Start, Stop and Motor as in Job 1, plus Eye at %IX0.2: a through-beam photoeye, ON while the beam is clear, OFF when a box blocks it.
  2. The starting program. Two rungs: Job 1's seal-in on a bit called Running, and Running to Motor. Run the shift: six boxes ride past the labeler and none is labeled.
  3. Job 2's answer. A rung with a normally closed Eye to a Timer named Hold, 3000 ms; in the Motor rung, after Running, a branch of normally open Eye or normally open Hold.DN. The hint box gives these one at a time.
  4. The preset. The labeler needs the box still for about 2.7 seconds. At 2650 ms or less every label smears; from 2700 ms up the shift passes. Fix the line on Job 2 is the same program with the preset at 300 ms.
  5. Job 7. Pick The Signal Tower. Its panel has only Start and Stop. The starting program runs the belt with no warning. The answer: a Pulse timer (under More) named Warn, 3000 ms, on Running; a normally closed Warn.Q in the Motor rung; Warn.Q to Horn; and a flasher of two 500 ms timers for the amber light. The crew starts, stops and restarts the line, so there are two warnings to pass.
In the wiring list, Field is the wire at the PLC's terminal right now, and Image is the PLC's own copy, taken at the start of each scan. Image only changes while the line is on. A timer's accumulated time shows on the ladder while the line is on.

The ideas, in plain words

Most children first meet sensors that are ON when they see something. A through-beam photoeye sees its own beam, so it is ON while nothing is in the way, the "light-on" setting. The app's wiring list says which way each eye is set up, and on Build it Eye can be switched to dark-on, which flips it. Reading that line before writing a rung is the habit to build.

An on-delay timer's time resets when its rung goes false, which is why the Job 2 timer goes on a normally closed Eye: it times only while a box is in the way, and starts fresh for the next box. The belt starts again on the done bit, Hold.DN, while the box still blocks the eye.

Texas's PLC II course lists TON, TOF and TP together, and a flasher made from two timers, as recommended activities. Allen-Bradley Micro800 has a TP instruction; MicroLogix and ControlLogix do not, and do the same job with a TON whose done bit is read normally closed. The app's More menu has all three IEC timers and a retentive timer.

On a real line the warning time is set by each plant; 3 to 5 seconds is common. Job 7 uses 3.

Do it together

  1. Open mytekdev.com/try/plclab?lesson=timers-on-the-line&ref=fam-plclab-2 together, press Turn the line on, then press Start. Watch Eye in the wiring list as a box reaches the labeler.

    You'll know it worked when: Your teen sees the Eye lamp go OFF while the box blocks the beam.

  2. Follow the hints on the right to stop the belt on Eye, and add a Timer named Hold with a preset of 3000 ms.

    If you get stuck: Show me how gives the exact moves.

    You'll know it worked when: A box stops under the labeler and waits.

  3. Put Hold.DN in a branch around the Eye contact, then press Run the shift.

    You'll know it worked when: Six boxes, every label clean.

  4. Change the preset to 2000 ms and run the shift again.

    You'll know it worked when: Every label smears: the labeler needs about 3 seconds.

  5. Pick Job 7, The Signal Tower. Add a Pulse timer (under More) named Warn, 3000 ms, and follow the hints to sound the horn before the belt moves.

    You'll know it worked when: The horn sounds for 3 seconds, then the belt starts.

  6. Talk it over: why a pulse timer for the horn, and not the timer from Job 2?

    You'll know it worked when: Your teen explains that a pulse lasts its full time from one press, however long Start is held.

Talk about it

Ask these while you work together. A child who has understood it can answer them without help:

The third question is the one that matters. A child who points at Hold.DN on the branch understands the done bit as a signal other rungs can read.

For younger and older kids

Younger: For a younger teen, finish Job 2 and try a few presets to find where the labels start to smear.

Older: For an older teen, build Job 7's flashing amber light: two timers that restart each other.

Keep going

Bring it into other subjects

For your records

Ready to copy into an hour log, a portfolio or a transcript.

LessonPLC Lab: Timers on the Line, On-Delay and Pulse Timers on a Conveyor
SubjectsCareer and technical education, Engineering
Time45 minutes
What we didProgrammed a simulated conveyor with an on-delay timer to hold each box at a labeler, read a through-beam photoeye, and used a pulse timer for a start-up warning horn.
Skills practicedPLC timers; Sensors; Testing a design

PLC Lab: Timers on the Line, On-Delay and Pulse Timers on a Conveyor

Activity sheet (optional)

Name: ______________________________ Date: ______________

Open the app: scan the QR code, or go to mytekdev.com/try/plclab?lesson=timers-on-the-line

Essential question: How does a PLC make a machine wait, and how does it know what to wait for?

Warm-up: A machine that waits a set time: ________________ What goes wrong if the wait is too short? ________________

  1. Vocabulary. Through-beam photoeye, on-delay timer, preset, done bit, pulse timer, off-delay timer: write each in your own words.
  2. The eye. While a box blocks the beam, Eye is ______. While the beam is clear, Eye is ______.
  3. Job 2. My timer's name and preset: ________________ The contact that lets the box go: ________________ With a preset of 2000 ms, the labels ________________.
  4. Timers. Fill in: TON is done ______________________. TP is ON ______________________. TOF stays done ______________________.
  5. Job 7. The timer I used for the horn: ______ Its preset: ______ Did the shift pass? ______ If not, the result said: ________________

1. Why does the Job 2 timer rung use a normally closed Eye contact, not a normally open one?

2. Name one place on a real line, or at home, for each kind of timer: TON, TP, TOF.

Quick check

Name: ______________________________

1. A through-beam photoeye's input while a box blocks the beam is: (A) ON (B) OFF (C) it depends on the box's color

2. An on-delay timer with a 3000 ms preset. Its rung is true for 2 seconds, then false. Its done bit: (A) turns on at 3 seconds anyway (B) never turns on, and the time resets (C) turns on at 2 seconds

3. A horn must sound for exactly 3 seconds each time Start is pressed, however long Start is held. Which timer, and why?

Answers

QuestionAnswerWhy
1BThe receiver sees the beam while nothing is in the way, so the input is ON when clear and OFF when blocked.
2BAn on-delay timer resets when its rung goes false before the preset is reached.
3Open answerA pulse timer (TP): its bit is ON for the preset from the moment the rung turns on, whatever the rung does next. A TON on Start would last only while Start is held.

If your state or umbrella school asks, this lesson covers Texas Programmable Logic Controller II (innovative course N1303690) (2)(A), Texas Programmable Logic Controller II (innovative course N1303690) (2)(B), Texas Programmable Logic Controller II (innovative course N1303690) Recommended activity, Texas Programmable Logic Controller II (innovative course N1303690) Recommended activity, Texas Programmable Logic Controller I (innovative course N1303689) (3)(F), Massachusetts Robotics and Automation Engineering Technology, July 2025 Standard 9, PMMI Mechatronics: Programmable Logic Controllers 1 PLC 1 competency, SACA C-207 Programmable Controller Systems 1 C-207 key skills, CSTA 2017 3A-AP-16.