4 - 16 4 - 16
MELSEC-Q
4 SETUP AND PROCEDURES BEFORE OPERATION
(2) Program examples
The program in the dotted area of (a) is common to (a), (b) and (c).
In this example, the I/O signals for the Q62AD-DGH 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 the module .........................M4
• Mode switching .........................................................................................M5
• Offset/gain change command ..................................................................M6
• Normal mode checking signal ..................................................................M50
• Channel designation storage device........................................................D0
• Dedicated instruction (G.OFFGAN) setting storage device ....................D1
(a) When switching the mode using the dedicated instruction (G.OFFGAN)
The following program switches to the offset/gain setting mode with the
dedicated instruction (G.OFFGAN), changes the channel where offset/gain
setting will be made, writes the offset/gain values to the Q62AD-DGH, and
then switches to the normal mode.
1
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
1 The program in the dotted area is a common program.
Processing in normal mode
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)
Changes offset/gain values
Turns ON offset/gain
change request (YC).
Turns OFF offset/gain
change request (YC).
Summary of Contents for GX Configurator-AD
Page 2: ......
Page 23: ...2 6 2 6 MELSEC Q 2 SYSTEM CONFIGURATION MEMO ...
Page 120: ...5 31 5 31 MELSEC Q 5 UTILITY PACKAGE GX Configurator AD MEMO ...
Page 145: ...6 25 6 25 MELSEC Q 6 PROGRAMMING MEMO ...
Page 207: ......