User`s manual
4 - 13 4 - 13
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 D/A converter module are X/Y0 to X/YF.
• Channel selection
...................................................................................
M0
• Offset setting
...........................................................................................
M1
• Gain setting
.............................................................................................
M2
• Channel change command
.....................................................................
M3
• Writing the adjustment amount
...............................................................
M4
• Analog output value adjust command
....................................................
M5
• Offset/gain setting value write command to the module
........................
M6
• Mode switching
........................................................................................
M7
• Normal mode checking signal
..................................................................
M50
• Channel designation storage device
.......................................................
D0
• Dedicated instruction (G.OFFGAN) setting storage device
....................
D2
• Offset/gain adjustment storage device
....................................................
D1