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
The several timestamps of the alarm
liTimestapActive
liTimestapInactive
liTimestapAcknowledge
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
The current state of the alarm
ePrevState
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
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:
Structure: