4 - 19                                                                                    4 - 19 
MELSEC-Q
4      SETUP AND PROCEDURES BEFORE OPERATION 
 
(2) Program examples 
The program in the dotted area of (a) is common to (a), (b) and (c). 
In this example, the I/O signals for the Q62AD-DGH are X/Y0 to X/YF. 
• Channel selection .....................................................................................M0 
• Offset setting .............................................................................................M1 
• Gain setting ...............................................................................................M2 
• Channel change command ......................................................................M3 
• Offset/gain setting value write command to the module .........................M4 
• Mode switching .........................................................................................M5 
• Offset/gain change command ..................................................................M6 
• Normal mode checking signal ..................................................................M50 
• Channel designation storage device ........................................................D0 
• Dedicated instruction (G(P).OFFGAN) setting storage device ...............D1 
(a)    When switching the mode using the dedicated instruction (G(P).OFFGAN) 
The following program switches to the offset/gain setting mode with the 
dedicated instruction (G(P).OFFGAN), changes the channel where 
offset/gain setting will be made, writes the offset/gain values to the Q62AD-
DGH, and then switches to the normal mode. 
 
*1:  The program in the dotted area is a common program.