Tarjetas Analógicas
Tarjetas Analógicas
Module
User's Manual
Mitsubishi Programmable
Q64AD
Logic Controller Q68ADV
Q68ADI
SW0D5C-QADU-E
• SAFETY PRECAUTIONS •
(Always read these instructions before using this equipment.)
Before using this product, please read this manual and the relevant manuals introduced in this manual
carefully and pay full attention to safety to handle the product correctly.
The instructions given in this manual are concerned with this product. For the safety instructions of the
programmable controller system, please read the CPU module user's manual.
In this manual, the safety instructions are ranked as "DANGER" and "CAUTION".
Note that the ! CAUTION level may lead to a serious consequence according to the circumstances.
Always follow the instructions of both levels because they are important to personal safety.
Please store this manual in a safe place and make it accessible when required. Always forward it to the
end user.
[DESIGN PRECAUTION]
! DANGER
• Do not write data into the "system area" of the buffer memory of intelligent function modules.
Also, do not use any "prohibited to use" signals as an output signal to an intelligent function
module from the PLC CPU.
Writing data into the "system area" or outputting a signal for "prohibited to use" may cause a
PLC system malfunction.
! CAUTION
• Do not bunch the control wires or communication cables with the main circuit or power wires, or
install them close to each other.
They should be installed 100mm(3.9inch) or more from each other.
Not doing so could result in noise that may cause malfunction.
A-1
[INSTALLATION PRECAUTIONS]
! CAUTION
• Use in an environment that meets the general specifications contained in the user's manual of
the CPU module.
Using this PLC in an environment outside the range of the general specifications may cause
electric shock, fire, malfunction, and damage to or deterioration of the product.
• When installing the module, securely insert the module fixing tabs into the mounting holes of the
base unit while pressing the installation lever located at the bottom of the module downward.
Improper installation may result in malfunction, breakdown or the module coming loose and
dropping.
Securely fix the module with screws if it is subject to vibration during use.
• Tighten the screws within the range of specified torque.
If the screws are loose, it may cause the module to fallout, short circuits, or malfunction.
If the screws are tightened too much, it may cause damage to the screw and/or the module,
resulting in fallout, short circuits or malfunction.
• Switch all phases of the external power supply off when mounting or removing the module.
Not doing so may cause damage to the module.
• Do not directly touch the conductive area or electronic components of the module.
Doing so may cause malfunction or failure in the module.
[WIRING PRECAUTIONS]
! CAUTION
• Always ground the FG terminal for the PLC.
There is a risk of electric shock or malfunction.
• When turning on the power and operating the module after wiring is completed, always attach
the terminal cover that comes with the product.
There is a risk of electric shock if the terminal cover is not attached.
• Tighten the terminal screws within the range of specified torque.
If the terminal screws are loose, it may result in short circuits or malfunction.
If the terminal screws are tightened too much, it may cause damage to the screw and/or the
module, resulting in short circuits or malfunction.
• Be careful not to let foreign matter such as sawdust or wire chips get inside the module.
They may cause fires, failure or malfunction.
• The top surface of the module is covered with protective film to prevent foreign objects such as
cable offcuts from entering the module when wiring.
Do not remove this film until the wiring is complete.
Before operating the system, be sure to remove the film to provide adequate ventilation.
A-2
[STARTING AND MAINTENANCE PRECAUTIONS]
! CAUTION
• Do not disassemble or modify the modules.
Doing so could cause failure, malfunction injury or fire.
• Switch all phases of the external power supply off when mounting or removing the module.
Not doing so may cause failure or malfunction of the module.
• Do not touch the connector while the power is on.
Doing so may cause malfunction.
• Switch all phases of the external power supply off when cleaning or retightening the terminal
screws and module installation screws.
Not doing so may cause failure or malfunction of the module.
If the screws are loose, it may cause the module to fallout, short circuits, or malfunction.
If the screws are tightened too much, it may cause damages to the screws and/or the module,
resulting in the module falling out, short circuits or malfunction.
[DISPOSAL PRECAUTIONS]
! CAUTION
• When disposing of this product, treat it as industrial waste.
A-3
REVISIONS
The manual number is given on the bottom left of the back cover.
Print Date Manual Number Revision
Dec., 1999 SH (NA) 080055-A First printing
A-4
INTRODUCTION
SAFETY PRECAUTIONS.................................................................................................................A- 1 to A- 3
REVISIONS ....................................................................................................................................................A- 4
CONTENTS.......................................................................................................................................A- 5 to A- 6
Conformation to the EMC Directive and Low Voltage Instruction ................................................................A- 7
About the Generic Terms and Abbreviations ................................................................................................A- 7
Product Structure ...........................................................................................................................................A- 8
1 OVERVIEW 1- 1 to 1- 2
2 SYSTEM CONFIGURATION 2- 1 to 2- 2
3 SPECIFICATIONS 3- 1 to 3-18
A-5
3.4.9 Offset/gain setting mode (buffer memory addresses 22 and 23: Un\G22 and Un\G23) ............... 3-17
3.4.10 Maximum and minimum values storage area
(buffer memory addresses 30 to 45: Un\G30 to Un\G45) ............................................................ 3-17
6 PROGRAMMING 6- 1 to 6- 6
7 TROUBLESHOOTING 7- 1 to 7- 4
A-6
Conformation to the EMC Directive and Low Voltage Instruction
For details on making Mitsubishi PLC conform to the EMC directive and low voltage
instruction when installing it in your product, please see Chapter 3, "EMC Directive and
Low Voltage Instruction" of the PLC CPU User's Manual (Hardware).
The CE logo is printed on the rating plate on the main body of the PLC that conforms
to the EMC directive and low voltage instruction.
Unless otherwise specified, this manual uses the following general terms and
abbreviations.
Microsoft Windows, Microsoft Windows NT, Microsoft Visual Basic and Microsoft Excel are registered
trademarks of Microsoft Corporation in the United States.
Other company and product names herein are either trademarks or registered trademarks of their respective
owners.
A-7
Product Structure
A-8
1 OVERVIEW
MELSEC-Q
1 OVERVIEW
1
This User's Manual describes the specifications, handling and programming methods
for the Q64AD analog-digital conversion module (hereinafter referred to as the
Q64AD), Q68ADV analog-digital conversion module (hereinafter referred to as the
Q68ADV), and Q68ADI analog-digital conversion module (hereinafter referred to as
the Q68ADI), which are used in conjunction with MELSEC-Q Series CPUs.
In this manual, the Q64AD, Q68ADV, and Q68ADI are collectively referred to as the
A/D conversion modules.
1.1 Features
1-1
1 OVERVIEW
MELSEC-Q
MEMO
1-2
2 SYSTEM CONFIGURATION
MELSEC-Q
2 SYSTEM CONFIGURATION
The A/D conversion modules can be used with the following systems.
2
(1) Applicable CPU modules
The module can be used with a CPU module that operates in Q mode.
Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU and Q25HCPU
2-1
2 SYSTEM CONFIGURATION
MELSEC-Q
MEMO
2-2
3 SPECIFICATIONS
MELSEC-Q
3 SPECIFICATIONS
Table 3.1 shows the performance specifications of the A/D conversion modules.
Ambient temperature
Accuracy ± 0.1 %
25 ± 5 °C
(Full scale
Ambient temperature With temperature drift compensation : ± 0.3 %
accuracy)
0 to 55 °C With no temperature drift compensation : ± 0.4 %
80 s/channel
Conversion speed (When there is temperature drift, the time calculated by adding 160 s will be used
regardless of the number of channels used)
Absolute maximum input Voltage : ± 15 V Current : ± 30 mA
Between the I/O terminal and PLC power supply : Photocoupler insulation
Insulation method
Between channels : Non-insulated
Number of occupied points 16 points
Connection terminals 18-point terminal block
2
Applicable wire size 0.3 to 0.75 mm
Applicable solderless terminal R1.25-3 (A solderless terminal with sleeve cannot be used)
Internal current consumption
0.63 A 0.64 A 0.64 A
(5 V DC)
Weight 0.18 kg 0.19 kg 0.19 kg
REMARK
See the user’s manual for the CPU module being used for general specifications of
the A/D conversion modules.
3-1
3 SPECIFICATIONS
MELSEC-Q
The I/O conversion characteristic represents the angle formed by a straight line
connecting the "offset value" and "gain value" when the analog signals (voltage or
current input) from outside the PLC are converted to digital values.
Offset value
The offset value denotes the analog input value (voltage or current) that makes the
digital output value 0.
Gain value
The gain value denotes the analog input value (voltage or current) that makes the
digital output value 4000.
3-2
3 SPECIFICATIONS
MELSEC-Q
3) 4)
2000
2)
Digital output value
1)
0
1
–96
–2000
–4000
–4096
–15 –10 –5 0 5 10 15
Analog input voltage (V)
POINT
(1) Do not input an analog input voltage of more than ± 15 V. The input elements
may be damaged.
(2) Set the offset/gain values for the user setting range 1 within a range in which
the following conditions are satisfied.
{ (Gain value) – (Offset value) } > 1.5 V
(3) When an analog value that exceeds the range for the digital output value 2 is
entered, the digital output value will be fixed at the maximum or minimum value.
• For 0 to 4000, the range for the digital output value is from –96 to 4095.
• For –4000 to 4000, the range for the digital output value is from –4096 to 4095.
3-3
3 SPECIFICATIONS
MELSEC-Q
4095
4000
1)
2000
2)
Digital output value
0
4
–96
–2000
–4000
–4096
–30 –20 –10 0 10 20 30
Analog input current (mA)
POINT
(1) Do not input an analog input current of more than ± 30 mA. A breakdown may
result due to overheating.
(2) Set the offset/gain values for the user setting range 1 within a range in which
the following conditions are satisfied.
{ (Gain value) – (Offset value) } > 5.5 mA
(3) When an analog value that exceeds the range of the digital output value 2 is
entered, the digital output value will be fixed at the maximum or minimum
value.
• For 0 to 4000, the range for the digital output value is from –96 to 4095.
3-4
3 SPECIFICATIONS
MELSEC-Q
3.1.3 Accuracy
4000
–4000
–10 V 0V 10 V
3-5
3 SPECIFICATIONS
MELSEC-Q
Table 3.2 shows the function list of the A/D conversion modules.
There are two A/D conversion methods, sampling processing and averaging processing.
3-6
3 SPECIFICATIONS
MELSEC-Q
(a) When averaging processing is specified for the set amount of time
(b) When the averaging processing is specified for the set number of times
The time required to store the average value calculated using the average
number of times in the buffer memory differs according to the number of
channels used (the number of channels set to A/D conversion enable) and
whether or not the temperature drift compensation is used.
3-7
3 SPECIFICATIONS
MELSEC-Q
(1) The maximum and minimum digital output values for each channel are stored in buffer
memory addresses 30 to 45 (Un\G30 to Un\G45).
(2) When the operating condition setting completed flag (X09) turns OFF, the values
are cleared to 0 and new maximum and minimum values are stored when
conversion begins.
(3) Since the area for storing the maximum and minimum values can be rewritten with
the sequence program, the maximum and minimum values within a specific period
of time can be checked.
Table 3.3 shows a list of the I/O signals for the A/D conversion modules.
POINT
1 These signals cannot be used by the user since they are for system use only.
If these are turned ON/OFF by the sequence program, the functioning of the
A/D conversion module cannot be guaranteed.
3-8
3 SPECIFICATIONS
MELSEC-Q
I/O signals for the A/D conversion modules are explained in detail below.
Operating condition
setting completed (X9)
Operating condition
change request (Y9)
A/D conversion
completed (XE)
(1) This is used as an interlock condition for setting the offset/gain request (YA) to
ON/OFF when registering the value after adjustment of the offset/gain settings have
been completed.
(2) See Section 4.6 regarding the offset/gain settings.
Offset/gain setting OFF
XA Module READY (X0)
mode flag
1 A watchdog timer error occurs when the program calculations are not completed
within the scheduled time due to malfunctions of A/D conversion module
hardware. When a watchdog timer error occurs, the RUN LED for the A/D
conversion module turns off.
3-9
3 SPECIFICATIONS
MELSEC-Q
A/D conversion (1) This turns ON when conversion for all of the channels that are conversion enabled
XE
completed flag has been completed.
(1) The error flag turns ON when a write error occurs.
(2) To clear the error code, set the error clear request (YF) to ON.
XF Error flag
3 - 10
3 SPECIFICATIONS
MELSEC-Q
3 - 11
3 SPECIFICATIONS
MELSEC-Q
The following explanation is based on the Q68ADV and Q68ADI with eight channel
analog input (CH1 to CH8).
6H 6 CH6 Average time/average number of times 1 R/W 1E H 30 CH1 Maximum value R/W
7H 7 CH7 Average time/average number of times 1 R/W 1F H 31 CH1 Minimum value R/W
8H 8 CH8 Average time/average number of times 1 R/W 20 H 32 CH2 Maximum value R/W
1 When Q64AD is used, buffer memory addresses for CH5 to CH8 become blank.
2 Indicates whether reading and writing to/from a sequence program are enabled.
R : Read enabled
W : Write enabled
3 - 12
3 SPECIFICATIONS
MELSEC-Q
(1) Sets whether the output of an A/D conversion value is enabled or disabled for
each channel.
(2) It is necessary to set the operating condition setting request (Y9) to ON/OFF in
order to enable the A/D conversion enable/disable setting. (See Section 3.2.2.)
(4) In the case of the Q64AD module, b4 to b7 (CH5 to CH8) become invalid.
For the Q64AD, information for b4 to b15 is fixed at 0,and 0 : A/D conversion enabled
for the Q68ADV (I), information for b8 to b15 is fixed at 0. 1 : A/D conversion disabled
Example
When the channels used for A/D conversion are 1, 3, 5 and 8, 006AH (106) is stored in buffer memory
address 0 (Un\G0).
0 0 6 A
(1) Sets the average time or average number of times for each channel for which
averaging processing was specified.
3 - 13
3 SPECIFICATIONS
MELSEC-Q
(1) When selecting sampling processing or averaging processing, write the setting to
buffer memory address 9 (Un\G9).
(2) When averaging processing is selected, select average time or average number
of times.
(4) In the case of the Q64AD module, b4 to b7 and b12 to b15 (CH5 to CH8) are
invalid.
CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
Example
To average channels 1 and 5 for the set number of times and channels 2 and 7 for the set amount of time,
and to sample-process other channels, store 5342H (21314) in buffer-memory address 9 (Un\G9).
CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
5 3 4 2
3 - 14
3 SPECIFICATIONS
MELSEC-Q
3.4.5 A/D conversion completed flag (buffer memory address 10: Un\G10)
(1) When A/D conversion for the channels enabled for conversion is complete, the
A/D conversion completed flag is set to 1. The A/D conversion completed flag
(XE) is set to ON when the conversion for all A/D conversion enabled channels is
complete.
(2) When the operating condition setting request (Y9) is set to ON, the flag returns to
the default setting of 0 and changes to 1 when A/D conversion is complete.
(3) In the case of the Q64AD module, b4 to b7 (CH5 to CH8) are invalid.
Example
When A/D conversion is enabled for channels 1, 2 and 6 and all conversions for these channels are
complete, 0023H (35) is stored in buffer-memory address 10 (Un\G10).
0 0 2 3
3.4.6 Digital output values (buffer memory addresses 11 to 18: Un\G11 to Un\G18)
(1) The digital output values after A/D conversion are stored in the buffer memory
addresses from 11 to 18 (Un\G11 to Un\G18) for each channel.
(2) The digital output values are expressed with 16-bit signed binary values.
3 - 15
3 SPECIFICATIONS
MELSEC-Q
3.4.7 Write data error codes (buffer memory address 19: Un\G19)
(1) The error codes generated by the A/D conversion modules are stored here.
(2) See Section 7.1 for the details of the error codes.
3.4.8 Setting ranges (buffer memory addresses 20 and 21: Un\G20 and Un\G21)
(1) These areas are used to confirm the setting ranges of the A/D conversion module.
(2) The setting values for CH1 to CH4 are stored in buffer memory address 20
(Un\G20) and setting values for CH5 to CH8 are stored in buffer memory address
21 (Un\G21). In the case of the Q64AD module, buffer memory address 21
(Un\G21) is invalid.
3 - 16
3 SPECIFICATIONS
MELSEC-Q
3.4.9 Offset/gain setting mode (buffer memory addresses 22 and 23: Un\G22 and Un\G23)
(2) The channel for which the offset is to be adjusted is specified in buffer memory
address 22 (Un\G22) and the channel for which the gain is to be adjusted is
specified in buffer memory address 23 (Un\G23).
(3) Although it is possible to set multiple channels at the same time, set the offset and
gain separately (buffer memory addresses 22 and 23: Set either Un\G22 or
Un\G23 to 0). If both are set at the same time, an offset/gain setting mode error
(error code 500) occurs.
(5) See Section 4.6 for the details of the offset/gain settings.
Un\G22 (Offset specification) 0 0 0 0 0 0 0 0 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
Un\G23 (Gain specification) 0 0 0 0 0 0 0 0 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
1 : Channel to be set
0 : Invalid
3.4.10 Maximum and minimum values storage area (buffer memory addresses 30 to 45:
Un\G30 to Un\G45)
(1) The maximum and minimum values of the converted digital value for each
channel are stored.
(2) The stored values for all channels will be cleared to 0 when the operating
condition setting request (Y9) is set to ON and the setting is changed or when the
maximum and minimum values reset request (YD) is set to ON.
(3) The maximum and minimum values are stored for each sample processing time
(measurement), even with channels for which averaging processing is specified.
3 - 17
3 SPECIFICATIONS
MELSEC-Q
MEMO
3 - 18
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
(2) Do not remove the PCB of the module from its case. Doing so may cause the
module to fail.
(3) Be careful not to let foreign particles such as swarf or wire chips enter the module.
They may cause a fire, mechanical failure or malfunction.
(4) The top surface of the module is covered with a protective film to prevent foreign
objects such as wire burrs from entering the module during wiring. Do not remove
this film until the wiring is complete. Before operating the system, be sure to 4
remove the film to provide adequate ventilation.
(5) Tighten the terminal screws using torque within the following ranges. Loose
screws may cause short circuits, mechanical failures or malfunctions.
Screw location Clamping torque range
Module mounting screws (M3 screws) 36 to 48 N · cm
Terminal block screws (M3 screws) 42 to 58 N · cm
Terminal block mounting screws (M3.5 screws) 66 to 89 N · cm
(6) To mount the module on the base, securely insert the module fastening latch into
the fastening hole on the base. Improper installation may result in a module
malfunction, or may cause the module to fall off.
4-1
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
Start
Module mounting
Mount the A/D conversion module in the specified
slot.
Wiring
Wire external devices to the A/D conversion module.
Offset/gain setting
If user range settings are used, perform the
offset and gain settings (see Section 4.6).
NO
Use the utility package?
YES
4-2
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
The name of each part of the A/D conversion module is listed below.
1) 1) 1)
Q64AD Q68ADV Q68ADI
RUN RUN RUN
2) 2) 2)
V+ 1 V+ 1 I+
1
C C
C V- 2 H
1
V- 2 H
1
I- 2
H
1 I+ 3 V+ 3 I+ 3
C C
SLD 4 H
2
V- 4 H
2
I- 4
V+ 5 V+ 5 I+ 5
C C
C
H
V- 6 H
3
V- 6 H
3
I- 6
2 I+ V+
7 C
7 C
I+ 7
SLD H V- H I-
8 4 8 4 8
V+ V+ I+
9 C 9 C 9
C V- H V- H I-
H
3
10 5
V+
10 5
10
I+ I+
SLD
11 C
H V-
11 C
H I-
11
6 6
V+
12 12 I+
12
V+
C V-
13 C
H V-
13 C
H I-
13
H 7 7
4 I+ 14 V+
14 I+ 14
C C
SLD 15 H V- 15 H I- 15
8 8
A.G. 16 A.G. 16 A.G. 16
17 17 17
(FG) (FG) (FG)
A/D
18 18 18
0-±10V A/D A/D
0-20mA 0-±10V 0-20mA
Name and
Number Description
appearance
1) RUN LED Displays the operating status of the A/D conversion module.
On : Normal operation
Flashing : During offset/gain setting mode
Off : 5 V power supply interrupted or watch dog timer error
2) ERROR LED Displays the error status of the A/D conversion module.
On : Error
Off : Normal operation
Flashing : Error in switch settings
Switch No. 5 of the intelligent function module has been
set to a value other than zero "0".
4-3
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4-4
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
4.4 Wiring
The wiring precautions and examples of module connection are provided below.
In order to optimize the functions of the A/D conversion module and ensure system
reliability, external wiring that is protected from noise is required.
Please observe the following precautions for external wiring:
(1) Use separate cables for alternating current and external input signals for Q64AD
and Q68ADV (I) in order to avoid A/C surges and induction effects.
(2) Do not mount the cables close to or bundle them with the main circuit line, a high-
voltage cable or a load cable from other than the PLC. This may increase the
effects of noise, surges and induction.
(3) Perform an one-point grounding for shielded lines and the shields of sealed
cables.
(4) A solderless terminal with insulating sleeve cannot be used for the terminal block.
Covering the cable-connection portion of the solderless terminal with a marked
tube or an insulation tube is recommended.
4-5
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
(1) Q64AD
1 Use a twisted two core shielded wire for the power wire.
2 Shows input resistance of Q64AD.
3 If current input, always connect to (V +) and (I +) terminals.
4 "A.G." terminal does not normally require wiring. However, it can be used as GND
for compatible equipment ground under the following conditions.
(1) When there is a difference in polarity between "A.G" and "GND for compatible
equipment".
(2) As an alternative for 0 V input when only the + side is open on a ± wire.
5 Always use a ground. In addition, ground the FB of the power supply module.
4-6
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
(2) Q68ADV
2 + 15 V
500 k
V+
V–
500 k
A.G.
GND – 15 V
FG
1 Shielded ANALOG GND
3
1 Use a twisted two core shielded wire for the power wire.
2 Shows input resistance of Q68ADV.
3 "A.G." terminal does not normally require wiring. However, it can be used as GND
for compatible equipment ground under the following conditions.
(1) When there is a difference in polarity between "A.G" and "GND for compatible
equipment".
(2) As an alternative for 0 V input when only the + side is open on a ± wire.
4 Always use a ground. In addition, ground the FB of the power supply module.
(3) Q68ADI
2 250 + 15 V
I+
I–
A.G.
GND – 15 V
FG
1 Shielded ANALOG GND
3
1 Use a twisted two core shielded wire for the power wire.
2 Shows input resistance of Q68ADI.
3 "A.G." terminal does not normally require wiring. However, it can be used as GND
for compatible equipment ground under the following conditions.
(1) When there is a difference in polarity between "A.G" and "GND for compatible
equipment".
(2) As an alternative for 0 V input when only the + side is open on a ± wire.
4 Always use a ground. In addition, ground the FB of the power supply module.
4-7
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
The settings for the intelligent function module are performed using the I/O assignment
settings for GPPW.
(1) The intelligent function module switches consist of switches 1 to 5 and are set
using 16 bit data. When the intelligent function module switches are not set, the
default value for switches 1 to 5 is 0.
H
00H : With temperature drift correction
Switch 4 Other than 00H : Without temperature drift correction
00H : Normal mode (A/D conversion processing)
Other than 00H : Offset/gain setting mode
Switch 5 0 : Fixed
Depending on the type of module used, the settings for A/D unit input range are shown
below.
• Q64AD.................. 0H to 5H, FH
• Q68ADV ............... 0H, 2H to 5H, FH
*1 When the setting is 0H, the input operating range will be 0t o 10V.
• Q68ADI................. 0H, 1H, FH
4-8
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
REMARK
The "Error time output mode" and the "H/W error time CPU operation mode" for the
intelligent function module detailed setting need not be set since they are invalid for
the A/D conversion module.
4-9
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
Follow the steps below to perform the offset/gain settings. If the utility package is
installed, perform the offset/gain settings according to the procedure described in
Section 5.6.2.
Start
2)
Use the intelligent Set the channel change
function module switch request (YB) to ON.
setting to set the offset/gain
setting mode.
1)
Add the voltage or current Set the channel change
that will be the offset value. request (YB) to OFF.
NO
Set the gain setting channel
in buffer memory address 23
(Un\G23). Set buffer memory
address 22 (Un\G22) to 0. End
4 - 10
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
POINT
(1) Perform the offset/gain settings in the range that satisfies the conditions
specified in Section 3.1.2, (1) and (2).
When the setting exceeds this range, the maximum resolution or total accuracy
may not be within the range indicated in the performance specification.
(2) Perform the offset/gain settings separately for each channel. If channels are
set in buffer memory addresses 22 (Un\G22) and 23 (Un\G23) at the same
time, an error will occur and the ERROR LED will be lit.
(3) After the offset/gain settings are completed, verify that the offset and gain
values have been set correctly under actual usage conditions.
(4) The offset/gain values are stored in the module, and will not be erased even
the power is shut off.
REMARK
This program switches the channels where the offset/gain settings are performed
and writes the offset/gain values to the A/D conversion module.
In this example, the I/O signals for the A/D conversion 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
Switch to the channel where offset/gain settings will be performed
M0
0 MOVP H1 D0
CH selection Channel
selection
M1 M2 X0A
23 T0 U0 K22 D0 K1 Write the channel where offset
Offset Gain Offset/gain Channel setting is performed.
selection selection setting mode selection
T0 U0 K23 K0 K1
M2 M1 X0A
51 T0 U0 K23 D0 K1 Write the channel where gain
Gain Offset Offset/gain Channel setting is performed.
selection selection setting mode selection
T0 U0 K22 K0 K1
M3 X0B
79 SET Y0B
Channel- Channel- Channel- Set Y0B (channel change
change change change request) from ON to OFF, then
selection completed flag request switch to the channel where
offset/gain settings will be
X0B performed.
82 RST Y0B
Channel- Channel-
change change
completed flag request
Register the results of the offset/gain settings to the module
M4
84 SET Y0A
User-range User-range
writing change
selection request
X0A
108 RST Y0A
Offset/gain User-range
setting change
mode request
110 END
4 - 11
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-Q
MEMO
4 - 12
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
POINT
1 If initial setting and automatic refresh setting are performed, the intelligent
function module parameters require a maximum of 76 bytes per module.
5-1
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
For installing and uninstalling SW0D5C-QADU-E, see the GPP Function Software for
Windows Package SW D5C-GPPW-E Operating Manual (Startup).
5-2
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
5-3
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
Page
Moves the cursor one page up.
Up
Page
Moves the cursor one page down.
Down
5-4
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
(b) Steps 1) to 3) shown in Figure 5.1 are performed using the following
operations.
5-5
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
<Text file>
(a) A text file is created by performing the initial setting or automatic refresh
setting, or selecting text file creation in the monitor/test screen. The text
files can be utilized to create user documents.
GPPW/QADU Disk
Project Project
1)
A 2) A
Personal computer
3)
QCPU
Q25HCPU
MODE.
RUN.
ERR.
A : Indicates an intelligent
USER. function module parameter.
BAT.
BOOT.
B : Indicates the data
saved by text file creation.
A
USB
RS-232
Figure 5.1 Correlation chart for data created using the utility package
5-6
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
GPPW screen
Enter "Start I/O No.", then select "Package name" and "Module model name".
See Section 5.3.3
1)
Initial setting Auto refresh
5-7
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
1)
[Online] – [Monitor/test]
Enter "Start I/O No.", then select "Package name" and "Module model name".
Monitor/test screen
5-8
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
[Purpose of setting]
Start the intelligent function module utility from GPPW, and display the module
selection screen for the intelligent function module utility parameter setting. The
screens for performing initial setting, automatic refresh setting and monitor/test
module selection (selecting the module for which monitoring/testing is to be
performed) can be started from this screen.
[Startup procedure]
[Tools] [Intelligent function utility] [Start]
[Setting screen]
[Explanation of items]
(1) How to start each screen
(a) Starting initial setting
"Start I/O No. " "Package name" "Module model name"
Initial setting
(b) Starting automatic refresh setting
"Start I/O No. " "Package name" "Module model name"
Auto refresh
(c) Monitor/test module selection screen
Online Monitor/test
Enter the start I/O numbers in hexadecimal.
5-9
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
POINT
(1) Saving the intelligent function module parameter files
Since files cannot be saved using the GPPW project save operation, save the
files using the module selection screen for intelligent function module
parameter setting described above.
(2) Reading from and writing to PLC operations for the intelligent function module
parameters using GPPW
(a) After the intelligent function module parameters are saved in a file, they
can be read from and written into the PLC.
(b) Set the target PLC CPU using GPPW [Online] [Transfer setup].
5 - 10
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
[Purpose of setting]
The following A/D initial setting parameters are set:
• A/D conversion enable/disable setting
• Sampling process/averaging process setting
• Time/number of times specifying
• Average time/average number of times setting
By performing these initial settings, the sequence program settings are not required.
[Startup procedure]
"Start I/O No. " "Package name" "Module model name" Initial setting
[Setting screen]
[Explanation of items]
(1) Setting contents
Set whether A/D conversion is enabled or disabled and the A/D conversion
method for each channel.
End setup Confirms the setting data and ends the operation.
POINT
Initial settings are stored in the intelligent function module parameters. After the
initial settings are written to the CPU module, they are validated by operating the
RUN-STOP switch as follows, STOP RUN STOP RUN, turning the power
OFF and then ON, or resetting the CPU module.
When using a sequencer program to write the initial settings, when the CPU is
switched from STOP to RUN the initial settings will be written, So ensures that
programming is carried out to re-execute the initial settings.
5 - 11
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
[Purpose of setting]
Sets the buffer memory for the A/D conversion module to be automatically
refreshed.
[Startup procedure]
"Start I/O No. " "Package name" "Module model name" Auto refresh
[Setting screen]
[Explanation of items]
(1) Contents of the screen display
Model side Buffer size : Displays the size of the buffer memory for the
setting item that can be transferred (fixed at
one word).
Model side Transfer word count : Displays the number of words to transfer the
CPU device from the head device (fixed at
one word).
Transfer direction : " " indicates that data is written from the
device to the buffer memory.
" " indicates that data is read from the buffer
memory to the device.
PLC side Device : Enter the device at the CPU module to be
automatically refreshed.
The devices that can be used are X, Y, M, L,
B, T, C, ST, D, W, R, ZR. When using bit
devices, K, Y, M, L or B, set a number that
can be divided by 16 points (examples: X10,
Y120, M16).
Also, buffer memory data is stored in 16 point
blocks starting from the device number that
was set. For example, if X10 is set, data will
be stored from X10 to X1F.
5 - 12
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
POINT
The automatic refresh settings are stored in the intelligent function module
parameters. After the automatic refresh settings are written to the CPU module,
they are validated by performing STOP RUN STOP RUN operations for the
CPU module, turning the power OFF and then ON, or resetting the CPU module.
The automatic refresh settings cannot be changed from the sequencer program.
However, it is possible to add a process similar to automatic refresh by using the
FROM/TO instructions of the sequence program.
5 - 13
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
5.6 Monitor/Test
[Purpose of setting]
Buffer memory monitoring/testing, I/O signals monitoring/testing, operating condition
setting, offset/gain settings (see Section 5.6.2) are started from this screen.
[Startup procedure]
Monitor/test module selection screen "Start I/O No. " "Package name"
"Module model name" Monitor/test
Enter the start I/O numbers in hexadecimal.
[Setting screen]
1)
5 - 14
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
1)
5 - 15
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
[Explanation of items]
(1) Contents of screen display
Setting item : The I/O signal or buffer memory names are displayed.
Current value : The I/O signal status or current value of buffer memory are
monitored.
Setting value : Select or enter the data to be written during test operation.
POINT
If the selection test operation is performed while deleting the setting value using the
Delete key (the setting value field is blank), the message "Completed" will be
displayed but write operation will not be performed.
REMARK
The following describes an example where sampling process for the selection test
operation is changed to a 10-time averaging process setting.
(1) Set averaging process in the setting value field for CH Sampling
process/Averaging process setting.
(2) Set number of times in the setting value field for CH Time/number of times
specifying.
(3) Click the setting value field for CH Average time/average number of times
setting to select.
(4) After entering the average number of times, press the Enter key.
At this point, nothing has been written to the A/D conversion module.
(5) Select the setting value fields that were specified in steps 1 to 4 while holding
down the Ctrl key.
(6) Click Select test to execute write operation.
Once writing has been completed, the value that was written will be displayed in
the present value field.
5 - 16
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
(c) Set the analog input value for the gain value
Add the voltage or current that will determine the gain value to the channel
to be set.
(d) Select the channel for which the gain value is to be adjusted
Make the selection from the offset/gain setting channel field, and then click
on the Select test button.
(e) To set the offset/gain for more than one channel, repeat steps (a) to (d).
5 - 17
5 UTILITY PACKAGE (SW0D5C-QADU-E)
MELSEC-Q
MEMO
5 - 18
6 PROGRAMMING
MELSEC-Q
6 PROGRAMMING
Using a sample system configuration shown below, details of the A/D conversion
module program are explained in the following two scenarios: when the utility package
is used and when the utility package is not used.
QnCPU
Q64AD
QY10
QX10
6-1
6 PROGRAMMING
MELSEC-Q
6-2
6 PROGRAMMING
MELSEC-Q
52 END
6-3
6 PROGRAMMING
MELSEC-Q
SET Y9
Operating
condition Set Y9 (operating condition
setting request setting request) from ON to OFF
Y9 X9 and enable the initial setting
101 RST Y9
Operating Operating Operating
condition condition condition
setting setting completed setting request
request
Digital output value read processing
X11 X0 X0E
104 FROM H0 K11 D11 K1
Read Module A/D CH1
digital READY conversion Digital
values completed output
flag Read digital output values for
FROM H0 K12 D12 K1
CH1 to 3
CH2
Digital
output
FROM H0 K13 D13 K1
CH3
Digital
Error code display and reset processing output
X10 X0F
139 FROM H0 K19 D14 K1
Error Error Error code
reset flag Output the error code to Y20
signal to Y2B by BCD code.
BCD D14 K3Y20
Error code
SET Y0F
Error clear
request
Clear the error code.
Y0F X0F
167 RST Y0F
Error Error Error clear
clear flag request
request
170 END
6-4
6 PROGRAMMING
MELSEC-Q
U0\
MOV K50 G2 Set the average number of times
for CH2 to 50 times
U0\
MOV K1000 G3 Set the average time for CH3 to
1000 ms
U0\
MOV H604 G9 Specify averaging processing
SET Y9
Operating
condition Set Y9 (operating condition
setting request setting request) from ON to OFF
Y9 X9 and enable the initial setting
99 RST Y9
Operating Operating Operating
condition condition condition
setting setting completed setting request
request
Digital output value read processing
X11 X0 X0E U0\
102 MOV G11 D11
Read Module A/D CH1
digital READY conversion Digital
values completed output
flag U0\
MOV G12 D12 Read digital output values for
CH1 to 3
CH2
Digital
output
U0\
MOV G13 D13
CH3
Digital
Error code display and reset processing output
X10 X0F U0\
134 BCD G19 K3Y20
Error Error Error code
reset flag Output the error code to
signal Y20 to Y2B by BCD code
SET Y0F
Error clear
request
Y0F X0F
158 RST Y0F
Error Error Error clear
clear flag request
request
161 END
6-5
6 PROGRAMMING
MELSEC-Q
MEMO
6-6
7 TROUBLESHOOTING
MELSEC-Q
7 TROUBLESHOOTING
The following section explains the types of errors that may occur when the A/D
conversion module is used, and how to troubleshoot such errors.
If an error occurs in the A/D conversion module while writing to or reading data from
the PLC CPU, the applicable error code is written to buffer memory address 19
(Un\G19).
POINT
(1) If more than one error occurs, the error code first detected by the A/D
conversion module is stored. No other error codes will be stored.
(2) The error can be cleared by setting the error clear request (YF) to "ON".
7-1
7 TROUBLESHOOTING
MELSEC-Q
7.2 Troubleshooting
(1) When on
Check item Corrective action
Confirm the error code and take corrective action described
Is an error being generated?
in Section 7.1.
7-2
7 TROUBLESHOOTING
MELSEC-Q
7-3
7 TROUBLESHOOTING
MELSEC-Q
7.2.4 Checking the A/D conversion module status using GPPW system monitor
When the A/D conversion module detail information is selected in GPPW system
monitor, error codes and LED status can be checked.
7-4
APEENDIX
MELSEC-Q
APPENDIX
(1) Q64AD
Q64AD
RUN
ERROR
V+ 1
C V- 2
H
1
I+ 3
SLD 4
V+ 5
98 (3.86)
C
H
V- 6
2 I+ 7
SLD
8
V+
9
C V-
H 10
3 I+
11
SLD
V+
12
V-
13
C
H
4 I+
14
SLD 15
A.G.
16
17
(FG)
18
A/D
0-±10V
0-20mA
(2) Q68ADV
Q68ADV
RUN
ERROR
V+ 1
C
H
1
V- 2 App.
V+ 3
C
H
2
V- 4
V+ 5
C
98 (3.86)
H
3
V- 6
V+ 7
C
H V-
4 8
V+
C 9
H V-
5 10
V+
C
H
11
V-
6
12
V+
C
H
13
7
V-
V+
14
C
H V-
15
8
A.G.
16
17
(FG)
18
A/D
0-±10V
Appendix - 1
APEENDIX
MELSEC-Q
(3) Q68ADI
Q68ADI
RUN
ERROR
I+
1
C
H I- 2
1
I+ 3
C
H
2
I- 4
I+ 5
C
98 (3.86)
H
3
I- 6
I+ 7
C
H I-
4 8
I+
C 9
H I-
5
10
I+
C 11
H I-
6
12
I+
C
H I-
13
7
I+ 14
C
H I- 15
8
A.G.
16
17
(FG)
18
A/D
0-20mA
Appendix - 2
INDEX
[A] [G]
Absolute maximum input................................. 3-1 Gain value ........................................................3-2
Accuracy................................................... 3-1, 3-5 GPPW ............................................................. A-7
A/D conversion completed flag ............3-10, 3-15
A/D conversion enable/disable setting .. 3-6, 3-13 [H]
A/D conversion methods................................. 3-6 Handling precautions .......................................4-1
A/D conversion module................................... A-7
Analog input..................................................... 3-1 [I]
Applicable CPU modules ................................ 2-1 I/O assignment setting .....................................4-8
Automatic refresh settings ..................... 5-1, 5-12 I/O characteristics ............................................3-1
Averaging processing setting........................ 3-14 Input range ............................................. 3-16, 4-8
Averaging processing...................................... 3-6 Install ................................................................5-2
Intelligent function module parameter.............5-5
[B] Intelligent function module utility
Buffer memory............................................... 3-12 parameter setting .............................................5-7
Internal current consumption...........................3-1
[C]
Channel change completed flag ................... 3-10 [L]
Channel change request............................... 3-11 License-key diskette ................................ A-8, 5-2
CH Average time/ List of I/O signals .............................................3-8
average number of times .............................. 3-13
Close file ........................................................ 5-10 [M]
Conversion speed ........................................... 3-1 Maximum and minimum values
Current input characteristics ........................... 3-4 hold function.....................................................3-6
Maximum and minimum values
[D] storage area ...................................................3-17
Delete file....................................................... 5-10 Maximum resolution.........................................3-1
Digital output values ...................................... 3-15 Maximum value/minimum value
Digital output.................................................... 3-1 reset request ..................................................3-11
Monitor/test.....................................................5-14
[E]
EMC directive .................................................. A-8 [N]
Error clear request......................................... 3-11 Number of occupied points..............................3-1
Error code list .................................................. 7-1
ERROR LED ................................................... 4-3 [O]
Error flag ........................................................ 3-10 Offset value ......................................................3-2
External dimension diagram ......................App.-1 Offset/gain setting mode flag...........................3-9
External wiring ................................................. 4-6 Offset/gain setting mode................................3-17
Offset/gain settings .....................4-10, 5-15, 5-17
Open file .........................................................5-10
Operation condition setting............................5-15
Operating condition setting completed flag.....3-9
Operating condition setting request ..............3-11
Operating environment ....................................5-3
Index - 1
[P]
Part identification nomenclature ..................... 4-3
Programming................................................... 6-1
[Q]
Q64AD ............................................................. 1-1
Q68ADI ............................................................ 1-1
Q68ADV........................................................... 1-1
QCPU (Q mode).............................................. A-7
[R]
Read from PLC.............................................. 5-10
RUN LED......................................................... A-7
[S]
Sampling processing....................................... 3-6
Save file ......................................................... 5-10
Setting ranges ............................................... 3-16
Setup and procedures before operation......... 4-2
Switch setting for intelligent function
module ............................................................. 4-8
[T]
Temperature drift compensation function....... 3-6
Temperature drift compensation flag.............. 3-9
Text file ............................................................ 5-6
Transfer setup ............................................... 5-10
Troubleshooting............................................... 7-1
[U]
Uninstall ........................................................... 5-2
Module READY ............................................... 3-9
Module selection screen for the intelligent
function module utility parameter setting........ 5-7
Module range write request .......................... 3-11
Utility package ................................................. 5-1
[V]
Voltage input characteristics ........................... 3-3
[W]
Weight.............................................................. 3-1
Windows .......................................................... A-7
Write data error codes................................... 3-16
Write to PLC .................................................. 5-10
[X]
X/Ymonitor/test.............................................. 5-14
Index - 2
MEMO
Index - 3
WARRANTY
Please confirm the following product warranty details before starting use.
3. Overseas service
Overseas, repairs shall be accepted by Mitsubishi’s local overseas FA Center. Note that the repair conditions at each FA Center
may differ.
6. Product application
(1) In using the Mitsubishi MELSEC programmable logic controller, the usage conditions shall be that the application will not
lead to a major accident even if any problems or faults should occur in the programmable logic controller device, and that
backup and fail-safe functions are systematically provided outside of the device for any problems or fault.
(2) The Mitsubishi general-purpose programmable logic controller has been designed and manufactured for applications in
general industries, etc. Thus, applications in which the public could be affected such as in nuclear power plants and other
power plants operated by respective power companies, and applications in which a special quality assurance system is
required, such as for Railway companies or the Department of Defense shall be excluded from the programmable logic
controller applications.
Note that even with these applications, if the user approves that the application is to be limited and a special quality is not
required, application shall be possible.
When considering use in aircraft, medical applications, railways, incineration and fuel devices, manned transport devices,
recreational equipment and safety devices, in which human life or assets could be greatly affected and for which a
particularly high reliability is required in terms of safety and control system, please consult with Mitsubishi and discuss the
required specifications.
Analog-Digital Converter
Module
User's Manual
MODEL Q-A/D-U-S-E
MODEL 13JR03
CODE
SH(NA)-080055-A(9912)MEE
HEAD OFFICE : MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100-8310 TELEX : J24532 CABLE MELCO TOKYO
NAGOYA WORKS : 1-14 , YADA-MINAMI 5 , HIGASHI-KU, NAGOYA , JAPAN
When exported from Japan, this manual does not require application to the
Ministry of International Trade and Industry for service transaction permission.