Skip to content

The lab is in beta. Found something wrong?Beta · Found something wrong?

PLC lab · Level 4 of 8

Batch counter on a packing line

Level 4 of 8 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.

Start this level

Free · no download · about 45 minutes. Your work is saved on this device. Updated 18 Oct 2026.

3D view of the Batch counter on a packing line level in the PLC lab
Batch counter on a packing line

The brief

Client
Greenvale Foods
Site
Case conveyor CV-12
Work order
GF-2604
Industry
Food and drink
Task code
PLC-04
Difficulty
Foundation
Type of work
Programming

Count boxes past a photo-eye, stop the conveyor when a batch is complete and reset for the next batch, counting each box once however long it blocks the eye.

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. Press Simulate and watch the plant answer your program.
  4. Run the factory acceptance test and fix what fails.

Skills you practise

  • CTU counters
  • Rising-edge detection
  • Counter reset
  • Seal-in circuits

What the test checks

The factory acceptance test runs 5 numbered tests against your program. The numbers in the brief are drawn per learner. The tests are:

  • 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

In this lab

  • Ladder, Structured Text and SFC in one studio
  • A plant that answers: motors, tanks, conveyors
  • Numbered tests mark your program

Levels in the PLC lab

Previous: Star-delta fan starterNext: Tank filling pump

  1. Motor start/stop with overload
  2. Forward/reverse conveyor
  3. Star-delta fan starter
  4. Batch counter on a packing line
  5. Tank filling pump
  6. Pedestrian crossing
  7. Parcel sorter
  8. Duty and standby pumps

Part of the PLC lab

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

About the PLC lab

Feeds these internships: PLC Programming.