Case Packer
Ready to build this?
Sign up free — no credit card required. This scenario requires the Basic plan.
Sign up to play this scenario →Already have an account? Log in
Briefing
A case packer accumulates products from a conveyor until the target count (12 per case) is reached, then a pusher loads them into an open case. Once the PACKING_COMPLETE_LS confirms the case is full, CASE_SEAL pulses to seal the case, the count resets, and the machine waits for the next case.
Objectives
- COUNT_SENSOR increments the product counter on each rising edge (while running)
- When count reaches 12 (target), DIVERTER activates to stop new products entering
- PUSHER activates when count is at target AND CASE_READY
- PACKING_COMPLETE_LS triggers CASE_SEAL pulse (500ms), then count resets
- READY_LAMP on while count < target and CASE_READY (ready to accept product)
- STOP_PB resets count and de-energises all outputs
Hints
- Use a rising-edge detect on COUNT_SENSOR to increment CTU
- COUNT_SENSOR.CV >= 12 sets DIVERTER and enables pusher
- CASE_SEAL is a TON-timed pulse (500ms) triggered by PACKING_COMPLETE_LS
- Reset CTU when CASE_SEAL finishes (new case)
I/O Table
Inputs
PRODUCT_DETECTEDProduct presence sensor
BOOL · %I0.0
COUNT_SENSORProduct count pulse sensor
BOOL · %I0.1
CASE_READYEmpty case in position
BOOL · %I0.2
PACKING_COMPLETE_LSLimit switch — pusher at full stroke
BOOL · %I0.3
START_PBStart push-button
BOOL · %I0.4
STOP_PBStop push-button
BOOL · %I0.5
Outputs
DIVERTERProduct diverter (stops new product)
BOOL · %Q0.0
PUSHERProduct pusher into case
BOOL · %Q0.1
CASE_SEALCase sealer (500ms pulse)
BOOL · %Q0.2
READY_LAMPReady to accept products indicator lamp
BOOL · %Q0.3
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1READY_LAMP on when running and case ready
START_PB + CASE_READY -> READY_LAMP
- #2COUNT_SENSOR pulses increment product count
Physics counts product pulses and pushes count state
- #3DIVERTER activates when count reaches target
12 count pulses -> DIVERTER on
- #4PACKING_COMPLETE_LS triggers case seal and count reset
After pushing, LS triggers seal, count resets
Related scenarios
Ready to build this?
Sign up free — no credit card required. This scenario requires the Basic plan.
Sign up to play this scenario →Already have an account? Log in