Mitsubishi MELSEC-L series Programming Manual page 260

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

ZP_ERRCLR
[ST]
IF((Var_Flag_Inst=TRUE) AND (Var_Flag_Exe=FALSE))THEN
END_IF;
IF(Var_Flag_Exe=TRUE)THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
5-214
5.4.20 ERRCLR instruction
MOVP(TRUE,H1,Var_ControlData[2]);
MOVP(TRUE,H0,Var_ControlData[3]);
SET(TRUE,Var_Flag_Exe);
ZP_ERRCLR(TRUE,"U0",Var_ControlData,Var_Result);
IF(Var_Result[1]=FALSE)THEN
MOVP(TRUE,K0,Var_ErrorCode);
END_IF;
IF(Var_Result[1]=TRUE)THEN
MOVP(TRUE,Var_ControlData[1],Var_ErrorCode);(* Stores error code *)
END_IF;
RST(TRUE,Var_Flag_Exe);
(* Sets clear target *)
(* Sets clear function *)
(* Turns execution flag ON *)
(* Clears error information *)
(* Execution finished *)
(* Normal completion *)
(* Clears error code to 0 *)
(* Error completion *)
(* Turns execution flag OFF *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents