Level 8 of 23 · PLC lab
Batch counter on a packing line
Level 8 of 23 in the PLC lab: a free PLC exercise at Foundation level, which takes about 45 minutes. Count boxes past a photo-eye once each, stop at the batch size, and survive a backed-up line. It is a conveyor box counter PLC program, which you write yourself and test on a simulated plant.
Goal
Count boxes past a photo-eye, stop the conveyor when a batch is complete and reset for the next batch.
What you do
- Read the client brief and the tag table: 6 tags, 4 inputs and 2 outputs.
- Write the logic in ladder, Structured Text or SFC.
- Download it, press RUN and watch the plant answer your program.
- Run the factory acceptance test and fix what fails.
Done when
The factory acceptance test runs 5 numbered tests against your program. The numbers in the brief are drawn per learner.
- Start and Stop run the conveyor
- Stops after exactly 8 boxes and lights Batch done
- A box that stops in the beam counts once
- Stopping part way keeps the count
- Start is locked out until Reset, and Reset starts a fresh batch
Skills
- CTU counters
- Rising-edge detection
- Counter reset
- Seal-in circuits
Before you start
Level 7, Star-delta fan starter, comes first. Do it first if the ideas are new to you.
Free, in your browser, nothing to install. Your work is saved on this device. Updated 4 Dec 2026.