M_ClearWarning
This method deletes a warning from the Admin-Tags. Warning[].Trigger is set to FALSE. The method returns TRUE if the warning was deleted successfully. The warning remains in the Warning array until it is pushed out of the array by the next warning.
So that a valid timestamp can be entered, the function block PML_AdminTime should be called cyclically in the program. |
Syntax
METHOD M_ClearWarning : BOOL
VAR_IN_OUT
stAdmin : ST_PMLa;
END_VAR
VAR_INPUT
stWarning : ST_Alarm;
END_VAR
Sample call:
WarningCleared := fbAdminAlarm.M_ClearWarning(stAdmin := PackTags.Admin, stWarning := Warning);
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v3.1 Build 4018 and higher | PC (i386) | Tc3_PackML_V2 |