211
APPENDICES
A
Appendix 5 Dedicated Instruction
Appendix 5.2 G(P).OFFGAN
(4) Program example
The following shows the program of the A/D converter module, installed in I/O number X/Y10 to X/Y1F, with the
following conditions:
• turning ON M10 switches the operation mode to the offset/gain setting mode, and
• turning OFF M10 restores the operation mode to the normal mode.
Stores the setting data of the dedicated
instruction (G.OFFGAN) in D1.
Dedicated instruction (G.OFFGAN)
Processing in offset/gain setting mode
Stores the setting data of the dedicated
instruction (G.OFFGAN) in D1.
Dedicated instruction (G.OFFGAN)
Processing in normal mode
Switches to the normal mode.
Switches to the offset/gain setting mode.