Pro
8 min
CCST 32 — Alarm State Propagation to HMI
ccstHMIalarmsSCADAcount
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_AFault A
BOOL · %I0.0
FAULT_BFault B
BOOL · %I0.1
FAULT_CFault C
BOOL · %I0.2
Outputs
HMI_ALARM_ANYAny alarm active
BOOL · %Q0.0
ALARM_COUNTActive alarm count
INT · %QW0
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1Zero count with no faults
Zero count with no faults
- #2Count 1 with one fault
Count 1 with one fault
- #3Count 3 with all faults
Count 3 with all faults
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