Pro
5 min

CCST 08 — Simple PLC Program Structure

ccstladdercombinationalbasic
CCST 08 — Simple PLC Program Structure 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

Three independent rungs: LIGHT_A := SWITCH_A; LIGHT_B := SWITCH_B; LIGHT_C := SWITCH_A AND SWITCH_B. Demonstrates rung-by-rung evaluation.

Objectives

  • LIGHT_A follows SWITCH_A
  • LIGHT_B follows SWITCH_B
  • LIGHT_C is on only when both switches are on

Hints

  • Write three separate rungs, each with one output coil
  • Order does not matter for purely combinational logic

I/O Table

Inputs

SWITCH_A

Switch A

BOOL · %I0.0

SWITCH_B

Switch B

BOOL · %I0.1

Outputs

LIGHT_A

Light A

BOOL · %Q0.0

LIGHT_B

Light B

BOOL · %Q0.1

LIGHT_C

Light C (AND)

BOOL · %Q0.2

Your program will be tested against:

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

  1. #1Only A on

    Only A on

  2. #2Both on — all lights

    Both on — all lights

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