21 A/D CONVERSION INSTRUCTIONS
21.1 Switching the Mode
1725
21
■
Applicable devices
*1 FD cannot be used.
Processing details
These instructions switch the mode of an analog module.
• Normal mode (Normal output mode)
Offset/gain setting mode (The offset/gain setting mode status flag (XA) turns on.)
• Offset/gain setting mode
Normal mode (Normal output mode) (The offset/gain setting mode status flag (XA) turns off.)
• When the mode shifts from normal or normal output to offset/gain setting, Module Ready (X0) changes on to
off.
• When the mode shifts from offset/gain setting to normal or normal output, Module Ready (X0) changes off to
on. If a program exists that performs initial setting with Module Ready (X0) on, note that initial setting
processing will be executed.
• When the mode shifts from offset/gain setting to normal on the A/D converter module and temperature input
module, it automatically resumes the operation with the previous operating conditions.
• When the D/A converter module shifts from the offset/gain setting mode to the normal mode (normal output
mode), all channels enter in the D/A conversion disabled state. To resume D/A conversion, set "0" (D/A
conversion enabled) in "CH
D/A conversion enabled/disabled setting" of the appropriate channel before
turning on and off Operating condition setting request (Y9).
■
Program example
The following figure shows an example of a program which uses the G(P).OFFGAN instruction with the R60AD4.
• Program content
• Label setting
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
(U)
X, Y, M, L,
SM, F, B, SB,
FX, FY
J
\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U
\G
, J
\
,
U3E
\(H)G
Z
LT,
LST,
LC
LZ
K, H
E
$
(U)
(s)
Description
When "Mode Shift Request" (M10) is turned on, the A/D converter module mounted at the position of I/O numbers X/Y10 to X/Y1F shifts to the offset/gain
setting mode.
When "Mode Shift Request" (M10) is turned off, the module returns to the normal mode.
Classification
Label name
Description
Device
Module label
R60AD_1.bOffsetGainSettingModeFlag
Offset/gain setting mode status flag
X1A
Label to be defined
Define the global label as shown below.
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......