4 - 11 4 - 11
MELSEC-Q
4 SETUP AND PROCEDURES BEFORE OPERATION
1 The mode switching (normal mode to offset/ga in setting mode to normal mode)
method is given below.
• Dedicated instruction (G.OFFGAN) ............. Refer to Section 4.6 (2), (a)
• Setting made to mode switching setting (buf fer memory addresses 158, 159:
Un\G158, Un\G159) and turning the operation condition setting requ est (Y9) from
OFF to ON ..................................................... Refer to Section 4.6 (2), (b)
• Intelligent function module switch setting ..... Refer to Sectio n 4.5, Section 4.6 (2), (c)
(After intelligent function module switch sett ing, reset the PLC CPU or switch power
OFF, then ON.)
POINT
(1) Perform the offset/gain settings in the rang e 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 spe ci fi cation .
(2) Perform the offset/gain settings separatel y 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/gain settings are completed, verify that the offset and gain
values have been set correctly under actual usage conditions.
(4) The offset and gain values are stored into the E2PROM and are not erased at
power-off.
(5) At the time of offset/gain setting, turn ON the user range write request (YA) to
write the values to the E2PROM.
Data can be written to the E2PROM up to 100 thousand times.
To prevent accidental write to the E2PROM, an error will occur and the error
code (buffer memory address 19: Un\G19) will be stored if write is per formed
26 consecutive times.
(6) If an error (error code: 40 1) occurs during offset/gain setting, re-set the
correct offset/gain value.
The offset/gain value of the channel where the er ror has occurred is not written
to the A/D converter module. ( 1: indicates the corresponding channel
number.)
(7) Module Ready (X0) turns from OFF to ON when t he offset/gain setting mode
switches to the normal mode by the dedicated instruction (G.OFFGAN) or the
setting of the mode switching setting (buff er memory addresses 158, 159:
Un\G158, Un\G159).
Note that initial setting processing will be executed if there is a sequence
program that makes initial setting when Module Ready (X0) turns ON.
(8) Buffer memory addresses 200 (Un\G200), 202 to 233 (Un\ G202 t o Un \G 23 3 )
are the areas used to restore the user range sett ings offset/gain values when
online module change is made.
Refer to chapter 7 for details of online module c hange.
(2) Program examples
The program in the dotted area of (a) is comm on to (a), (b) and (c).
In this example, the I/O signals for the A/D co nverter module are X/Y0 to X/YF.
• Channel selection ............................................................................... M0
• Offset setting ...................................................................................... M1
• Gain setting ............................................. ........................................... M2
• Channel change command ................................ ................................ M3
• Offset/gain setting value write command to th e module .................... M4
• Mode switching........................................... ......................................... M5
• Channel designation storage device................................................... D0
• Dedicated instruction (G.OFFGAN) setting s torage device.............. D1