Pro
8 min

CCST 32 — Alarm State Propagation to HMI

ccstHMIalarmsSCADAcount
CCST 32 — Alarm State Propagation to HMI 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 field alarms (FAULT_A, FAULT_B, FAULT_C) should set a single HMI_ALARM_ANY bit (OR of all). A separate ALARM_COUNT INT should track how many are active.

Objectives

  • HMI_ALARM_ANY := FAULT_A OR FAULT_B OR FAULT_C
  • ALARM_COUNT := count of TRUE faults (0-3)

Hints

  • ALARM_COUNT := BOOL_TO_INT(FAULT_A) + BOOL_TO_INT(FAULT_B) + BOOL_TO_INT(FAULT_C)

I/O Table

Inputs

FAULT_A

Fault A

BOOL · %I0.0

FAULT_B

Fault B

BOOL · %I0.1

FAULT_C

Fault C

BOOL · %I0.2

Outputs

HMI_ALARM_ANY

Any alarm active

BOOL · %Q0.0

ALARM_COUNT

Active alarm count

INT · %QW0

Your program will be tested against:

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

  1. #1Zero count with no faults

    Zero count with no faults

  2. #2Count 1 with one fault

    Count 1 with one fault

  3. #3Count 3 with all faults

    Count 3 with all faults

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