User`s manual

App - 6 App - 6
MELSEC-Q
APPENDIX
(1) Function
Switches the mode of the D/A converter module.
• Normal mode to offset/gain setting mode (the offset/gain setting mode status
flag (XA) turns ON)
• Offset/gain setting mode to normal mode (the offset/gain setting mode status
flag (XA) turns OFF)
POINT
(1) When the offset/gain setting mode is switched to the normal mode, Module
Ready (X0) turns from OFF to ON.
Note that initial setting processing will be executed if there is a sequence
program that makes initial setting when Module Ready (X0) turns ON.
(2) D/A conversion is discontinued if the mode is switched (from the normal mode
to the offset/gain setting mode or from the offset/gain setting mode to the
normal mode).
To resume D/A conversion, switch to the normal mode and then turn ON
Operating condition setting request (Y9).
(2) Operation error
No errors.
(3) Program example
The following program is designed to switch the D/A 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 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)