Mitsubishi MELSEC-L series Programming Manual page 76

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

Advertisement

G_OGLOAD
Program Example
The following program reads out the offset/gain value of the A/D converter module mounted on
the I/O numbers from X/Y0 to X/YF.
*1: With the Q68ADV/Q68ADI, the pass data classification setting (control data
need to be set.
[Structured ladder]
[ST]
IF(LDP(TRUE,Var_Flag_Inst))THEN
END_IF;
IF(Var_Flag_Exe=TRUE)THEN
END_IF;
5.1 Analog Instruction
5-30
5.1.2 OGLOAD instruction
MOV(TRUE,0,Var_ControlData[2]); (* Specifies voltage *)
SET(TRUE, Var_Flag_Exe);
GP_OGLOAD(TRUE, H0, Var_ControlData, Var_Result); (* Performs readout *)
IF(Var_Result[0]=TRUE)THEN
IF(Var_Result[1]=FALSE)THEN
RST(TRUE, Var_Flag_Exe);
ELSE
(* Process on error completion *)
END_IF;
END_IF;
Not needed
for the Q68ADV/Q68ADI
Process on error completion
(* Instruction flag ON *)
Not needed for the Q68ADV/Q68ADI
(* Turns execution flag ON *)
(* Execution flag ON *)
(* Execution finished *)
(* Normal completion *)
(* Turns execution flag OFF *)
(* Error completion *)
[2]) does not
s
Specifies voltage
*1
when instruction
flag turns ON
Turns execution flag ON
Performs readout
Normal completion
Turns execution flag OFF
Error completion
*1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents