Pro
15 min

Lesson 11 — Conveyor Reject

curriculumlessonmixedconveyorcounter
Lesson 11 — Conveyor Reject scenario preview

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Briefing

Bring it all together: a conveyor with a photoelectric sensor, a counter, and a reject gate. Parts pass the PHOTO_EYE sensor. Every 5th part is rejected by the REJECT_GATE. The CONV_RUN motor runs while ENABLE is true. This lesson combines Lessons 1-10.

Objectives

  • CONV_RUN follows ENABLE (seal-in not required here)
  • Each PHOTO_EYE rising edge increments the count
  • REJECT_GATE activates on every 5th part (when CTU.CV mod 5 === 0)

Hints

  • Run the conveyor: | ENABLE | := CONV_RUN ;
  • Count parts with CTU(CU := PHOTO_EYE, R := REJECT_GATE, PV := 5);

I/O Table

Inputs

ENABLE

Conveyor enable

BOOL · %I0.0

PHOTO_EYE

Part detected sensor

BOOL · %I0.1

Outputs

CONV_RUN

Conveyor motor run

BOOL · %Q0.0

REJECT_GATE

Reject gate solenoid

BOOL · %Q0.1

Your program will be tested against:

All test cases run automatically when you submit. Assertions are hidden until you pass.

  1. #1CONV_RUN follows ENABLE

    Conveyor must run when enable is on

  2. #25th part triggers REJECT_GATE

    5 photoelectric pulses should activate the reject gate

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in