Complete the code to set the alarm when the sensor is triggered.
IF sensor_triggered THEN alarm [1] TRUE;Complete the code to latch the alarm output when triggered.
alarm_latched := alarm_latched [1] alarm;Fix the error in the reset condition to clear the latched alarm.
IF reset_button [1] TRUE THEN alarm_latched := FALSE;Fill both blanks to complete the alarm latching logic with reset.
IF sensor_triggered THEN alarm := TRUE; ELSE IF reset_button [1] TRUE THEN alarm_latched := FALSE; END_IF; alarm_latched := alarm_latched [2] sensor_triggered;
Fill all three blanks to implement a complete alarm system with latching and reset.
IF sensor_triggered [1] TRUE THEN alarm := TRUE; ELSIF reset_button [2] TRUE THEN alarm_latched := FALSE; END_IF; alarm_latched := alarm_latched [3] sensor_triggered;
