AlarmStorageRow (FB)

FUNCTION_BLOCK AlarmStorageRow

This function block contains the data, that will be written into the alarm storage.

InOut:

Scope

Name

Type

Initial

Comment

Input

udiAlarmID

UDINT

The internal IDs of the alarm, the alarm class and the alarm group

udiAlarmClassID

UDINT

udiAlarmGroupID

UDINT

liTimestapLast

TIMESTAMP

The several timestamps of the alarm

liTimestapActive

TIMESTAMP

liTimestapInactive

TIMESTAMP

liTimestapAcknowledge

TIMESTAMP

iOffsetLast

INT

-1

The several offsets of the alarm

iOffsetActive

INT

-1

iOffsetInactive

INT

-1

iOffsetAcknowledge

INT

-1

usiPriority

USINT

The priority of the alarm class the alarm belongs to

eState

AlarmState

The current state of the alarm

ePrevState

AlarmState

The previous state of the alarm

byTriggerValueType

BYTE

The several values attached to the alarm. For each value we store the type class value as BYTE and an 8 byte value representing the value.

liTriggerValueVal

LINT

pLatchVariables

POINTER TO ARRAY [0..10] OF LatchVariable

Will be set by the code generation and contains the memory, where the latch variables can be stored (the size 0..10 is only for debug reasons)

usiCountLatchVariables

USINT

itfAlarm

IAlarm

The IAlarm instance, where the data of this structure comes from

idRow

CAA.IDENT

The row ID of the alarm in the alarm storage, or the original row id for remote alarm

xIdRowValid

BOOL

sRemoteDeviceName

STRING

If the above row id is valid, used only in distributed alarm handling The name of the remote device in case of remote alarm

Methods:

GetLatchVarValue

SetLatchVarValue

Structure: