Mitsubishi MELSEC-L series Programming Manual page 105

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

Advertisement

Program Example
The following program restores the offset/gain setting value to the A/D converter module
mounted on the I/O numbers from X/Y10 to X/Y1F when the flag turns ON.
[Structured ladder]
[ST]
IF(LDP(TRUE,Var_Flag_Inst))THEN
SET(TRUE, Var_Flag_Exe);
END_IF;
IF(Var_Flag_Exe=TRUE)THEN
GP_OGSTOR(TRUE, H0, Var_ControlData, Var_Result);(* Restores setting value *)
IF(Var_Result[0]=TRUE)THEN
IF(Var_Result[1]=FALSE)THEN
ELSE
END_IF;
END_IF;
END_IF;
Process on error completion
RST(TRUE, Var_Flag_Exe);
(* Process on error completion *)
Turns execution
flag ON
Restores setting value
Normal completion
Turns execution
flag OFF
Error completion
(* Instruction flag ON *)
(* Turns execution flag ON *)
(* Execution flag ON *)
(* Execution finished *)
(* Normal completion *)
(* Turns execution flag OFF *)
(* Error completion *)
5.1 Analog Instruction
5.1.3 OGSTOR instruction
G_OGSTOR
5
5-59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents