Pro
8 min

CCST 37 — Interpreting an I/O List

ccstdocumentationI/O-listreading
CCST 37 — Interpreting an I/O List 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

Using only the I/O list below, implement the described control: "Activate PUMP_A when TANK_LEVEL < 40% (LOW_LEVEL_SWITCH) and PUMP_SELECTOR = 1. Activate PUMP_B when LOW_LEVEL_SWITCH and PUMP_SELECTOR = 2."

Objectives

  • PUMP_A := LOW_LEVEL_SWITCH AND (PUMP_SELECTOR = 1)
  • PUMP_B := LOW_LEVEL_SWITCH AND (PUMP_SELECTOR = 2)

Hints

  • PUMP_SELECTOR is an INT tag
  • Use separate output rungs

I/O Table

Inputs

LOW_LEVEL_SWITCH

Tank below 40%

BOOL · %I0.0

PUMP_SELECTOR

Pump selector (1 or 2)

INT · %IW0

Outputs

PUMP_A

Pump A output

BOOL · %Q0.0

PUMP_B

Pump B output

BOOL · %Q0.1

Your program will be tested against:

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

  1. #1Pump A on selector 1

    Pump A on selector 1

  2. #2Pump B on selector 2

    Pump B on selector 2

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