Pro
5 min
CCST 08 — Simple PLC Program Structure
ccstladdercombinationalbasic
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_ASwitch A
BOOL · %I0.0
SWITCH_BSwitch B
BOOL · %I0.1
Outputs
LIGHT_ALight A
BOOL · %Q0.0
LIGHT_BLight B
BOOL · %Q0.1
LIGHT_CLight 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.
- #1Only A on
Only A on
- #2Both on — all lights
Both on — all lights
Related scenarios
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