03-28-2023 12:22 PM
03-28-2023 12:41 PM - edited 03-28-2023 12:42 PM
Hi,
you can use the Functin Block "DL_WriteNode" out of the "CXA_Datalayer" Library.
Call the FB with " DL_WriteNode.NodeName:= 'diagnosis/confirm/all-errors', " and set the "DL_WriteNode.Execute" on TRUE when you want to reset the Errormessages on the Core. Set the Execute on False with "DL_WriteNode.Done" or "DL_WriteNode.Error".
Short Example out of my Code:
VAR
fbPLC_Reset :DL_WriteNode;
END_Var
fbPLC_Reset(
Execute:= ,
Done=> ,
Active=> ,
Error=> ,
ErrorID=> ,
ErrorIdent=> ,
ClientId:= ,
NodeName:= 'diagnosis/confirm/all-errors', // "global clear error" Funktion in ctrlX Datalayer
Value:= );
IF GVL_IO.E15_reset OR GVL_HMI.bReset THEN
fbPLC_Reset.Execute:=TRUE;
ELSIF fbPLC_Reset.Done OR fbPLC_Reset.Error THEN
fbPLC_Reset.Execute:=FALSE;
END_IF
03-28-2023 03:28 PM
Please have a look to this topic for the usage of library CXAC_Diagnostics. from version 1.20 there will be another function for clearing and resetting all errors in one step.