Pro
10 min
CCST 34 — Acknowledge and Clear Alarms
ccstHMIalarmacknowledgeclear
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
HMI operators can acknowledge (silence) and then clear alarms. Implement two-step: first ACK silences the ALARM_HORN; then CLEAR removes the ALARM_LAMP (only after the fault clears).
Objectives
- ALARM_HORN := ALARM and NOT ACK_BIT
- ALARM_LAMP := ALARM
- ACK_BIT sets on HMI_ACK; resets when ALARM clears AND HMI_CLEAR pressed
Hints
- ACK_BIT latches on HMI_ACK, resets when ALARM=FALSE and HMI_CLEAR=TRUE
- ALARM_HORN := ALARM AND NOT ACK_BIT
I/O Table
Inputs
ALARMAlarm condition
BOOL · %I0.0
HMI_ACKHMI Acknowledge
BOOL · %I0.1
HMI_CLEARHMI Clear (after fault gone)
BOOL · %I0.2
Outputs
ALARM_HORNAlarm horn
BOOL · %Q0.0
ALARM_LAMPAlarm lamp
BOOL · %Q0.1
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1Horn sounds on alarm
Horn sounds on alarm
- #2ACK silences horn
ACK silences horn
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