59
CHAPTER 7 VARIOUS SETTINGS
7
7.5 Offset/Gain Setting
7.5.2 Setting from a program
(b) Switching the mode by the dedicated instruction (G(P).OFFGAN)
This program performs the followings:
• first, switches the mode to the offset/gain setting mode by the dedicated instruction (G(P).OFFGAN),
• second, switches the channels for which the offset/gain settings is configured,
• third, writes the offset/gain value to the A/D converter module,
• finally, switches the mode back to the normal modes.
The program enclosed by the doted line is the common programs among the following three programs.
• Switching the mode by the dedicated instruction (G(P).OFFGAN)
• Switching the mode by setting Mode switching setting (Un\G158, Un\G159) and by Operating condition setting
request (Y9)
• Switching the mode by the intelligent function module switch setting
Stores the setting data of the
dedicated instruction
(G.OFFGAN) in D1.
Dedicated instruction
(G.OFFGAN)
Stores the target channel
number in D0.
Specifies the offset target
channel.
Specifies the gain target
channel.
Turns on Channel change
request (Y3B).
Turns off Channel change
request (Y3B).
Turns on User range write
request (Y3A).
Turns off User range write
request (Y3A).
Stores the setting data of the
dedicated instruction
(G.OFFGAN) in D1.
Dedicated instruction
(G.OFFGAN)
Sets "0" for the offset target
channel.
Sets "0" for the gain target
channel.
Switches to the offset/gain setting mode.
Processing in normal mode
Switches to the normal mode.
Registers the result of offset/gain setting to the module.
Switches the channel to offset/gain setting.
Sets a channel to the gain setting.
Sets a channel to the offset setting.
Sets a channel after offset/gain setting.