cltrX CORE reset through PLC

Hello,

Is there any FB to reset the errors of the ctrlX CORE via PLC? 

 

Best reply by Maax

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

 

Fb Deklaration.PNG
2.63KB
PLC Reset.PNG
14.49KB
PLC Reset.PNG
14.49KB
View original
2 replies