App. - 5 App. - 5
MELSEC-Q
APPENDIX
(3) Program example
The following program is designed to switc h the A/D converter module 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 norm al 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)