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