ZP_CSET
(2) Program to cancel the programmable controller CPU monitoring
The following program cancels the programmable controller CPU monitoring of the CH1 side
interface.
(For the Q series C24 whose I/O signals are X/Y00 to X/Y1F)
[Structured ladder]
[ST]
PLS(X25, Var_Flag_Inst);
IF((Var_Flag_Inst=TRUE) & (Var_Flag_Normal=TRUE))THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
5.2 Serial Communication and Modem Interface Instruction
5-96
5.2.11 CSET instruction (programmable controller CPU monitor)
MOV(TRUE, 0, Var_ControlData[0]);
MOV(TRUE, 3, 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
SET(TRUE, Var_Flag_Error);
END_IF;
(* Instruction pulse *)
(* Sets execution type *)
(* Sets request type *)
(* Cancels programmable controller CPU monitoring *)
(* Execution finished *)
(* Normal completion *)
(* Turns normal completion flag ON *)
(* Error completion *)
(* Turns error completion flag ON *)
Instruction pulse
Sets execution type
Sets request type
Cancels programmable
controller CPU
monitoring
Turns normal completion
flag ON
Turns error completion
flag ON