FB_MsgClearSignal_TcTvA()

This function block disables the boolean expression ST_TcTvA_Alarm_Itf.Signal.
Syntax
VAR_INPUT
IdxFirst: INT;
IdxLast: INT;
pAlarmBuffer: POINTER TO ST_TcTvA_Alarm_Itf;
Idx1 : INT:=0;
Idx2 : INT:=0;
ErrorId: DINT:=0;
Prio : INT:=0;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
IdxFirst | INT | The first index in the alarm buffer. |
IdxLast | INT | The last index in the alarm buffer. |
pAlarmBuffer | POINTER TO ST_TcTvA_Alarm_Itf | The address of the alarm buffer with the type ST_TcTvA_Alarm_Itf. |
Idx1 | INT | Zone number of the faulty zone. |
Idx2 | INT | Module number of the faulty zone. |
ErrorId | DINT | The error number |
Prio | INT | The priority of the error, where 3=Alarm 2=Warning 1=Note 0=Empty. |
Behavior of the function block:
If an alarm with prio:=3 is present in the alarm buffer, this alarm additionally sets the signal ST_TcTvA_Alarm_Itf.Signal:=TRUE. This can be used to control a horn, for example. By calling this function block all ST_TcTvA_Alarm_Itf.Signal:=FALSE, which turns off the message.