Mitsubishi MELSEC-L series Programming Manual page 124

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

Advertisement

ZP_CSET
[ST]
IF(X20=TRUE)THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
IF(X21=TRUE)THEN
END_IF;
5.2 Serial Communication and Modem Interface Instruction
5-78
5.2.7 CSET instruction (receive data clear)
MOVP(TRUE, 0, Var_ControlData[0]);
MOVP(TRUE, 4, Var_ControlData[2]);
ZP_CSET(TRUE, "00", 1, Var_ControlData, Var_Dummy, Var_Result);
IF(Var_Result[1]=FALSE)THEN
SET(TRUE, Var_Flag_Normal);
ELSE
MOV(TRUE, Var_ControlData[1], Var_ErrorCode);
SET(TRUE, Var_Flag_Error);
END_IF;
RST(TRUE, Var_Flag_Normal);
RST(TRUE, Var_Flag_Error);
(* Clears execution type to 0 *)
(* Sets request type *)
(* Clears data *)
(* Execution finished *)
(* Normal completion *)
(* Turns normal completion flag ON *)
(* Error completion *)
(* Stores error code *)
(* Turns error completion flag ON *)
(* Turns normal completion flag OFF *)
(* Turns error completion flag OFF *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents