Mitsubishi Electric Melsec Q Series User Manual page 71

Analog-digital converter module
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

4
SETUP AND PROCEDURES BEFORE OPERATION
Switches to offset/gain setting mode
Specifies channel where offset/gain setting will be made
*1
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.
4 - 12
(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 A/D converter 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 the module .................... M4
• Mode switching .................................................................................... M5
• Channel designation storage device ................................................... D0
• Dedicated instruction (G(P).OFFGAN) setting storage device ........... D1
(a)
When switching the mode using the dedicated instruction (G(P).OFFGAN)
The following program switches to the offset/gain setting mode with the
dedicated instruction (G(P).OFFGAN), changes the channel where
offset/gain setting will be made, writes the offset/gain values to the A/D
converter module, and then switches to the normal mode.
Processing in normal mode
MELSEC-Q
Stores setting of dedicated
instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
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 writing
request (YA).
Turns off User range writing
request (YA).
Stores setting of dedicated
instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
4 - 12

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Melsec q64adMelsec q68advMelsec q68adi

Table of Contents