FB_MsgDeactivate_TcTvA()

FB_MsgDeactivate_TcTvA() 1:

This function block disables an inactive message in the alarm history (type: ST_TcTvA_Alarm_Itf). The message is not deleted from the alarm history.

Syntax

VAR_INPUT
Idx1        : INT:=0;
Idx2        : INT:=0;
ErrorId     : DINT:=0;
Prio        : INT:=0;

IdxFirst    : INT;
IdxLast     : INT;
pAlarmBuffer: POINTER TO ST_TcTvA_Alarm_Itf;
END_VAR

FB_MsgDeactivate_TcTvA() 2: Inputs

Name

Type

Description

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.

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.

Behavior of the function block:

Each FB_MsgAppend_TcTvA() function block also includes a FB_MsgDeactivate_TcTvA() that resets the message. To ensure that exactly the right message is reset, the deactivation must be called with the same properties (Idx1, Idx2, ErrorID, Prio) as the activation.

After a successful deactivation ST_TcTvA_Alarm_Itf.active:=FALSE. The variable ST_TcTvA_Alarm_Itf.Bitmap depends on ST_TcTvA_Alarm_Itf.Prio and whether ST_TcTvA_Alarm_Itf.active:=TRUE or FALSE.