1724
21 A/D CONVERSION INSTRUCTIONS
21.1 Switching the Mode
21 A/D CONVERSION INSTRUCTIONS
This chapter describes the instructions used commonly by MELSEC iQ-R series modules. When using
MELSEC-Q series modules, refer to the manual for each module used and create programs.
For precautions when using modules, refer to the following.
MELSEC iQ-R Module Configuration Manual
21.1 Switching the Mode
G(P).OFFGAN
These instructions switch the analog module mode.
■Execution condition
■Description, range, data type
*1 The mode name differs depending on the module used: normal output mode for the R60DA4, R60DAV8, R60DAI8, and R60DAH4 and
normal mode for other analog modules.
Ladder ST
ENO:=G_OFFGAN(EN,U,s);
ENO:=GP_OFFGAN(EN,U,s);
FBD/LD
Instruction Execution condition
G.OFFGAN
GP.OFFGAN
Operand Description Range Data type Data type (label)
(U) Start I/O number (first three digits in four-digit hexadecimal
representation) of a module
00H to FEH • 16-bit unsigned
binary
• 16-bit signed binary
ANY16
(s) Switching the mode
• 0: Shift to normal mode (normal output mode)
*1
• 1: Shift to offset/gain setting mode
Setting a value outside the above range results in "Shift to
offset/gain setting mode".
0, 1 • 16-bit unsigned
binary
• 16-bit signed binary
ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)