4 - 12 4 - 12
MELSEC-Q
4 SETUP AND PROCEDURES BEFORE OPERATION
POINT
(1) Perform the offset/gain settings in the range that satisfies the conditions
specified in Section 3.1.2, (1) and (2).
When the setting exceeds this range, the maximum resolution or total
accuracy may not be within the range indicated in the performance
specification.
(2) Perform the offset/gain settings separately for each channel. If channels are
set in buffer memory addresses 22 (Un\G22) and 23 (Un\G23) at the same
time, an error will occur and the ERROR LED will be lit.
(3) After the offset and gain settings are completed, verify that the offset and gain
values have been set correctly under actual usage conditions.
(4) The offset/gain values are stored in the module, and will not be erased even
the power is shut off.
REMARK
This is a sample program for switching the channel where the offset/gain settings
are performed, adjusting the offset/gain values, and writing the offset/gain values to
the D/A conversion module. In this example, the I/O signals for the D/A conversion
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