FB_MsgGarbageCollect_TcTvA()

This function block checks whether the alarm history (array of type ST_TcTvA_Alarm_Itf) contains empty cells and moves subsequent messages up.
Syntax
VAR_INPUT
IdxFirst : INT;
IdxLast : INT;
sync_idx : INT:=0;
pAlarmBuffer: POINTER TO ST_TcTvA_Alarm_Itf;
END_VAR
VAR_OUTPUT
signaled : BOOL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
IdxFirst | INT | The first index in the alarm buffer. |
IdxLast | INT | The last index in the alarm buffer. |
sync_idx | INT | Reserved; with 0 the array is automatically searched for spaces. |
pAlarmBuffer | POINTER TO ST_TcTvA_Alarm_Itf | The address of the alarm buffer with the type ST_TcTvA_Alarm_Itf. |
Outputs
Name | Type | Description |
---|---|---|
signaled | BOOL | Signals whether a message is present. |