Skip to content
BETAThe lab is free and in beta. Found something wrong?

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.

45 minFoundationNot started

Goal

Count boxes past a photo-eye, stop the conveyor when a batch is complete and reset for the next batch.

What you do

  1. Read the client brief and the tag table: 6 tags, 4 inputs and 2 outputs.
  2. Write the logic in ladder, Structured Text or SFC.
  3. Download it, press RUN and watch the plant answer your program.
  4. 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.

23 levels

Levels in the PLC lab

Program a working machine in ladder, Structured Text or SFC and watch it run.

Wire the PLC

Levels 1 to 4
  1. Start Power the PLC
  2. Start Wire the PLC inputs
  3. Start Wire the PLC outputs
  4. Start Program and prove it

Foundation

Levels 5 to 9
  1. Start Motor start/stop with overload
  2. Start Forward/reverse conveyor
  3. Start Star-delta fan starter
  4. Start Batch counter on a packing line
  5. Start Tank filling pump

Intermediate

Levels 10 to 23
  1. Start Pedestrian crossing
  2. Start Parcel sorter
  3. Start Duty and standby pumps
  4. Start Scale the tank level
  5. Start Conveyor jam detection
  6. Start Reusable motor block: four motors
  7. Start Filling sequence
  8. Start Packaging line drive
  9. Start Safety gate interlock
  10. Start Air handling unit temperature control
  11. Start Palletiser sequence
  12. Start Batch mixer with recipes
  13. Start Bottling line: fill, cap, reject
  14. Start Fault-finding challenge

All 23 PLC programming exercises on one page: what each one teaches and how the marking works.

Part of the PLC lab

Program a working machine in ladder, Structured Text or SFC and watch it run.

Feeds these internships (training, not employment): PLC Programming.

About the PLC lab

Ready for Batch counter on a packing line?

Free, in your browser, with nothing to install.