User`s manual

4 - 12 4 - 12
MELSEC-Q
4 SETUP AND PROCEDURES BEFORE OPERATION
(a) When switching the mode using the dedicated instruction (G.OFFGAN)
The following sample program switches to the offset/gain setting mode with
the dedicated instruction (G.OFFGAN), changes the channel where
offset/gain setting will be made, adjusts the offset/gain values, and writes the
offset/gain values to the Q62DA-FG.
1
Switches to offset/gain setting mode
Switch to the channel where offset/gain settings will be performed
Set the amount of each change within the range from –3000 to 3000 during adjustment
Adjust the analog output value
Register the result of offset/gain settings in the module
Switches to normal mode
1 The program in the dotted area is a common program.
Stores setting of dedicated
instruction (G.OFFGAN) into D2.
Stores channel where offset/
gain setting will be made into D0.
Specifies offset setting channel.
Sets 0 to buffer memory
address 23.
Dedicated instruction (G.OFFGAN)
Sets 0 to buffer memory
address 22.
Specifies gain setting channel.
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 D2.
Dedicated instruction (G.OFFGAN)
Turn OFF Set value change
request (YC).
Set offset value adjustment to D1.
Set D1 to buffer memory
address 24.
Turn ON Set value change
request (YC).
Offset/gain range setting.
Processing in normal mode