Function Block - Alarm with manual reset
IN : BOOL
Process signal
ACK : BOOL Acknowledge
command
RST : BOOL Reset
command
Q :
BOOL TRUE if alarm is
active
QACK :
BOOL TRUE if alarm is
acknoledged
Combine this block with the LIM_ALRM block for managing analog alarms.
(* MyALARM is declared as an instance of
ALARM_M function block *)
MyALARM (IN, ACK, RST);
Q := MyALARM.Q;
QACK := MyALARM.QACK;
(* MyALARM is declared as an instance of
ALARM_M function block *)
Op1: CAL MyALARM (IN, ACK, RST)
LD MyALARM.Q
ST Q
LD MyALARM.QACK
ST QACK