User`s manual

App - 3 App - 3
MELSEC-Q
APPENDIX
(3) Program example
The following program is designed to switch the Q62DA-FG mounted in the
position of I/O number X/Y0 to X/YF to the offset/gain setting mode when M10 is
turned ON, and to return it to the normal mode when M10 is turned OFF.
Switches to offset/gain setting mode
Switches to normal mode
Performs processing for offset/gain setting
Performs processing for normal mode
Stores setting of dedicated
instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
Stores setting of dedicated
instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)