4 - 12 4 - 12
MELSEC-Q
4 SETUP AND PROCEDURES BEFORE OPERATION
(a) When switching the mode using the dedicated i nstruction (G.OFFGAN)The following program switches to the offset/gai n setting mode with thededicated instruction (G.OFFGAN), changes t he channel where offset/gainsetting will be made, writes the offset/gain val ues to the A/D convertermodule, and then switches to the normal mode .
Switches to offset/gain setting mode
Specifies channel where offset/gain setting will be made
Specifies channel where offset setting will be made
Specifies channel where gain setting will be made
Changes channel where offset/gain setting will be made
Registers offset/gain setting results to module
Switches to normal mode
Processing in normal mode

The program in the dotted area is a common program.

Stores setting of dedicated
instruction (G.OFFGAN) into D1.
Stores channel where offset/
gain setting will be made into D0.
Specifies offset setting channel.
Sets 0 to buffer memory
address 23.
Specifies gain setting channel.
Sets 0 to buffer memory
address 22.
Turns ON channel change
request (YB).
Turns OFF channel change
request (YB).
Turns ON user range change
request (YA).
Turns OFF user range change
request (YA).
Stores setting of dedicated
instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
Dedicated instruction (G.OFFGAN)