(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
PLC system, please read the user's manual for the CPU module to use.
In this manual, the safety instructions are ranked as "DANGER" and "CAUTION".
DANGER
!
CAUTION
!
Note that the !CAUTION level may lead to a serious consequence according to t he 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. Alway s forward it to the
end user.
Indicates that incorrect handling may cause hazardous conditions,
resulting in death or severe injury.
Indicates that incorrect handling may cause hazardous conditions,
resulting in medium or slight personal injury or physical damage.
[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 int elligent funct ion
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 A - 1
[INSTALLATION PRECAUTIONS]
!
CAUTION
• Use the PLC in an environment that meets the general specifications contain ed in the user's
manual of the CPU module to use.
Using this PLC in an environment outside the range of the general specificat ions may cause
electric shock, fire, malfunction, and damage to or deterioration of the product.
• When installing the module, securely insert the module fixing tabs int o the mountin g holes of the
base unit while pressing the installation lever locat ed at the bottom of the module downward.
Improper installation may result in malfunction, breakdown or the module co ming 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 modu le.
Not doing so may cause damage to the module.
The system that uses the QnPHCPU allows y ou to change a module online. Not e that there are
restrictions on the modules that can be changed online and each module has a predetermined
changing procedure. For details, refer to the chapter of online module change in this manual.
• 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 ventilat ion.
A - 2 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 modu le.
Not doing so may cause failure or malfunction of the module.
The system that uses the QnPHCPU allows y ou to change a module online. Not e that there are
restrictions on the modules that can be changed online and each module has a predetermined
changing procedure. For details, refer to the chapter of online module change in this manual.
• 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 malfunct ion.
•
Always make sure to touch the grounded metal to discharge the electricity charged in the body,
etc., before touching the module.
Failure to do so may cause a failure or malfunctions of the module.
[DISPOSAL PRECAUTIONS]
!
CAUTION
• When disposing of this product, treat it as industrial wast e.
A - 3 A - 3
REVISIONS
The manual number is given on the bottom left of the back cover.
Print Date Manual NumberRevision
Dec., 1999SH (NA)-080055-A First printing
Oct., 2000SH (NA)-080055-B Add the contents of the function version B.
Correction
About the Generic Terms and Abbreviations, Section 2.1, Section 3.1.3,
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent
licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property
rights which may occur as a result of using the contents noted in this manual.
1999 MITSUBISHI ELECTRIC CORPORATION
A - 5 A - 5
INTRODUCTION
Thank you for purchasing the MELSEC-Q series PLC.
Before using the equipment, please read this manual carefully to develop full familiarity with the functions
and performance of the Q series PLC you have purchased, so as to ensure correct use.
Please forward a copy of this manual to the end user.
1.1 Features ..................................................................................................................................................1- 1
1.2 Functions Added to Function Version B and Later................................................................................1- 2
3.2 Function List............................................................................................................................................3-10
3.2.2 Maximum and minimum values hold function.................................................................................3-12
3.3 I/O Signals for the PLC CPU ..................................................................................................................3-12
3.3.1 List of I/O signals..............................................................................................................................3-12
3.3.2 Details of I/O signals ........................................................................................................................3-13
5.2 Installing and Uninstalling the Utility Package........................................................................................5- 2
5.2.1 User precautions ..............................................................................................................................5- 2
7.3.2 When industrial shipment setting is used and initial setting was made with sequence program. 7 - 8
7.3.3 When user range setting is used and initial setting was made with GX Configurator-AD
(other system is available)..............................................................................................................7 -12
7.3.4 When user range setting is used and initial setting was made with GX Configurator-AD
(other system is unavailable)..........................................................................................................7 -16
7.3.5 When user range setting is used and initial setting was made with sequence program
(other system is available)..............................................................................................................7 -22
7.3.6 When user range setting is used and initial setting was made with sequence program
(other system is unavailable)..........................................................................................................7 -26
7.4 Range Reference Table.........................................................................................................................7 -30
7.5 Precautions for Online Module Change ................................................................................................7 -31
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 User's
Manual (Hardware) of the PLC CPU to use.
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 instructi on.
By making this product conform to the EMC directive and low voltage instruction, it is not necessary to make
those steps individually.
About the Generic Terms and Abbreviations
Unless otherwise specified, this manual uses the following general terms and abbreviations.
Abbreviation/general termsDescription of the abbreviation/general terms
A/D converter moduleGeneric term for Q64AD, Q68ADI, Q68ADV
Personal computerIBM PC/AT® or compatible computer with DOS/V.
Generic product name of the product types SWnD5C-GPPW-E, SWnD5C-GPPW-EA,
GX Developer
GX Configurator-AD
QCPU (Q mode)
QnPHCPUGeneric term for Q12PHCPU and Q25PHCPU.
Personal computerGeneric term for DOS/V personal computer
Factory setting
SWnD5C-GPPW-EV and SWnD5C-GPPW-EVA.
"n" in the model name is 4 or greater.
Generic term for analog-digital converter module setting and monitor tool GX
Configurator-AD (SW0D5C-QADU-E)
Generic term for Q00JCPU, Q00CPU, Q01CPU, Q02CPU, Q02HCPU, Q06HCPU,
Q12HCPU, Q25HCPU
Generic term for analog input ranges 0 to 10V, 0 to 5V, 1 to 5V, -10 to 10V, 0 to 20mA
and 4 to 20mA
A - 9 A - 9
Product Structure
The product structure of this product is given in the table below.
Model codeProduct nameQuantity
Q64ADQ64AD Model Analog-Digital Converter Module1
Q68ADVQ68ADV Model Analog -Digital Converter Module1
Q68ADIQ68ADI Model Analog -Digital Converter Module1
SW0D5C-QADU-EGX Configurator-AD Version 1 (1-license product) (CD-ROM)1
SW0D5C-QADU-EAGX Configurator-AD Version 1 (Multiple-license product) (CD-ROM)1
A - 10 A - 10
1 OVERVIEW
1 OVERVIEW
MELSEC-Q
1.1 Features
This User's Manual describes the specifications, handling and programming methods
for the Q64AD analog-digital converter module (hereinafter referred to as the Q64AD),
Q68ADV analog-digital converter module (hereinafter referred to as the Q68ADV), and
Q68ADI analog-digital converter 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 converter modules.
(1) Select the type of module according to the appl i cati on.
• Q64AD
• Q68ADV
• Q68ADI
4 channels, where the voltage input or current input can be
selected for each channel.
........
8 channels, all of which are voltage input.
..........
8 channels, all of which are current input.
...........
(2) High speed conversion
Conversion is performed at a high speed of 80 µ s/channel. Also, the
temperature drift compensation function can be performed using a processing
time of "conversion time for all channels + 160
s".
1
(3) High degree of accuracy
The degree of accuracy for the conversion process is ± 0.1% (When the ambient
temperature is 25 ± 5 °C).
(4) Changing the resolution mode
The resolution mode can be changed according to the application, and digitalvalue resolution settings of 1/4000, 1/12000 or 1/16000 can be selected.
(5) Changing the input range
The input range 1 can easily be set fro m th e GX De vel o pe r.
1: Input range refers to the type of offset/gain settings. The most frequently
used range is set as the default but the user can also set the offset/gain.
(6) Easy settings using the utility package
A utility package is sold separately (GX Configurator-AD).
The utility package is not a required item. However, it can be used to set initial
settings and automatic refresh settings on screen, reduce sequence programs,
and check settings and operating status.
1 - 1 1 - 1
1 OVERVIEW
1.2 Functions Added to Function Version B and Later
MELSEC-Q
1
Multiple PLC system
compatibility
Resolution mode
High resolution mode
status flag (X8)
Maximum value/minimum
value reset completed flag
(XD)
Online module change
Mode switching that does
not require PLC CPU to be
reset
(1) Functions added to function version B
The functions added by the function version B A/D converter module are listed
below.
ItemFunction overviewReference section
Compatible with a multiple PLC system. A PLC CPU of function version
B or later are required.
The resolution mode can be changed according to the appli cation, and
digital-value resolution settings of 1/4000, 1/12000 or 1/16000 ca n be
selected.
This turns ON when in high resolution mode.Section 3.3
This turns ON when the maximum and minimum values stored in buffer
memory addresses 30 to 45 are reset by the maximum v alue/minimu m
value reset request (YD).
Section 2.1
Section 3.2
Section 3.3
(2) Functions added to function version C
The functions added to the A/D converter module of function version C are listed
below.
ItemFunction overviewReference section
You can change the module without stopping the system. A PLC CP U
of function version C or later is required.
Using the mode switching setting (buffer memory addresses 158, 15 9:
Un\G158, Un\G159) and operation condition setting request (Y9), the
module is switched between the normal mode and offset/ga in settin g
mode without the PLC CPU being reset.
Using the dedicated instruction (G.OFFGAN), the module is switched
between the normal mode and offset/gain setting mode w ithout the
PLC CPU being reset.
Using GX Configurator-AD, the module is switched between the normal
mode and offset/gain setting mode without the PLC CPU being reset.
Chapter 7
Section 3.4.13
Appendix 2.1
Section 5.6.2
POINT
(1) See Appendix 1.1 for a comparison of functions of the function version.
(2) See Section 2.2 on how to check the function version.
1 - 2 1 - 2
2 SYSTEM CONFIGURATION
2 SYSTEM CONFIGURATION
2.1 Applicable Systems
This section describes the system configuration for the A/D converter module.
MELSEC-Q
(1) Applicable module and the nu mber of modules that can be installed
The following are the CPU module and network module (for remote I/O stations)
in which the A/D converter module can be installed and the number of modules
that can be installed.
CPU module
Network module
1 See User's Manual (Function Explanation, Program Fundamentals) for the CPU module to use.
2 See Q Corresponding MELSECNET/H Network System Reference Manual (Remote I/O
network).
Applicable module
Q12PHCPU
Q25PHCPU
QJ72LP25-25
QJ72LP25G
QJ71LP25GE
Number of modules that
can be installed
Q00JCPUMaximum 16
Q00CPU
Q01CPU
Q02CPU
Q02HCPU
Q06HCPU
Q12HCPU
Q25HCPU
QJ72BR15
Maximum 24
Maximum 64
Maximum 64
Maximum 64
Can be installed in Q mode only
1
(
MELSECNET/H Remote I/O
station (
Remarks
1
(
)
)
1
(
)
2
)
2
(2) Base Unit in which the converter modul e can be i nstall ed
The A/D converter module can be installed in any I/O slot ( 3) of the base unit.
However, a power shortage may occur depending on the combination with other
installed modules and the number of modules used, so always take into
consideration the power supply capacity when installing modules.
3 Limited to the range of the number of I/O points in the CPU module and network module (for
remote I/O station s) .
(3) Compatibility with a multiple PLC system
First read the QCPU (Q mode) user's manual (Function Explanation, Program
Fundamentals) if the A/D converter module is used with a multiple PLC system.
(a) Compatible A/D converter module
Use an A/D converter module with function version B or higher if using the
module in a multiple PLC system.
(b) Intelligent function module parameters
Perform PLC write of the intelligent function module parameters to the
control PLC of the A/D converter module only.
2 - 1 2 - 1
2 SYSTEM CONFIGURATION
(4) Compatibility with online module change
2
(5) Software packages supported
MELSEC-Q
To make an online module change, use the module of function version C or later.
POINT
The products of function version C include the functions of the products of function
versions A and B.
Correspondence between systems which use A/D converter modules and
software packages are as shown below.
The GX Developer is necessary when using a A/D converter module.
Software Version
GX Developer
GX Configurator-AD
4
Single PLC systemVersion 7 or later
Q00J/Q00/Q01CPU
Multiple PLC systemVersion 8 or later
Q02/Q02H/Q06H/
Q12H/Q25HCPU
Q12PH/Q25PHCPU
If installed in a MELSECNET/H remote I/O
station
4 Refer to Appendix 1.2 for the combinations of the A/D converter module functions and GX
Configurator-AD software versions.
Single PLC systemVersion 4 or later
Multiple PLC systemVersion 6 or later
Single PLC system
Multiple PLC system
Version 7.10L or later
Version 6 or later
Version 1.10L or later
(cannot be used with the
SW0D5C-QADU-E 50F
or earlier versions).
SW0D5C-QADU-E 00A
or later
SW0D5C-QADU-E 20C
or later
Version 1.13P or later
(cannot be used with the
SW0D5C-QADU-E 50F
or earlier versions).
SW0D5C-QADU-E 50F
or later
2 - 2 2 - 2
2 SYSTEM CONFIGURATION
2.2 How to Check the Function Version and Softw ar e Ver si on
This section describes how to check the function version of the A/D converter module
and the GX Configurator-AD software version.
(1) How to check the function version of the A/D conv er ter module
(a) To check the version using the "SERIAL column of the rating plate" located
on the side of the module
MELSEC-Q
(b) To check the version using the GX Developer
See Section 8.2.4 of this manual.
Function version
80M1 IND. CONT. EQ.
(2) How to check the GX Configurator-AD softw are v ersion
The GX Configurator-AD software version can be checked in GX Developer's
"Product information" screen.
[Startup procedure]
GX Developer "Help" Product information
Software version
(In the case of GX Developer Version 7)
2 - 3 2 - 3
2 SYSTEM CONFIGURATION
REMARK
The version indication for the GX Configurator-AD has been changed as shown
below from the SW0D5C-QADU-E 50F upgrade product.
Previous productUpgrade and subsequent versions
SW0D5C-QADU-E 50F
MELSEC-Q
GX Configurator-AD Version 1.10L
2 - 4 2 - 4
3 SPECIFICATIONS
3 SPECIFICATIONS
3.1 Performance Specifications
3.1.1 Performance specifications list
Table 3.1 shows the performance specifications of the A/D converter modules.
Table 3.1 Performance specifications
MELSEC-Q
Model name
Item
Q64ADQ68ADVQ68ADI
Analog input points4 points (4 channels)8 points (8 channels)8 points (8 channels)
Analog
input
Digital output
I/O characteristics,
Maximum resolution
Voltage–10 to 10 V DC (Input resistance value 1M )———
Current
0 to 20 mA DC
(input resistance value 250
)
———
0 to 20 mA DC
(input resistance value 250 )
16-bit signed binary (normal resolution mode: –4096 to 4095,
high resolution mode: –12288 to 12287, –16384 to 16383
Normal resolution modeHigh resolution mode
Analog input range
0 to 10 V2.5 mV0 to 160000.625 mV
0 to 5 V1.25 mV0.416 mV
1 to 5 V
Voltage
Current
–10 to 10 V2.5 mV
Users range
setting
0 to 20 mA
4 to 20 mA
Users range
setting
Digital output
value
0 to 4000
–4000 to 4000
0 to 4000
–4000 to 4000
Maximum
resolution
1.0 mV
0.375 m V
5
A1.66 A
A
4
1.37
A
Digital output
value
0 to 12000
–16000 to
16000
–12000 to
12000
0 to 12000
–12000 to
12000
Maximum
resolution
0.333 mV
0.625 mV
0.333 mV
1.33 A
1.33 A
3
Normal resolution modeHigh resolution mode
Accuracy
(Accuracy
in respect
to
maximum
digital
output
value)
Analog input range
0 to 10 V
–10 to 10 V
Voltage
Current
0 to 5 V
1 to 5 V
Users range
setting
0 to 20 mA
4 to 20 mA
Users range
setting
Ambient temperature 0 to 55 °CA mbient temperature 0 to 55 °C
With
temperature
drift correctio n
± 0.3 %
(± 12 digit
Without
temperature
drift correctio n
± 0.4 %
)
(± 16 digit )
Ambient
temperature
25 ± 5 °C
± 0.1 %
(± 48 digit )
With
temperature
drift correctio n
± 0.3 %
(± 48 digit
± 0.3 %
(± 36 digit
Without
temperature
drift correctio n
± 0.4 %
)
(± 64 digit )
± 0.4 %
)
(± 48 digit )
Digit indicates a digital value.
3 - 1 3 - 1
Ambient
temperature
25 ± 5 °C
± 0.1 %
(± 16 digit )
± 0.1 %
(± 12 digit )
3 SPECIFICATIONS
MELSEC-Q
Model name
Item
Conversion speed
Absolute maximum inputVoltage : ± 15 V Current : ± 30 mA
E2PROM write countMax. 100 thousand times
Insulation method
Dielectric withstand voltageBetween the I/O terminal and PLC power supply: 500VAC for 1 minute
Insulation resistanceBetween the I/O terminal and PLC power supply: 500VDC 20M or more
3
Number of occupied points16 points
Connection terminals18-point terminal block
Applicable wire size0.3 to 0.75 mm
Applicable solderless terminalR1.25-3 (A solderless terminal with sleeve cannot be used)
Internal current consumption
(5 V DC)
Weight0.18 kg0.19 kg0.19 kg
(When there is temperature drift, the time calculated by adding 160 s will be used
Q64ADQ68ADVQ68ADI
80 s/channel
regardless of the number of channels used)
Between the I/O terminal and PLC power supply : Photocoupler insulation
Between channels : Non-insulated
2
0.63 A0.64 A0.64 A
REMARK
See the user’s manual for the CPU module being used for general specifications of
the A/D converter modules.
3.1.2 I/O conversion characteristic
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 (in normal resolution mode)
12000 (when 0 to 5 V, 1 to 5 V, 4 to 20 mA, 0 to 20 mA or the user range setting is
selected in high re sol u tion mode )
16000 (when -10 to 10 V or 0 to 10 V is selected in high resolution mode).
3 - 2 3 - 2
3 SPECIFICATIONS
(1) Voltage input characteristic
4095
4000
MELSEC-Q
(a) Voltage input characteristic in normal resolution mode
Figure 3.1 shows a graph of t he voltag e input characteri stic in nor mal resolution
mode.
Analog input practical range
3) 4)
2000
0
–96
Digital output value
–2000
–4000
–4096
–15–10
Number
Analog input
range setting
Offset valueGain value
1)1 to 5 V1 V5 V1.0 mV
2)0 to 5 V0 V5 V
2)
–5
Analog input voltage (V)
051015
1
Digital output value
1)
0 to 4000
2
Maximum
resolution
3)–10 to 10 V0 V10 V–4000 to 40002.5 mV
4)0 to 10 V0 V10 V0 to 40002.5 mV
—User range setting
11
–4000 to 40000.375 mV
1.25 mV
Figure 3.1 Voltage input characteristic in normal r esol ution mode
3 - 3 3 - 3
3 SPECIFICATIONS
16383
16000
12287
12000
8000
MELSEC-Q
(b) Voltage input characteristic in high resolution mode
Figure 3.2 shows a graph of t he voltag e input characteristi c in high resolution
mode.
Analog input practical range
3) 4)
2)
1)
0
–288
–384
Digital output value
–8000
–16000
–16384
Number
–15–10
Analog input
range setting
Offset valueGain value
–5
Analog input voltage (V)
1)1 to 5 V1 V5 V0.333 mV
2)0 to 5 V0 V5 V
1
051015
Maximum
Digital output value
2
resolution
0 to 12000
0.416 mV
3)–10 to 10 V0 V10 V–16000 to 160000.625 mV
4)0 to 10 V0 V10 V0 to 160000.625 mV
—User range setting
11
–12000 to 120000.333 mV
Figure 3.2 Voltage input characteristic in hig h r esolution mode
3 - 4 3 - 4
3 SPECIFICATIONS
MELSEC-Q
POINT
(1) Set within the analog input range and digital output range for each input range.
If these ranges are exceeded, the maximum resolution and accuracy may not
fall within the performance specifications. (Avoid using the dotted line area
shown in Figures 3.1 and 3.2.)
(2) Do not input an analog input voltage of more than ± 15 V. The input elements
may be damaged.
(3) 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) } > A
<Value of A>
Normal resolution modeHigh resolution mode
1.5 V4.0 V
(4) When an analog value that exceeds the range fo r the digital output value 2 is
entered, the digital output value will be fixed at the maximum or mini mum value.
Analog input range
setting
1 to 5 V
0 to 5 V
–10 to 10 V–4096–16384
0 to 10 V–96–384
User range setting–4096
Normal resolution modeHigh resolution mode
MinimumMaximumMinimumMaximum
–96–28812287
4095
–1228812287
16383
3 - 5 3 - 5
3 SPECIFICATIONS
(2) Current input characteristic
4095
4000
2000
MELSEC-Q
(a) Current input characteristic in normal resolution mode
Figure 3.3 shows a graph of t he current input ch aracteristic in normal re solution
mode.
Analog input practical range
1)
2)
0
–96
Digital output value
–2000
–4000
–4096
–30–20–100102030
Analog input current (mA)
Number
Analog input
range setting
Offset valueGain value
1)4 to 20 mA4 mA20 mA
2)0 to 20 mA0 mA20 mA
—User range setting
11
Figure 3.3 Current input characteristic in nor mal r esol ution mode
4
Digital output value
0 to 4000
–4000 to 4000
2
Maximum
resolution
A
4
A
5
A
1.37
3 - 6 3 - 6
3 SPECIFICATIONS
12287
12000
6000
MELSEC-Q
(b) Current input characteristic in high resolution mode
Figure 3.4 shows a graph of t he current input characteristic in high re solution
mode.
Analog input practical range
1)
2)
0
–288
Digital output value
–6000
–12000
–12288
–30–20–100102030
Analog input current (mA)
Number
Analog input
range setting
Offset valueGain value
1)4 to 20 mA4 mA20 mA
2)0 to 20 mA0 mA20 mA
—User range setting
11
Figure 3.4 Current input characteristic in hig h r esoluti on mode
4
Digital output value
0 to 12000
–12000 to 12000
2
Maximum
resolution
A
1.66
1.33
A
A
1.33
3 - 7 3 - 7
3 SPECIFICATIONS
MELSEC-Q
POINT
(1) Set within the analog input range and digital output range for each input range.
If these ranges are exceeded, the maximum resolution and accuracy may not
fall within the performance specifications. (Avoid using the dotted line area
shown in Figures 3.3 and 3.4.)
(2) Do not input an analog input current of more than ± 30 mA. A breakdown may
result due to overheating.
(3) 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) } > A
<Value of A>
Normal resolution modeHigh resolution mode
5.5 mA16.0 mA
(4) 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.
Analog input range
setting
4 to 20 mA
0 to 20 mA
User range setting–4096
Normal resolution modeHigh resolution mode
MinimumMaximumMinimumMaximum
–96–28812287
4095
–1228812287
3 - 8 3 - 8
3 SPECIFICATIONS
3.1.3 Accuracy
Accuracy is represented with respect to the maximum digital output value.
Accuracy does not change and remains within the range listed in the performance
specification even if the input characteristic is changed by changing offset/gain
settings, input range and resolution mode.
Figure 3.5 shows the range of flu ctu at io n in accu ra cy when a - 1 0 to 10V ra n ge is
selected and in normal resolution mode. Accuracy is ± 0.1% (± 4 digits) when the
ambient temperature is 25 ± 5°C, ± 0.3% (± 12 digits) when the ambient temperature is
0 to 55 °C with temperature drift compensation, and ± 0.4% (± 16 digits) when the
ambient temperature is 0 to 55 °C without temperature drift compensation.
MELSEC-Q
4000
Fluctuation range
0
Digital output value
–4000
–10 V0 V10 V
Analog input value
Figure 3.5 Accuracy
3 - 9 3 - 9
3 SPECIFICATIONS
MELSEC-Q
3.2 Function List
Table 3.2 shows the function list of the A/D converter modules.
Table 3.2 Function list
ItemFunctionReference section
A/D conversion enable/
disable setting
A/D conversion method
Maximum and minimum
values hold function
Temperature drift
compensation function
Resolution mode
Online module change(1) A module change is made without the system being stopped.Chapter 7
(1) Specifies whether to enable or disable the A/D conversion for each channel.
(2) By disabling the conversion for the channels that are not used, the
sampling time can be shortened.
(1) Sampling processing
The A/D conversion for analog input values is performed successively for
each channel, and the digital output value is output upon each conversion.
(2) Averaging processing
For each channel, A/D conversion values are averaged for the set number of
times or set amount of time, and the average value is output as a digital value.
(1) The maximum and minimum values of the digital out put values is retained
in the module.
(1) Errors arising from changes in the ambient temperature of the module are
automatically compensated for to improve conversion acc uracy .
(2) The temperature drift compensation function can be performed at (A/D
conversion time for all channels) + 160
(1) The resolution mode can be switched according to the application, and digital-
value resolution settings of 1/4000, 1/12000 or 1/16000 can be selected.
(2) The resolution mode setting is applicable to all channel s.
(3) See Section 3.1.1 for the digital output values and maximum resolution in
normal resolution mode and high resolution mode.
s.
Section 3.4.2
Section 3.2.1
Section 3.2.2
——
Section 3.1.1
Section 4.5
3.2.1 A/D conversion methods
There are two A/D conversion methods, sampling processing and averaging processing.
(1) Sampling processing
A/D conversion is performed successively for the analog input value, and the
converted digital output values are stored in the buffer memory.
The sampling processing time depends on the number of channels used (the
number of channels set to A/D conversion enable) and whether the temperature
drift compensation function is available.
(a) Without the temperature drift compensation function
(Processing time) = (Number of channels u sed)
(b) With the temperature drift compensation function
(Processing time) = (Number of channels used)
[Example]
When three channels (channels 1, 2 and 4) are A/D conve r sion e nabl ed w i th th e
temperature drift co mpensati on fun ction, the sampling p rocessi ng time i s 400
(2) Averaging processing
For channels for which averaging processing is specified, A/D conversion is
performed for the set number of times or the set amount of time. The average
value is calculated from the sum of values excluding the maximum and minimum
values, and then stored in the buffer memory.
3
80 + 160 = 400 ( s)
80 ( s/1 channel)
80 ( s/1 channel) + 160 s
s.
3 - 10 3 - 10
3 SPECIFICATIONS
MELSEC-Q
(a) When averaging processing is specified for the set amount of time
1) The number of processing repetitions within the set time differs
according to the number of channels used (number of channels for
which A/D conversion is enabled) and whether or not temperature-drift
compensation is used.
• Without the temperature drift compensation function
(Number of
processing repetitions)
=
(Number of channels used) 80 ( s/1 channel)
• With the temperature drift compensation function
(Number of
processing repetitions)
=
(Number of channels used)
[Example]
When averaging processing is performed with four channels (channels 1, 2,
3, and 4) for the set time of 50 ms with the temperature drift compensation
function on, measurement is performed 104 times and the average value is
output.
50 1000
(4
80) + 160
= 104.17 (times)
(Set time) 1000
(Set time) 1000
80 ( s/1 channel) + 160
……
Round down the number.
2) When 7 or 8 channels are used with the temperature drift compensation
function on, set the average time to 3 ms or more.
If the time is set to 2 ms or less, the average number of times becomes
less than 3 and it causes the digital output value to become 0 since a
sum excluding the maximum and minimum values will be averaged.
(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.
1) Without the temperature drift compensation function
(Processing time) = (Set number of times)
{(Number of channels used) 80}/1000
(Unit: ms)
2) With the temperature drift compensation function
(Processing time) = (Set number of times)
[{(Number of channels used) 80} + 160]/1000
(Unit: ms)
[Example]
When averaging processing is performed with four channels (1, 2, 3 and 4)
for the set number of 100 times with temperature-drift compensation on, an
average value is ou tp ut eve ry 48 ms.
100
{(4 80) + 160} ÷ 1000 = 48 (ms)
3 - 11 3 - 11
3 SPECIFICATIONS
3.2.2 Maximum and minimum values hold function
(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.
3.3 I/O Signals for the PLC CPU
3.3.1 List of I/O signals
Table 3.3 show s a list of t he I/ O si gn al s fo r th e A/ D co nv ert e r modul e s.
Note that I/O numbers (X/Y) shown in this chapter and thereafter are the values when
the start I/O number for the A/D converter module is set to 0.
MELSEC-Q
Table 3.3 List of I/O signal
Signal direction CPU A/D converter moduleSignal direction CPU A/D converter module
Dev ic e N o . ( I np ut )Signal nameDevice No . (O ut p ut )Signal name
X0Module READYY0
X1Temperature drift compensation flagY1
X2Y2
X3Y3
X4Y4
X5Y5
X6Y6
X7Y7
X8
X9High r es ol u ti on m od e st at u s f la gY9Operating condition setting request
XAOffset/gain setting mode flagY AUser range write request
XBChannel change completed flagYBChannel change request
XC
XD
XEA/D conversion completed flagYE
XFError flagYFError clear request
Maximum value/minimum value reset
Use prohibited
Use prohibited
completed flag
1
Y8
1
YC
YD
Maximum value/minimum value reset
Use prohibited
Use prohibited
request
Use prohibited
1
1
1
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 converter module cannot be guaranteed.
3 - 12 3 - 12
3 SPECIFICATIONS
A
3.3.2 Details of I/O signals
I/O signals for the A/D converter modules are explained in detail below.
(1) Input signals
Device No.Signal NameDescription
(1) When the PLC CPU is powered on or reset, this signal turns on once the
preparation for A/D conversion has been completed, and A/D co nversion
processing is then performed.
X0M odule R EADY
X1
X8
X9
Temperature drift
compensation flag
High resolution
mode status flag
Operating
condition setting
completed flag
(2) When the Module READY signal is off, A/D conversion processing is not perfor med.
Module READY (X0) turns off in the following situations:
• During offset/gain setting mode
• When the A/D converter module has a watchdog timer error
(1) When A/D conversion processing is being performed with the temperature drift
compensation function on, the flag indicating temperature drift co mpen sation status
(X1) turns ON.
(1) This turns ON when in high resolution mode.
(1) This is used as an interlock condition for turning the operating condition setting
request (Y9) ON/OFF when the setting for A/D conversion enable/dis able (buffer
memory address 0: Un\G0) is changed.
(2) When the operating condition setting completed flag (X9) is O FF, A/D conv ersion
processing is not performed. Under the following conditions, the operating conditio n
setting completed flag (X9) turns OFF.
• When Module READY (X0) is OFF
• When operating condition setting request (Y9) is ON
Performed by the A/D converter module
Performed by the sequence program
Module READY (X0)
MELSEC-Q
1
Operating condition
setting completed (X9)
Operating condition
change request (Y9)
/D conversion
completed (XE)
1 A watchdog timer error occurs when the program calculations are not completed
within the scheduled time due to malfunctions of A/D converter module hardware.
When a watchdog timer error occurs, the RUN LED for the A/D converter module
turns off.
3 - 13 3 - 13
3 SPECIFICATIONS
Device No.Signal NameDescription
[In offset/gain setting mode]
(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 settin gs hav e
been completed.
(2) See Section 4.6 regarding the offset/gain settings.
Performed by the A/D converter module
Module READY (X0)
Offset/gain setting mode flag (XA)
OFF
Performed by the sequence program
MELSEC-Q
XA
Offset/gain setting
mode flag
User range write request (YA)
[In normal mode]
(1) This signal is used as an interlock condition to turn ON /OFF the U ser range w riting
request (YA) when the user range is restored.
(2) Refer to Chapter 7 for the user range restoration.
Performed by the A/D converter module
Performed by the sequence program
Module READY (X0)
Offset/gain setting mode flag (XA)
User range writing request (YA)
ON
3 - 14 3 - 14
3 SPECIFICATIONS
Device No.Signal nameDescription
(1) This is used as an interlock condition for setting the cha nnel cha nge reque st (Y B) to
ON/OFF when changing the channel for which the offset/gain settings are to be
performed.
(2) See Section 4.6 regarding the offset/gain settings.
Performed by the A/D converter module
Performed by t he sequence program
Performed by the A/D converter module
Performed by the sequence program
XB
XD
Channel change
completed flag
Maximum
value/minimum
value reset
completed flag
Offset/gain setting mode
Offset/gain s pecifications
(buffer memory addresses 22 and 23:
Un\G22 and Un\G23)
Channel change completed
flag (XB)
Channel change request (YB)
(1) This turns ON when the maximum and minimum values stored in buffer memory
addresses 30 to 45 (Un\G30 to Un\G45) are reset by setting the maximum
value/minimum value reset request (YD) to ON.
Maximum and minimum values
storage area
(buffer memory addresses 30 to 45:
Un\G30 to Un\G45)
Maximum value / m inimum value
reset request (YD)
MELSEC-Q
XE
A/D conversion
completed flag
XFError flag
Maximum value / m inimum value
reset completed flag (XD)
(1) This turns ON when conversion for all of the channels that are conv ersion enabl ed
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.
Performed by the A/D converter module
Performed by the sequence program
Error flag (XF)
Error clear request (YF)
The error code is read during this interval.
3 - 15 3 - 15
3 SPECIFICATIONS
)
(2) Output signals
Device No.Signal nameDescription
Operating
Y9
YA
YB
YD
YFError clear request
condition setting
request
User range write
request
Channel change
request
Maximum value/
minimum value
reset request
(1) This turns ON when A/D conversion is enabled/disabled, or w hen av eraging
processing specification, the settings for the average time or num b er of times (when
averaging processing is specified) is enabled.
(2) See the X9 column for ON/OFF timing.
[In offset/gain setting mode]
(1) This turns ON when the value for the adjusted offset/gain settings are registere d in
the A/D converter module.
(2) See the XA column for ON/OFF timing.
See Section 4.6 for offset/gain settings.
[In normal mode]
(1) This signal turns ON when the user range is restored.
(2) Refer to the field of XA for the ON/OFF timing.
Refer to Chapter 7 for user range restoration.
(1) This turns ON when changing the channel for which offset/gain sett ings are to be
performed.
(2) See the XB column for ON/OFF timing.
See Section 4.6 for offset/gain settings.
(1) The maximum and minimum values stored in buffer memory addresse s 30 to 45
(Un\G30 to Un\G45) are cleared by setting the maximum and mini mum v alue reset
request (YD) to ON.
(2) See the XD column for ON/OFF timing.
(1) This turns ON when a write error is cleared.
(2) See the XF column for ON/OFF timing.
MELSEC-Q
POINT
When the User range writing request (YA) is turned ON in the normal mode with
A/D conversion enabled, the A/D converter module restores the user range.
Offset/gain setting mode flag (XA)
User range writing request (YA)
User range restoration processing
A/D conversion completed flag
(Buffer memory address 10: Un\G10)
Digital output value
(Buffer memory addresses 11 to 18:
Un\G11 to 18
During user range restoration: A/D conversion stop, A/D conversion completed flag
(buffer memory addresses 10: Un\G10) OFF, digital
output value held as previously
After user range restoration: A/D conversion resumed (when user range setting is
used, A/D conversion is resumed at the restored
offset/gai n sett in g val ue . )
During restoration
Restoration
completed
3 - 16 3 - 16
3 SPECIFICATIONS
MELSEC-Q
3.4 Buffer Memory
The detailed explanation of the buffer memory in Section 3.4.4 and later is based on
the 8-channel an al og inp ut (CH . 1 to CH. 8 ) Q6 8A DV/ Q6 8AD I.
3.4.1 Buffer memory assignment ( Q64AD )
This section describes the assignment of the Q64AD buffer memory.
1CH1 Average time/average number of timesR/WtotoSystem area—
2CH2 Average time/average number of timesR/W9D
3 H3CH3 Average time/average number of timesR/W9E H158R/W
4 H4CH4 Average time/average number of timesR/W9F H159
5 H5A0 H160
totoSyste m a re a—totoSystem area—
8 H8C7 H199
H
9
9Averaging process settingR/WC8
A H10A/D conversion completed flagRC9 H201System area—
B H11CH1 Digital output valueRCA H202
H
C
H
D
H
E
H
F
12CH2 Digital output valueRCB
13CH3 Digital output valueRCC
14CH4 Digital output valueRCD
15CE
totoSystem area—CF
H
12
H
13
18D0
19Error codeRD1
14 H20Setting range (CH1 to CH4)RD2 H210
15 H21System area—D3 H211
29D8
1E H30CH1 Maximum valueR/WD9 H217
1F H31CH1 Minimum valueR/W
H
20
H
21
H
22
H
23
H
24
H
25
32CH2 Maximum valueR/W
33CH2 Minimum valueR/W
34CH3 Maximum valueR/W
35CH3 Minimum valueR/W
36CH4 Maximum valueR/W
37CH4 Minimum valueR/W
1 Indicates whether reading and writing to/from a sequence program are enabled.
R : Read enabled
W : Write enabled
2 Areas used to restore the user range settings offset/gain values when online
module change is made.
Refer to chapter 7 for details of online module change.
R/W
1
Hexadecimal Decimal
Description
H
157
Mode switch in g se t ti ng
H
200
Pass data classification setting
2
CH1 Industrial sh ip ment set t ing s o ff set va l ue
H
H
H
H
H
H
H
CH1 Industrial shipment settings gain value
203
CH2 Industrial sh ip ment set t ing s o ff set va l ue
204
CH2 Industrial shipment settings gain value
205
CH3 Industrial sh ip ment set t ing s o ff set va l ue
206
CH3 Industrial shipment settings gain value
207
CH4 Industrial sh ip ment set t ing s o ff set va l ue
208
CH4 Industrial shipment settings gain value
209
CH1 User range settings offset value
CH1 User range settings gain value
H
212
CH2 User range settings offset value
CH2 User range settings gain value
H
214
CH3 User range settings offset value
CH3 User range settings gain value
H
216
CH4 User range settings offset value
CH4 User range settings gain value
R/W
1
R/W
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
3 - 17 3 - 17
3 SPECIFICATIONS
MELSEC-Q
3.4.2 Buffer memory assignment ( Q68AD V)
This section describes the assignment of the Q68ADV buffer memory.
Table 3.5 Buffer memory assignment ( Q68AD V)
AddressAddress
Hexadecimal Decimal
H
0
0A/D conversion enable/disable settingR/W2E
Description
1 H1CH1 Average time/average number of timesR/WtotoSystem area—
2 H2CH2 Average time/average number of timesR/W9D H157
3 H3CH3 Average time/average number of timesR/W9E H158R/W
4 H4CH4 Average time/average number of timesR/W9F H159
5 H5CH5 Average time/average nu mber of ti mesR/WA0 H160
6 H6CH6 Average time/average nu mber of ti mesR/WtotoSystem area—
H
7
H
8
7CH7 Average time/average number of timesR/WC9
8CH8 Average time/average number of timesR/WCA
9 H9Averaging process settingR/WCB H203CH1 Industrial shipment settings gain value2R/W
A H10A/D conversion completed flagRCC H204CH2 Industrial shipment set ting s o ff set va lu e2R/W
H
B
H
C
11CH1 Digital output valueRCD
12CH2 Digital output valueRCE
D H13CH3 Digital output valueRCF H207CH3 Industrial shipment settings gain value2R/W
H
E
H
F
14CH4 Digital output valueRD0
15CH5 Digital output valueRD1
10 H16CH6 Digital output valueRD2 H210CH5 Industrial sh ipmen t sett ing s o ff set va lue2R/W
11 H17CH7 Digital output valueRD3 H211CH5 Industrial shipment settings gain value2R/W
H
12
18CH8 Digital output valueRD4
13 H19Error codeRD5 H213CH6 Industrial shipment settings gain value2R/W
H
14
H
15
20Setting range (CH1 to CH4)RD6
21Setting range (CH5 to CH8)RD7
16 H22Offset/gain setting mode Offset specificationR/WD8 H216CH8 Industria l sh ipmen t sett ing s o ff set va lue2R/W
H
17
H
18
23Offset/gain setting mode Gain specificationR/WD9
24DA
totoSystem area—DB
H
1D
1E
1F
H
H
29DC
30CH1 Maximum valueR/WDD
31CH1 Minimum valueR/WDE
20 H32CH2 Maximum valueR/WDF H223CH3 User range settings gain value
21 H33CH2 Minimum valueR/WE0 H224CH4 User range settings offset value
H
22
H
23
34CH3 Maximum valueR/WE1
35CH3 Minimum valueR/WE2
24 H36CH4 Maximum valueR/WE3 H227CH5 User range settings gain value
H
25
26
27
28
29
2A
2B
2C
2D
H
H
H
H
H
H
H
H
37CH4 Minimum valueR/WE4
38CH5 Maximum valueR/WE5
39CH5 Minimum valueR/WE6
40CH6 Maximum valueR/WE7
41CH6 Minimum valueR/WE8
42CH7 Maximum valueR/WE9
43CH7 Minimum valueR/W
44CH8 Maximum valueR/W
45CH8 Minimum valueR/W
1 Indicates whether reading and writing to/from a sequence program are enabled.
R : Read enabled
W : Write enabled
2 Areas used to restore the user range settings offset/gain values when online
module change is made.
Refer to chapter 7 for details of online module change.
3 - 18 3 - 18
R/W
1
Hexadecimal Decimal
Description
H
46
Mode switch in g se t ti ng
H
201
H
202CH1 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
205CH2 Industrial shipment settings gain value2R/W
H
206CH3 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
208CH4 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
209CH4 Industrial shipment settings gain value2R/W
H
212CH6 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
214CH7 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
215CH7 Industrial shipment settings gain value2R/W
H
217CH8 Industrial shipment settings gain value2R/W
H
218CH1 User range settings offset value
H
219CH1 User range settings gain value
H
220CH2 User range settings offset value
H
221CH2 User range settings gain value
H
222CH3 User range settings offset value
H
225CH4 User range settings gain value
H
226CH5 User range settings offset value
H
228CH6 User range settings offset value
H
229CH6 User range settings gain value
H
230CH7 User range settings offset value
H
231CH7 User range settings gain value
H
232CH8 User range settings offset value
H
233CH8 User range settings gain value
R/W
1
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
3 SPECIFICATIONS
MELSEC-Q
3.4.3 Buffer memory assignment ( Q68AD I)
This section describes the assignment of the Q68ADI buffer memory.
Table 3.6 Buffer memory assignment ( Q68AD I)
AddressAddress
Hexadecimal Decimal
H
0
0A/D conversion enable/disable settingR/W2E
Description
1 H1CH1 Average time/average number of timesR/WtotoSystem area—
2 H2CH2 Average time/average number of timesR/W9D H157
3 H3CH3 Average time/average number of timesR/W9E H158R/W
4 H4CH4 Average time/average number of timesR/W9F H159
5 H5CH5 Average time/average nu mber of ti mesR/WA0 H160
6 H6CH6 Average time/average nu mber of ti mesR/WtotoSystem area—
H
7
H
8
7CH7 Average time/average number of timesR/WC9
8CH8 Average time/average number of timesR/WCA
9 H9Averaging process settingR/WCB H203CH1 Industrial shipment settings gain value2R/W
A H10A/D conversion completed flagRCC H204CH2 Industrial shipment set ting s o ff set va lu e2R/W
H
B
H
C
11CH1 Digital output valueRCD
12CH2 Digital output valueRCE
D H13CH3 Digital output valueRCF H207CH3 Industrial shipment settings gain value2R/W
H
E
H
F
14CH4 Digital output valueRD0
15CH5 Digital output valueRD1
10 H16CH6 Digital output valueRD2 H210CH5 Industrial sh ipmen t sett ing s o ff set va lue2R/W
11 H17CH7 Digital output valueRD3 H211CH5 Industrial shipment settings gain value2R/W
H
12
18CH8 Digital output valueRD4
13 H19Error codeRD5 H213CH6 Industrial shipment settings gain value2R/W
H
14
H
15
20Setting range (CH1 to CH4)RD6
21Setting range (CH5 to CH8)RD7
16 H22Offset/gain setting mode Offset specificationR/WD8 H216CH8 Industria l sh ipmen t sett ing s o ff set va lue2R/W
H
17
H
18
23Offset/gain setting mode Gain specificationR/WD9
24DA
totoSystem area—DB
H
1D
1E
1F
H
H
29DC
30CH1 Maximum valueR/WDD
31CH1 Minimum valueR/WDE
20 H32CH2 Maximum valueR/WDF H223CH3 User range settings gain value
21 H33CH2 Minimum valueR/WE0 H224CH4 User range settings offset value
H
22
H
23
34CH3 Maximum valueR/WE1
35CH3 Minimum valueR/WE2
24 H36CH4 Maximum valueR/WE3 H227CH5 User range settings gain value
H
25
26
27
28
29
2A
2B
2C
2D
H
H
H
H
H
H
H
H
37CH4 Minimum valueR/WE4
38CH5 Maximum valueR/WE5
39CH5 Minimum valueR/WE6
40CH6 Maximum valueR/WE7
41CH6 Minimum valueR/WE8
42CH7 Maximum valueR/WE9
43CH7 Minimum valueR/W
44CH8 Maximum valueR/W
45CH8 Minimum valueR/W
1 Indicates whether reading and writing to/from a sequence program are enabled.
R : Read enabled
W : Write enabled
2 Areas used to restore the user range settings offset/gain values when online
module change is made.
Refer to chapter 7 for details of online module change.
3 - 19 3 - 19
R/W
1
Hexadecimal Decimal
Description
H
46
Mode switch in g se t ti ng
H
201
H
202CH1 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
205CH2 Industrial shipment settings gain value2R/W
H
206CH3 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
208CH4 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
209CH4 Industrial shipment settings gain value2R/W
H
212CH6 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
214CH7 Industrial sh ip ment set t ing s o ffset va l ue2R/W
H
215CH7 Industrial shipment settings gain value2R/W
H
217CH8 Industrial shipment settings gain value2R/W
H
218CH1 User range settings offset value
H
219CH1 User range settings gain value
H
220CH2 User range settings offset value
H
221CH2 User range settings gain value
H
222CH3 User range settings offset value
H
225CH4 User range settings gain value
H
226CH5 User range settings offset value
H
228CH6 User range settings offset value
H
229CH6 User range settings gain value
H
230CH7 User range settings offset value
H
231CH7 User range settings gain value
H
232CH8 User range settings offset value
H
233CH8 User range settings gain value
R/W
1
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
2
R/W
3 SPECIFICATIONS
3.4.4 A/D conversion enable/disable setting ( buffer memor y addr ess 0: U n\G0)
(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.)
(3) By default, A/D conv e rsion is en abl ed fo r all ch an ne l s.
(4) In the case of the Q64AD module, b4 to b7 (CH5 to CH8) become invalid.
b15 b14 b13 b12 b11 b10 b9b8b7b6b5b4b3b2b1b0
MELSEC-Q
00000000
For the Q64AD, information for b4 to b15 is fixed at 0,and
for the Q68ADV (I), information for b8 to b15 is fixed at 0.
Time/number of times specification
1 : Average time
0 : Average number of times
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 5342
3.4.7 A/D conversion completed flag ( buffer memor y 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.
b15 b14 b13 b12 b11 b10 b9b8b7b6b5b4b3b2b1b0
CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
00000000
MELSEC-Q
For the Q64AD, information for b4 to b15 is fixed at 0,
and for the Q68AD, information for b8 to b15 is fixed at 0.
1 : A/D conversion completed
0 : A/D conversion in
progress or not used
Example
When A/D conversion is enabled for channels 1, 2 and 6 and all conversions for these channels are
H
complete, 0023
(35) is stored in buffer-memory address 10 (Un\G10).
b15 b14 b13 b12 b11 b10 b9b8b7b6b5b4b3b2b1b0
0000000010001100
CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
3200
0023
(35)
H
3.4.8 Digital output values (buffer memor y addresses 11 to 18: Un\G11 to Un\G18)
(1) The digital ou tp ut valu e s aft e r A/D conversion are st ored i n the bu ffe r me mory
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.
(1) These areas are used to confirm the setting ranges of the A/D converter 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.
MELSEC-Q
Un\G20
Un\G21
b15 to b12
CH4
CH8
b11 to b8
CH3
CH7
b7 to b4
CH2
CH6
b3 to b0
CH1
CH5
The setting values are as follows.
Input rangeSetting value
4 to 20 (mA)0
0 to 20 (mA)1
1 to 5 (V)2
0 to 5 (V)3
–10 to 10 (V)4
0 to 10 (V)5
User range settingF
H
H
H
H
H
H
H
(3) Default setting is 0.
When the setting for Q68ADV is 0, the analog input range operates between 0 to
10V.
(When the setting is 5
, the analog inpu t r an ge wil l be th e sa me a s above.)
H
3 - 23 3 - 23
3 SPECIFICATIONS
MELSEC-Q
3.4.11 Offset/gain setting mode (buffer memor y addr esses 22, 23: U n\G22, Un\G23)
(1) Specifies the channel to be adjusted for the offset/gain settings.
(2) The channel for which the offset is to be adjusted is specified in buffer memory
address 22 (Un\ G22 ) and t h e chan ne l fo r wh i ch th e ga in i s to be adju st ed is
specified in buffer memory address 23 (Un\G23).
(3) Although it is po ssi bl e t o se t mul tiple channels at the sa me t i me, set th e o ffse t a n d
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.
(4) For Q64AD, b4 to b7 (information for CH5 to CH8) are invalid.
(5) See Section 4.6 for the details of the offset/gain settings.
b15 b14 b13 b12 b11 b10 b9b8b7b6b5b4b3b2b1b0
Un\G22 (Offset specification)
0000000000000000CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
Un\G23 (Gain specification)
CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
1 : Channel to be set
0 : Invalid
3.4.12 Maximum and minimum v al ues stor ag e ar ea ( buffer memor y 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
maxi mum and minimum values res e t request (Y D) is set to O N .
(3) The maximum and minimum values are stored for each sample processing time
(measurement), even with channels for which averaging processing is specified.
(1)Set the values of the mode to which you want to switch.
(2)After setting the values, turning the operation condition setting request (Y9) from
OFF to ON switches to that mode.
(3)When mode switching is performed, this area is cleared to zero and the operating
condition setting completed flag (X9) turns OFF.
After confirming that the operating condition setting completed flag (X9) has
turned OFF, turn OFF the operation condition setting request (Y9).
If the values written are other than the above, mode switching is not performed and
only the operating condition is changed.
3.4.14 Pass data classification setting (buffer memory addr esses 200: U n\G200) ( Q64AD
only)
(1)Areas used to restore the user range settings offset/gain values when online
module change is made.
Refer to chapter 7 for details of online module change.
(2)Specify whether the offset/gain values to be saved/restored are voltages or
currents when saving/restoring the offset/gain values of the user range setting.
b15 b14 b13 b12 b11 b10 b9b8
b7
b6
b4b3b2b1b0
b5
00000000
Data in b4 to b15 are fixed to 0.1: Current specified
0000
CH4 CH3 CH2 CH1
0: Voltage specified
POINT
Refer to Section 4.6 for the offset/gain value setting method.
3 - 25 3 - 25
3 SPECIFICATIONS
3.4.15 Industrial shipment settings and user range settings offset/gain values
(buffer memory addresses 202 to 233: Un\G202 t o Un\G233)
(1)Areas used to restore the user range settings offset/gain values when online
module change is made.
Refer to chapter 7 for details of online module change.
(2)When the offset/gain values of the user range setting are restored, the used data
are stored.
The data are stored (saved) when:
• Initial setting write is performed by the utility;
• The operating condition is set (Y9 turns from OFF to ON
• The offset/gain values are written in the offset/gain setting mode (YA turns from
OFF to ON).
1: The data are not saved when values have been written to the mode
switching setting area (buffer memory addresses 158, 159: Un\G158,
Un\G159).
1); or
MELSEC-Q
(3)When restoring the offset/gain values of the user range setting, set the data
saved here similarly into the corresponding area of the module where the data
will be restored.
(4)Buffer memory saving recording procedure for online module change
1) Set the pass data classification setting
Un\G200).
2) Turn the operation condition setting request (Y9) from OFF to ON.
3) Compare the offset/gain values of the industrial shipment settings and user
range settings (buffer memory addresses 202 to 233: Un\G202 to Un\G233)
with the range reference values. Refer to Section 7.4 for the range reference
values.
4) If the values are proper, record the offset/gain values of the pass data
classification set ting
: The Q68ADV/Q68ADI does not require the setting and recording of the
pass data classification setting.
, industrial shipment settings and user range settings.
(buffer memory addresses 200:
POINT
Refer to Section 4.6 for the offset/gain value setting method.
3 - 26 3 - 26
4 SETUP AND PROCEDURES BEFORE OPERATION
4 SETUP AND PROCEDURES BEFORE OPERATION
4.1 Handling Precautions
(1) Do not drop the module or subject it to heavy impact.
(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
remove the film to provide adequate ventilation.
MELSEC-Q
4
(5) Tighten the terminal screws using torque within the following ranges. Loose
screws may cause short circuits, mechanical failures or malfunctions.
Screw locationClamping 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 screw s)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 - 1
4 SETUP AND PROCEDURES BEFORE OPERATION
4.2 Setup and Procedures before Operation
Start
Module mounting
Mount the A/D conversion module in the specified
slot.
Wiring
Wire external devices to the A/D conversion module.
Intelligent function module switch settings
Perform settings using GX Developer
4
(see Section 4.5).
Use user range settings?
MELSEC-Q
Use industrial shipment
settings.
Use user range settings
Offset/gain setting
If user range settings are used, perform the
offset and gain settings (see Section 4.6).
Use the utility pac kage?
YES
Initial setting and automatic refresh setting
The program can be sim plified if the utility
package is used for setting (see Chapter 5).
Programming and debugging
Create and check the sequence program.
NO
4 - 2 4 - 2
4 SETUP AND PROCEDURES BEFORE OPERATION
4.3 Part Identification Nomenclature
The name of each part of the A/D converter module is listed below.
MELSEC-Q
Q64AD
1)
Q64AD
RUN
ERROR
2)
1
2
3
I+
4
5
6
I+
7
8
9
10
I+
11
12
13
14
I+
15
16
17
18
C
H
1
SLD
C
H
2
SLD
C
H
3
SLD
C
H
4
SLD
(FG)
A/D
0-±10V
0-20mA
V+
V-
V+
V-
V+
V-
V+
V-
A.G.
1)
2)
Q68ADV
C
H
1
C
H
2
C
H
3
C
H
4
C
H
V-
5
C
H
6
C
H
V-
7
C
H
8
(FG)
A/D
0-±10V
V+
V-
V+
V-
V+
V-
V+
V-
V+
V+
V-
V+
V+
V-
A.G.
Q68ADV
RUN
ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Q68ADI
1)
Q68ADI
RUN
ERROR
2)
1
I+
C
H
1
C
H
2
C
H
3
C
H
4
C
H
5
C
H
6
C
H
7
C
H
8
(FG)
A/D
0-20mA
I-
I-
I-
I-
I-
I-
I-
I-
A.G.
2
3
I+
4
I+
5
6
I+
7
8
I+
9
10
I+
11
12
I+
13
14
I+
15
16
17
18
Number
Name and
appearance
Description
1)RUN LEDDisplays the operating status of the A/D converter module.
On : Normal operation
Flashing : During offset/gain setting mode
Off : 5V power switched off, watchdog timer error occurred, or
online module change enabled
2)ERROR LED Displays the error status of the A/D converter 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".
The wiring precautions and examples of module connection are provided below.
4.4.1 Wiring precautions
In order to optimize the functions of the A/D converter 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 the AC control circuit and the external input signals of the
Q64AD/Q68ADV(I) to avoid the influence of the AC side surges and inductions.
(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.
MELSEC-Q
(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 - 5
4 SETUP AND PROCEDURES BEFORE OPERATION
4.4.2 External wiring
(1) Q64AD
(a) For voltage input
Signal source 0 to ± 10 V
GND
1 Shielded
(b) For current input
Signal source 0 to ± 20 mA
3
GND
1 Shielded
V +
I +
V –
SLD
V +
I +
V –
SLD
A.G.
FG
2
250
MELSEC-Q
+ 15 V
500 k
500 k
2
500 k
500 k
4
ANALOG GND
– 15 V
+ 15 V
– 15 V
5
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 - 6
4 SETUP AND PROCEDURES BEFORE OPERATION
(2) Q68ADV
MELSEC-Q
GND
1 Shielded
2
ANALOG
3
500 k
500 k
V +
V –
A.G.
FG
4
+ 15 V
– 15 V
GND
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
GND
1 Shielded
2 250
I +
I –
A.G.
FG
4
500 k
500 k
ANALOG GND
3
+ 15 V
– 15 V
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".
4 Always use a ground. In addition, ground the FB of the power supply module.
4 - 7 4 - 7
4 SETUP AND PROCEDURES BEFORE OPERATION
4.5 Switch Setting for Intelligent Function M odule
The settings for the intelligent function module are performed using the I/O assignment
settings for GX Developer.
(1) Setting item
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.
Table 4.1 Switch setting item
Input range setting
Analog input rangeInput range setting value
Switch 1
CH4CH3CH2CH1
Input range setting
Switch 2
CH8CH7CH6CH5
H
H
User range settingF
Setting item
4 to 20 mA
0 to 20 mA1
1 to 5 V2
0 to 5 V3
– 10 to 10 V4
0 to 10 V5
MELSEC-Q
1
H
0
H
H
H
H
H
H
Switch 3Not used
H
Switch 4
00
01 to FFH (numeric
value other than 00
0
H
(numeric
1 to F
H
value other than 0
0
H
1 to FH (numeric
value other than 0
H
: Normal resolution mode
)*
: High resolution mode
H
: Normal mode (A/D conversion processing)
)*
: Offset/gain setting mode
H
: With temperature drift correction
)*
: Without temperature drift correction
H
Switch 50 : Fixed
Setting any value wit hi n th e set ti ng rang e wi ll pr ovi de th e sa me op e rat ion .
When the setting range is 1 to F
, set 1 for example.
H
Depending on the type of module used, the settings for A/D unit input range are shown
below.
• Q64AD
• Q68ADV · · · · ·0H, 2H to 5H, F
· · · · · ·0H to 5H, F
H
H
1 When the setting is 0H, the input ope rating range will b e 0 t o 10 V .
• Q68ADI · · · · · ·0
H, 1H
, F
H
4 - 8 4 - 8
4 SETUP AND PROCEDURES BEFORE OPERATION
POINT
(1) If the offset/gain setting mode is set using intelligent function module switch 4,
other settings by switch 4 (settings for resolution mode and temperature drift
compensation) will be ignored.
(2) Setting of the offset/gain setting mode differs from function version A to
function version B. (Refer to Appendix 1.3)
Perform the offset/gain settings after checking the RUN LED flashes in
offset/gain setting mode. If the RUN LED does not flash, check to see if the
switch 4 setting is correct.
(3) Since the digital output value will differ considerably, depending on the
resolution mode setting, thoroughly check the settings for the intelligent
function module switches before performing the digital output processing.
Example) Digital output value when the setting range is -10 to 10 V and a 10 V
analog value is added.
In normal resolution modeIn high resolution mode
Digital output valueApproximately 4000Approximately 16000
MELSEC-Q
(2) Operating procedure
Start the settings with GX Developer I/O assignment setting screen.
(a) I/O assignment setting screen
Set the follow in g fo r th e slot in w hi ch th e A/ D
converter module is mounted.
The type setting is required; set other items as
needed.
Type : Select "intelli."
Model name : Enter the module model name.
Points : Select 16 points.
Start XY : Enter the start I/O number for the
A/D converter module.
Detail setting: Specify the control PLC for the
A/D converter module.
It is unnecessary to set the "Error
time output mode" or "H/W error
time PLC operation mode" since
these settings are invalid for the
A/D converter module.
(b) Switch setting for intelligent function module
screen
Click on [Switch setting] on the I/O assignment
setting screen to di spl ay the scree n show n at
left, then set switches 1 to 5.
The switches can easily be set if values are
entered in hexadecimal. Change the entry
format to hexadecimal and then enter the
values.
4 - 9 4 - 9
4 SETUP AND PROCEDURES BEFORE OPERATION
4.6 Offset/Gain Settings
When the user range setting is used, perform the offset and gain settings according to
the following procedure.
When the industrial shipment setting is used, offset/gain setting is not necessary.
If the utility package is installed, perform the offset/gain settings according to the
procedure described in Section 5.6.2.
(1) Offset/gain setting procedure
Start
2)
Switch to the offset/gain
setting mode.
1
Set the channel change
request (YB) to ON.
MELSEC-Q
Verify that the mode is set
to offset/gain setting and
the RUN LED is flashing.
1)
Add the voltage or current
that will be the of fs e t v alu e .
Set the offset setting
channel in buffer memory
address 22 (Un\G22).
Set buffer memory
address 23 (Un\G23) to 0.
Turn the channel change
request (YB) to ON.
Verify that the channel
change completed flag
(XB) is ON.
Set the channel change
request (YB) to OFF.
Verify that the channel
change completed flag
(XB) is ON.
Set the channel change
request (YB) to OFF.
Adjust other
channels?
NO
Set the offset/gain setting
request (YA) to ON and
perform the offset/gain
settings. Register to the
A/D converter module.
After verifying that the offset/
gain setting mode status flag
(XA) is OFF, turn YA OFF.
Verify that the offset/gain
setting mode status flag
(XA) is ON.
YES
1)
Add the voltage or current
that will be the gain value.
Set the gain setting channel
in buffer me mo r y address
23 (Un\G23). Set buffer
memory address 22
(Un\G22) to 0.
ERROR LED lit?
NO
Switch to the normal
setting mode.
1
End
YES
2)
4 - 10 4 - 10
4 SETUP AND PROCEDURES BEFORE OPERATION
1 The mode switching (normal mode to offset/gain setting mode to normal mode)
• Setting made to mode switching setting (buffer memory addresses 158, 159:
Un\G158, Un\G159) and turning the operation condition setting request (Y9) from
OFF to ON ..................................................... Refer to Section 4.6 (2), (b)
• Intelligent function module switch setting ..... Refer to Section 4.5, Section 4.6 (2), (c)
(After intelligent function module switch setting, reset the PLC CPU or switch power
OFF, then ON.)
POINT
(1) Perform the offset/gain settings in the range that satisfies the conditions
specified in Sectio n 3. 1.2 , (1 ) and (2) .
When the setting exceed s thi s range, the maxi mum resol ution or to tal accu racy
may not be withi n the range indicated in the pe rfor manc e spe cifi cation .
(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 oc cur an d th e ERRO R LE D will be li t.
(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 an d ga in values are stored into th e E
power-off.
(5) At the time of offset/gain setting, turn ON the user range write request (YA) to
write the val u e s to the E
Data can be written to the E
To prevent accidental write to the E
code (buffer memory address 19: Un\G19) will be stored if write is performed
26 consecutive times.
(6) If an error (error code: 40
correct offset/gain value.
The offset/gain value of the channel where the error has occurred is not written
to the A/D converter module. (
number.)
(7) Module Ready (X0) turns from OFF to ON when the offset/gain setting mode
switches to the normal mode by the dedicated instruction (G.OFFGAN) or the
setting of the mode switching setting (buffer memory addresses 158, 159:
Un\G158, Un\G159).
Note that initial setting processing will be executed if there is a sequence
program that makes initial setting when Module Ready (X0) turns ON.
(8) Buffer memory addresses 200 (Un \ G200 ) , 20 2 t o 233 ( U n \G202 t o Un \ G23 3 )
are the areas used to restore the user range settings offset/gain values when
online module change is made.
Refer to chapter 7 for details of online module change.
2
PROM.
2
PROM up to 100 thousand ti mes.
2
PROM, an error will occur and the error
1
) occurs during offset/gain setting, re-set the
1: indicates the corresponding channel
MELSEC-Q
2
PROM and are not erased at
(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 sele ctio n
• Offset sett in g
• Gain setting
• Channel change command
• Offset/gain setting value write command to the module
(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 A/D converter
module, and then switches to the normal mode.
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
MELSEC-Q
Stores setting of de dicated
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 change
request (YA).
Turns OFF user range change
request (YA).
Stores setting of de dicated
instruction (G.OFFGAN) into D1.
Dedicated instruction (G.OFFGAN)
Processing in normal mode
The program in the dotted area is a common program.
4 - 12 4 - 12
4 SETUP AND PROCEDURES BEFORE OPERATION
(b)When switching the mode using the setting of the mode switching setting
Turns ON operation condition
setting request (Y9 ) .
Turns OFF operation condition
setting request (Y9 )
to buffer memory
H
to buffer memory
H
Switches to normal mode
to buffer memory
H
Sets 964
address 158.
Sets 4144
address 159.
Turns ON operation condition
setting request (Y9 ) .
Turns OFF operation condition
setting request (Y9 ) .
Processing in normal mode
to buffer memory
H
(c)When switching the mode by making intelligent function module switch
setting
Only the common program is necessary.
4 - 13 4 - 13
5 UTILITY PACKAGE (GX Configur ator-AD )
5 UTILITY PACKAGE (GX Configurator-AD)
5.1 Utility Package Functions
Table 5.1 shows an overview of the utility package functions.
Table 5.1 Utility package (GX Configurator-AD) function list
ItemDescriptionReference section
(1) Sets the following items that require initial setting.
• CH A/D conversion enable/disable setting
• CH Sampling process/averaging process setting
• CH Time/number of times sp ecify ing
• CH Average time/average number of times setting
(2) The data for which initial setting has been completed is registered in
the parameters for the PLC CPU, and automatically written to the
A/D converter module when the PLC CPU changes to the RUN
status.
(1) Sets automatic refresh for the A/D converter module buffer memory.
(2) The buffer memory that was set for automatic refresh is
automatically read and written to the specified device when the
END command for the PLC CPU is executed.
(1) Monitor/test
The buffer memory and I/O signals for the A/D converter modules
are monitored and tested.
(2) Operating condition setting
Changes the A/D operating status during operation.
(3) Offset/gain setting
When setting the offset/gain to a value selected by the user (w hen
the analog output range setting is user range setting), the offset and
gain can be easily set while viewing the screen.
(4) Pass data
The pass data (pass data classification setting, indu strial s hipme nt
settings offset/gain values, user range settings offset/gain value s)
can be monitored and set.
Initial Setting
Automatic Refresh
5
Settings
Monitor/test
1
1
MELSEC-Q
Section 5.4
Section 5.5
Section 5.6
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 - 1
5 UTILITY PACKAGE (GX Configur ator-AD )
5.2 Installing and Uninstalling the Utility Package
See "Method of installing the MELSOFT Series" attached with the utility package
regarding the install and uninstall operation for the utility package.
5.2.1 User precautions
The following provides the precautions on using the GX Configurator-AD:
(1) Important safety information
Since GX Configurator-AD is add-in software for GX Developer, read "Safety
Precautions" and the basic o perating pro cedures in GX Developer's ope rating
manual.
(2) About installation
The GX Configurator-AD is an add-in package for GX Developer Version 4 or
later products. Therefore, install GX Configurator-AD in a personal computer in
which GX Developer Version 4 or a later product has been installed.
MELSEC-Q
(3) About display-screen errors whil e using the intelligent function
module utility
There may be cases in which the screen will not properly display while the
intelligent function module utility is being used, due to a lack of system resources.
If this occurs, close the intelligent function module utility first and then GX
Developer (program, comments, etc.) and other applications. Next, restart GX
Developer and the intelligent function module utility.
(4) To start the intelligent function module utility
(a) In GX Developer, select "QCPU (Q mode)" for the PLC series and specify
the project.
If something other than "Q CPU ( Q mode)" is selected for the PLC ser ies, or i f
the project is not specified, t he intell igent fu nction mod ule utility will no t start.
(b) Multiple intelligent function module utilities can be started.
However, the [Open file]/[Save file] intelligent function module's parameter
operations can only be performed by a single intelligent function module
utility. Other intelligent function module utilities can perform the [Monitor/test]
operation only.
(5) How to switch screens when two or more intel l igent function
module utilities are started
When two or more intelligent function module utility screens cannot be displayed
side by side, use the task bar to change the intelligent function module utility
screen so that it is displayed on top of other screens.
5
5 - 2 5 - 2
5 UTILITY PACKAGE (GX Configur ator-AD )
(6) About the number of parameters that ca n be set i n GX
Configurator-AD
The number of parameters that can be set by the GX Configurator for an
intelligent function module installed in the CPU module and in a remote I/O
station of the MELSECNET/H network system is limited.
For example, if multiple intelligent function modules are installed in a remote I/O
station, set the GX Configurator so that the number of parameter settings of all
the intelligent function modules does not exceed the maximum number of
parameter settings. The total number of parameter settings is calculated
separately for the initial setting and for the automatic refresh setting.
The number of parameter settings that can be set for one module in the GX
Configurator-AD is as shown below.
Object ModuleInitial settingAutomatic refresh setting
Q64AD2 (Fixed)13 (Maximum number of settings)
Q68ADV/ADI2 (Fixed)25 (Maximum number of settings)
Example) Counting the number of parameter settings in the automatic refresh
setting
The number of settings in this one line is
counted as one setting.
The number of settings is not counted by columns.
Add up all the setting items in this setting screen,
then add them to the total for the other intelligent
function modules to get a grand total.
5 - 3 5 - 3
5 UTILITY PACKAGE (GX Configur ator-AD )
MELSEC-Q
5.2.2 Operating environment
The operating environment of the personal computer where the GX Configurator-AD is
used is explained.
ItemPeripheral devices
Installation (Add-in) destination
Computer main unitPersonal com puter on which Windows® operates.
CPU
Required memory
Hard disk
free space
Display
Operating system
For installation65 MB or more
For operation10 MB or more
1
Add-in to GX Developer Version 4 (English version) or later
Refer to the following table "Used operating system and performance req uired for
personal computer".
800 600 dot or more resolution
Microsoft
Microsoft® Windows® 98 Operating System (English version)
Microsoft
Microsoft® Windows NT® Workstation Operating System Version 4.0 (English version)
Microsoft® Windows® 2000 Professional Operating System (English version)
Microsoft
Microsoft® Windows® XP Home Edition Operating System (English version)
®
Windows® 95 Operating System (English version)
®
Windows® Millennium Edition Operating System (English version)
®
Windows® XP Professional Operating System (English version)
3
1: Install the GX Configurator-AD in GX Developer Version 4 or higher in the same language.
GX Developer (English version) and GX Configurator-AD (Japanese version) cannot be used in
combination, and GX Developer (Japanese version) and GX Configurator-AD (English version) cannot be
used in configuration.
2: GX Configurator-AD cannot be used as an add-in with GX Developer Version 3 or earlier versions.
3: Setting fonts Size of WindowsR for "Large Fonts" may cause the text to extend off screen. Therefore,
choose "Small Fonts".
2
Used operating system and performance required for personal computer
Operating system
Windows® 95Pentium® 133MHz or more32MB or more
Windows® 98Pentium® 133MHz or more32MB or more
Windows® MePentium® 150MHz or more32MB or more
Windows NT® Workstation 4.0Pentium® 133MHz or more32MB or more
Windows® 2000 ProfessionalPentium® 133MHz or more64MB or more
Windows® XP
Professional
Windows® XP
Home Edition
"XP compatibility
mode" and "Fast User
Switching" are not
supported.
Pentium
Pentium
Performance Required for Personal Computer
CPURequired memory
®
300MHz or more128MB or more
®
300MHz or more128MB or more
5 - 4 5 - 4
5 UTILITY PACKAGE (GX Configur ator-AD )
5.3 Explanation of Utility Package Operation
5.3.1 How to perform common utility package operations
(1) Available control keys
Special keys that can be used during operation of the utility package and their
application s are shown in the table below .
Name of keyApplication
Esc
Tab
Ctrl
Delete
Back
Space
Cancels a newly entered value when entering data in a cell.
Closes the window.
Moves between controls in the window.
Used in conjunction with the mouse when multiple cell s are
selected in the selection test.
Deletes the character where the cursor is positioned.
When a cell is selected, clears all of the setting content s.
Deletes the character where the cursor is positioned.
MELSEC-Q
Page
Up
Page
Down
Enter
Moves the cursor.
Moves the cursor one page up.
Moves the cursor one page down.
Confirms the value entered in the cell.
5 - 5 5 - 5
5 UTILITY PACKAGE (GX Configur ator-AD )
(2) Data to be created with the utility package
The data and files shown below that are created with the utility package are also
processed using GX Developer operation. Figure 5.1 shows which operation
processes which data or file.
<Intelligent function module parameters>
(a) This data is created with the automatic refresh setting, and stored in the
intelligent function module parameter file of the project to be created using
GX Developer.
Project
Program
Parameter
PLC Parameter
Network Parameter
Intelligent Function Module Parameter
MELSEC-Q
(b) Steps 1) to 3) shown in Figure 5.1 are performed using the following
2) Operating from the utility parameter setting module selection screen.
[File]
[Open file] / [Save file]
3) Operating from GX Developer.
[Online]
[Read from PLC] / [Write to PLC] "Intelligent function
module parameters"
Or, operate from the utility parameter setting module selection screen.
[Online]
[Read from PLC] / [Write to PLC]
5 - 6 5 - 6
5 UTILITY PACKAGE (GX Configur ator-AD )
r
<Text file>
(a) A text file is created by performing the initial setting or automatic refresh
setting, or selecting text file creation
files can be utiliz ed to crea te use r documen t s.
MELSEC-Q
in the monitor/test screen. The text
QCPU
Q25HCPU
A
MODE.
RUN.
ERR.
USER.
BAT.
BOOT.
GX Developer/
GX Configurator-AD
ProjectProject
3)
Disk
1)
AA
2)
B
A : Indicates an intelligent
function module parameter.
B : Indicates the data
saved by text file creation.
Personal compute
USB
RS-232
Figure 5.1 Correlation chart for data created using the utility package
5 - 7 5 - 7
5 UTILITY PACKAGE (GX Configur ator-AD )
5.3.2 Operation overview
GX Developer screen
[Tools] – [Intelligent function utility] – [Start]
Intilligent function module parameter
setting module select screen
MELSEC-Q
See Section 5.3.3
Initial setting
Initial setting scree n
See Section 5.4
Enter "Start I/O No.", then select "Package name" and "Module model name".
Auto refresh
Automatic refresh settin gs screen
See Section 5.5
5 - 8 5 - 8
1)
5 UTILITY PACKAGE (GX Configur ator-AD )
1)
[Online] – [Monitor/test]
Select monitor/test module screen
MELSEC-Q
Enter "Start I/O No.", then select "Package name" and "Module model name".
Monitor/test screen
See Section 5.6
5 - 9 5 - 9
5 UTILITY PACKAGE (GX Configur ator-AD )
5.3.3 Starting the intelligent function module utility
[Purpose of setting]
Start the intelligent function module utility from GX Developer, 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]
MELSEC-Q
[Explanation of items]
(1) How to start each screen
(a) Starting ini tia l se tt in g
"Start I/O No.
Initial setting
(b) Starting automatic refresh setting
"Start I/O No. " "Package name" "Module model name"
Auto refresh
(c) Monitor/test module sele ctio n screen
Online
Enter the start I/O numbers in hexadecimal.
" "Package name" "Module model name"
Monitor/test
(2) Explanation of screen command buttons
Delete
Exit
5 - 10 5 - 10
Deletes the initial setting and automatic refresh setting for the
selected module.
Ends the Intelligent function module utility.
5 UTILITY PACKAGE (GX Configur ator-AD )
(3) Menu bar
(a) File items
With file operation, the intelligent function module parameters for the project
opened by GX Developer can be processed.
[Open file]: Reads the pa r amet e r file .
[Close file]: Closes the parameter file. If revisions were made, the
[Save file]: Saves the parameter file.
[Delete file ]: Delete s th e pa ra met er file .
[Exit]: Ends the intelligent function modu le uti li ty .
(b) Online items
[Monitor/test]: Starts the monitor/test module selection screen.
[Read from PLC] : Reads the intelligent function module parameters from
[Write to PLC]: Writes the intelligent function module parameters to the
MELSEC-Q
dialog box asking whether to save the file appears.
the CPU module .
CPU module.
POINT
(1) Saving the intelligent function module parameter files
Since files cannot be saved using the GX Developer project save operation,
save the files using the module selection screen for intelligent function module
parameter settin g de scri bed ab ove .
(2) Reading from and writing to PLC operations for the intelligent function module
parameters using GX Developer
(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 GX Developer [Online]
(c) When the A/D converter module is installed to the remote I/O station, use
"Read from PLC" and "Write to PLC".
(3) Checking for the required utility
Start I/O No. is displayed in the Intelligent function module utility setting
screen, but a "
This means that either the required utility is not installed or that the utility
cannot be started from the GX Developer.
Check for the required utility in [Tools] - [Intelligent function utility] - [Utility
list...] in GX Developer, and set it.
" may be displayed fo r the mode l na me.
[Transfer s e tu p] .
5 - 11 5 - 11
5 UTILITY PACKAGE (GX Configur ator-AD )
5.4 Initial Setting
[Purpose of setting]
The following A/ D ini tia l se tt i ng pa ra mete r s 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.
Set whether A/D conversion is enabled or disabled and the A/D conversion
method for each channel.
(2) Explanation of command buttons
Make text file
End setup
Cancel
Outputs the screen display in text fil e format.
Confirms the setting data and ends the operation.
Cancels 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
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.
RUN STOP RUN, turning the power
5 - 12 5 - 12
5 UTILITY PACKAGE (GX Configur ator-AD )
5.5 Automatic Refresh Settings
[Purpose of setting]
Sets the buffer memory for the A/D converter module to be automatically
refreshed.
[Startup procedure]
"Start I/O No. " "Package name" "Module model name" Auto refresh
[Setting screen]
MELSEC-Q
[Explanation of items]
(1) Contents of the screen display
Model side Bu ffe r size: Displays the size o f t he bu ffe r me mo ry 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: "
PLC side Device: Enter the device at the CPU module to be
" indicates that data is written from the
device to the buffer memory.
"
" indicates that data is read from the buffer
memory to the device.
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 - 13 5 - 13
5 UTILITY PACKAGE (GX Configur ator-AD )
(2) Explanation of command buttons
MELSEC-Q
Make text file
End setup
Cancel
A file containin g the scree n con t en ts is crea te d in te xt file
format.
Confirms the setting data and ends the operation.
Cancels the setting data and ends the operation.
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
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.
RUN STOP RUN operations for the
5 - 14 5 - 14
5 UTILITY PACKAGE (GX Configur ator-AD )
5.6 Monitor/Test
5.6.1 Monitor/test screen
[Purpose of setting]
Buffer memory monitoring/testing, I/O signals monitoring /testing, operating condition
setting, offset/gain setting s (see Section 5 .6.2, 5.6.3 ), pa ss data (see Section 5.6.4 ,
5.6.5) are started from this screen.
[Startup procedure]
Monitor/test module sele cti on scree n "Start I/O No. " "Package name"
"Module model na me"
Enter the start I/O numbers in hexadecimal.
The screen can also be started from the GX Developer Version 6 or later
system monitor.
See GX Developer's operating manual for details.
[Setting screen]
Monitor/test
MELSEC-Q
X/Y monitor/testMax value/min value info .
5 - 15 5 - 15
1)
5 UTILITY PACKAGE (GX Configur ator-AD )
MELSEC-Q
Pass data
1)
Operating setting
Offset/gain setting
5 - 16 5 - 16
5 UTILITY PACKAGE (GX Configur ator-AD )
[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.
(2) Explanation of the command buttons
MELSEC-Q
Current value display
Make text file
Start monitor
Stop monitor
Execute test
Close
/
The current value of the selected item is displayed.
(This is used to check text that cannot be displayed in
the current value field. However, in this utility package,
all items can be displayed in the display fields).
Creates a file consisting of th e screen contents in te xt file
format.
Selects whether or not the current value fields are
monitored.
Performs a test of the selected item. To select more
than one item, sele ct mul tipl e i tems w hile ho lding dow n
the Ctrl
Closes the screen currently displayed and returns to
the previously displayed screen.
key.
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
process/Averaging process setting.
(2) Set number of times in the setting value field for CH
specifying.
(3) Click the se tt in g val ue fi eld fo r CH
setting to select.
(4) After entering the average number of times, press the Enter
Average time/average number of times
Sampling
Time/number of times
key.
At this point, nothing has been written to the A/D converter module.
(5) Select the setting value fields that were specified in steps 1 to 4 while holding
down the Ctrl
(6) Click Execute test
Once writing has been completed, the value that was written will be displayed in
the present v alue field.
5 - 17 5 - 17
key.
to execute write operation.
5 UTILITY PACKAGE (GX Configur ator-AD )
5.6.2 Offset/gain setting operation (F unction version C or later)
Perform the offset/gain setting operation in the following sequence.
(1) Switch to the offset/gain setting screen
Perform the operation in Section 5.6.1 to display the offset/gain setting screen.
(2) Switch to the offset/gain setting mode
Change the Setting value field of Offset/gain setting mode specification to
"Offset/gain setting mode", and click the Execute test
When write is completed, the indication in the Current value field of Offset/gain
setting mode status changes to "Offset/gain setting mode".
(3) Adjustment of the offset and gain v alues
(a) Set the analog input value for the offset value
Add the voltage or current that will determine the offset value to the channel
to be set.
MELSEC-Q
button to per for m w rit e.
(b) Select the channel for which the offset value is to be adjusted
Make the selection from the offset/gain setting channel field, and then click
on the Execute test
(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 Execute test
(e) To set the offset/gain for more than one channel, repeat steps (a) to (d).
button.
button.
(4) Write the offset/gain setting v al ues to the module
Write the offset/gain settings to the module after completing the settings for all
channels using the user range setting. Note that if settings are written while
offset/gain settings are incomplete, the status at that point will be written to the
module.
(a) Write to the A/D converter module
Select "Write requested" from the setting value field for the offset/gain
setting write request, and then click on the Execute test
button.
(b) Confirm execution of write operation
Confirm that the current value field display for the offset/gain module write
request changes from "Write request" to "No write request".
(c) Error handling
Confirm that the ERROR LED for the A/D converter module is off. If the
ERROR LED is lit, click on Close
screen, and then perform the offset/gain settings again.
5 - 18 5 - 18
, check the error code on the monitor
5 UTILITY PACKAGE (GX Configur ator-AD )
(5) Switch to the normal mode
Change the Setting value field of Offset/gain setting mode specification to
"Normal mode", and click the Execute test
When write is completed, the indication in the Current value field of Offset/gain
setting mode status changes to "Normal mode".
button to perform w r ite .
5.6.3 Offset/gain setting operation ( Functi on version B or earlier)
Perform the offset/gain setting operation in the following sequence.
(1) Switch to the offset/gain setting mode
Change switch 4 for intelligent function module switch setting to the offset/gain
setting mode (see Section 4.5).
(2) Switch to the offset/gain setting screen
Display the offset/gain setting screen using the operation described in Section
5.6.1.
MELSEC-Q
(3) Adjustment of the offset and gain v alues
(a) Set the analog input value for the offset value
Add the voltage or current that will determine the offset value to the channel
to be set.
(b) Select the channel for which the offset value is to be adjusted
Make the selection from the offset/gain setting channel field, and then click
on the Execute test
(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 Execute test
(e) To set the offset/gain for more than one channel, repeat steps (a) to (d).
button.
button.
(4) Write the offset/gain setting v al ues to the module
Write the offset/gain settings to the module after completing the settings for all
channels using the user range setting. Note that if settings are written while
offset/gain settings are incomplete, the status at that point will be written to the
module.
(a) Write to the A/D converter module
Select "Write requested" from the setting value field for the offset/gain
setting write request, and then click on the Execute test
(b) Confirm execution of write operation
Confirm that the current value field display for the offset/gain module write
request changes from "Write request" to "No write request".
5 - 19 5 - 19
button.
5 UTILITY PACKAGE (GX Configur ator-AD )
(c) Error handling
Confirm that the ERROR LED for the A/D converter module is off. If the
ERROR LED is lit, click on Close
screen, and then perform the offset/gain settings again.
5.6.4 Pass data (Q64AD)
Perform operation in the following sequence to save/restore the user range.
(1) Switch to the pass data screen
Perform the operation in Section 5.6.1 to display the Pass data screen.
MELSEC-Q
, check the error code on the monitor
(2) User range saving
(a)
Set "Voltage specified" or "Current specified" in the Setting value field of
Pass data classification setting, and click the Execute test
When the setting is completed, the set data is displayed in the Current value
field of CH
(b) Change the Setting value field of Pass data read request to "Request", and
click the Execute test
When read is completed, the values are displayed in the Current value fields
of CH
settings offset/gain values.
(c) Compare the values with those in the range reference table, and record
them if they are correct.
Refer to Section 7.4 for the range reference table.
Pass data classificatio n sett ing.
button.
Industrial shipment settings offset/gain values/CH User range
button.
5 - 20 5 - 20
5 UTILITY PACKAGE (GX Configur ator-AD )
(3) User range restoration
(a) Set "Voltage specified" or "Current specified" in the Setting value field of
Pass data classification setting, and click the Execute test
When the setting is completed, the set data is displayed in the Current value
field of CH
Pass data classificatio n sett ing.
MELSEC-Q
button.
(b) Set the recorded values in the Setting value fields of CH
shipment settings offset/gain values/user range settings offset/gain values.
(c) Select all the Setting value fields of CH
offset/gain values/user range settings offset/gain values, and click the
Execute test
When write is completed, the set values are displayed in the Current value
fields of CH
range settings offset/gain values.
(d) Change the Setting value field of Pass data write request to "Request", and
click the Execute test
Make sure that the indication in the Current value field of Pass data write
request changes from "Request" to "OFF" on completion of write.
5.6.5 Pass data (Q68ADV/Q68ADI)
Perform operation in the following sequence to save/restore the user range.
(1) Switch to the pass data screen
Perform the operation in Section 5.6.1 to display the pass data screen.
Industrial
Industrial shipment se ttin g s
button.
Industrial shipment settings offset/gain values/CH User
button.
5 - 21 5 - 21
5 UTILITY PACKAGE (GX Configur ator-AD )
(2) User range saving
(a) Change the Setting value field of pass data read request to "Request", and
click the Execute test
When read is completed, the values are displayed in the Current value fields
of CH
settings offset/gain values.
(b) Compare the values with those in the range reference table, and record
them if they are correct.
Refer to Section 7.4 for the range reference table.
industrial shipment settings offset/gain values/CH user range
(3) User range restoration
(a) Set the recorded values in the Setting value fields of CH industrial
shipment settings offset/gain values/user range settings offset/gain values.
MELSEC-Q
button.
(b) Select all the Setting value fields of CH
offset/gain values/user range settings offset/gain values, and click the
Execute test
When write is completed, the set values are displayed in the Current value
fields of CH
range settings offset/gain values.
(c) Change the Setting value field of pass data write request to "Request", and
click the Execute test
Make sure that th e in di cat io n in the Cur ren t valu e fi el d o f pa ss data w ri te
request changes from "Request" to "OFF" on completion of write.
button.
industrial shipment settings offset/gain values/ CH user
button.
industrial shipmen t setting s
5 - 22 5 - 22
6 PROGRAMMING
6 PROGRAMMING
Using a sample system configuration shown below, details of the A/D converter
module program are explained in the following two scenarios: when the utility package
is used and when the utility package is not used.
System configuration used in the program explanation
(1) System configuration
MELSEC-Q
QX10
Q64AD
QnCPU
Power supply module
X10
X/Y0
to
to
X1F
X/YF
QY10
Y20
to
Y2F
6
(2) Program conditions
This progra m read s th e digital outpu t val ue s th at hav e b een A /D converted using
CH 1 to CH3 of the Q64AD. CH1 performs sampling processing, CH2 performs
averaging processing every 50 times, and CH3 performs averaging processing
every 1000 ms. An error code appears in BCD format if a write error occurs.
(a) Contents of initial setting
• A/D conversion en ab le chan ne l
........................................
• Channel performing averaging processing using number of times
........................................
• Channel performing averaging processing using time
6.1 Programming Example Us i ng the U til ity Package
6.1.1 Operating the utility package
(1) Initial setting (see Section 5.4)
Set channel 1 to sampling processing, channel 2 to averaging processing for 50
times and channel 3 to averaging processing for 1000 ms.
MELSEC-Q
(2) Auto refresh setting (see Section 5.5)
Set the digi ta l ou tp ut v al ue s and e r ror code s fo r C H1 to 3.
(3) Writing the intelligent function module parameters (see Section
5.3.3)
Write the intelligent function module parameters to the CPU module.
This operation is performed using the parameter setting module selection screen.
6
6 - 2 6 - 2
6 PROGRAMMING
6.1.2 Programming exampl e
Digital output value read processing
X11X0X0E
0
Error code display and reset processing
26
Error
reset
signal
49
Error
reset
request
Read
digital
values
X10
Y0F
Module
READY
X0F
Error
flag
X0F
Error
flag
A/D
conversion
completed
flag
MOVD11D101
CH1 Digital
output
MOVD12D102
CH2 Digital
output
MOVD13D103
CH3 Digital
output
BCDD14K3Y20
Error code
SET Y0F
Error clear
request
RST Y0F
Error clear
request
MELSEC-Q
Transfer digital output values D11
to D13 read using automatic
refresh to D101 to D103 after A/D
conversion is completed.
Output the error code to Y20 to
Y2B by BCD code.
Clear the error code.
52
END
6 - 3 6 - 3
6 PROGRAMMING
6.2 Programming Example without Using the Utility Package
(1) Programming example using the FROM/TO commands
Set the A/D conversion enabled channel (initial setting)
X0
0
Module
READY
T0H0K1K0H8
MELSEC-Q
CH1 to CH3 are A/D conversion
enabled
101
Operating
condition
setting
request
Digital output value read processing
104
Read
digital
values
Error code display and reset processing
139
Error
reset
signal
X11
X10
Operating
condition
setting completed
X0
X0E
Module
A/D
READY
conversion
completed
flag
X0F
Error
flag
X9
Y9
T0H0K1K2K50
T0H0K1K3K1000
T0H0K1K9H604
RST Y9
FROM H0K1K11D11
FROM H0K1K12D12
FROM H0K1K13D13
FROM H0K1K19D14
CH1
Digital
output
CH2
Digital
output
CH3
Digital
output
Error code
BCDD14K3Y20
Error code
Y9SET
Operating
condition
setting request
Operating
condition
setting request
Set the average number of times
for CH2 to 50 times
Set the average time for CH3 to
1000 ms
Specify averaging processing
Set Y9 (operating condition
setting request) from ON to OFF
and enable the initial setting
Read digital output values for
CH1 to 3
Output the error code to Y20
to Y2B by BCD code.
SET Y0F
Error clear
167
170
Y0F
Error
clear
request
X0F
Error
flag
request
RST Y0F
Error clear
request
END
Clear the error code.
6 - 4 6 - 4
6 PROGRAMMING
(2) Programming example using the intelligent function module dev i ce
(U \G )
Set the A/D conversion enabled channel (initial setting)
X0
0
Module
READY
X9
Y9
99
Operating
condition
setting
request
Digital output value read processing
102
Read
digital
values
Error code display and reset processing
134
Error
reset
signal
158
Error
clear
request
X11
X10
Y0F
Operating
condition
setting completed
X0
X0E
Module
A/D
READY
conversion
completed
flag
X0F
Error
flag
X0F
Error
flag
U0\
G0MOVH8
U0\
G2MOVK50
U0\
G3MOVK1000
U0\
G9MOVH604
Y9SET
Operating
condition
setting request
RST Y9
Operating
condition
setting request
U0\
D11MOVG11
CH1
Digital
output
U0\
D12MOVG12
CH2
Digital
output
U0\
D13MOVG13
CH3
Digital
output
U0\
BCDG19K3Y20
Error code
SET Y0F
Error clear
request
RST Y0F
Error clear
request
MELSEC-Q
CH1 to CH3 are A/D conversion
enabled
Set the average number of times
for CH2 to 50 times
Set the average time for CH3 to
1000 ms
Specify averaging processing
Set Y9 (operating condition
setting request) from ON to OFF
and enable the initial setting
Read digital output values for
CH1 to 3
Output the error code to
Y20 to Y2B by BCD code
161
END
6 - 5 6 - 5
7 ONLINE MODULE CHANGE
7 ONLINE MODULE CHANGE
This chapter describes the specifications of an online module change.
(1) Perform an online module change by operating GX Developer.
(2) To ensure ease of offset/gain re-setting, there is a user range save/restoration
function that is performed by executing the dedicated instruction or read/write
from/to bu ffe r me mo ry.
POINT
• Perform an online module change after making sure that the system outside the
PLC will not malfunction.
• To prevent an electric shock or like, always switch OFF the external power of the
module that will be changed online.
• After the module has failed, data may not be saved properly. Referring to Section
3.4.15, therefore, prerecord the data to be saved (offset/gain values of the
industrial shipment settings and user range settings in the buffer memory).
(Note)
The dedicated instruction cannot be executed during an online module change. When
using the dedicated instruction to execute save/restoration, therefore, execute
save/restoration in the other system.
If the other system is unavailable, execute restoration by performing write to the buffer
memory.
MELSEC-Q
7.1 Online Module Change Conditi ons
The CPU, A/D conv ert er module , GX Deve lope r and ba se un it give n below are needed
to perform an online module change.
(1) CPU
The Q12PHCPU or Q25PHCPU is needed. Note that it cannot be used on the
remote I/O station of the MELSECNET/H.
For precautions for multiple PLC system configuration, refer to the Process CPU
User's Manual (Function Explanation/Program Fundamentals).
(2) A/D converter module
The module of function version C or later is necessary.
(3) GX Developer
GX Developer of Ve rsion 7. 10 L or late r i s nece ssary .
(4) Base unit
1) For an online module change, use the main base unit and Q6 B extension
base unit.
The module installed on the main base unit or Q6
be change onl ine .
2) The module installed on the Q5
online.
When the Q5
be changed onlin e , ei th e r.
7
B extension base unit can
B extension base unit cannot be changed
B is in use, the module installed on the main base unit cannot
7 - 1 7 - 1
7 ONLINE MODULE CHANGE
7.2 Online Module Change Operations
The following gives the operations performed for an online module change.
CPU operation : Executed : Not executed
GX Configurat or
Initial
setting
parameter
Monitor/
test
X/Y
refresh
FROM/TO
instruction
1
Dedicated
instruction
Device
test
(User operat ion)
(1) Conversion disable
Turn OFF all Y signals that
were turned ON by a
sequence program.
(2) Dismounting of module
Operate GX Developer to start
an online module change.
Click the [Execution] button
of GX Developer to make the
module dismountable.
Dismount the corresponding
module.
MELSEC-Q
(Intelligent function module
operation)
Module is operating as usual.
Module stops operating.
RUN LED turns off.
Conversion disabled.
7
(3) Mounting of new module
Mount a new module.
After mounting the module,
click the [Execution] button
of GX Developer.
Operation check before control start
(4) Operation check
Click the [Cancel] button of
GX Developer to leave the
online mode.
Conduct an operation test on
the new module using
"Device test" of GX Developer
or "Monitor/test" of
GX Configurator.
Perform user range restoration
processing by write to buffer
memory at this point.
Operation check completed
(5) Resumption of control
Operate GX Developer to
resume the online module
change mode, and click the
[Execution] button to resume
control.
X/Y refresh resumes and
the module starts.
RUN LED turns on.
Default operation
(X0 remains OFF)
When there are initial setting
parameters, operation is
performed according to the initial
setting parameters at this point.
Module operates according
to test operation
X0 (Module Ready) turns ON.
Start is made when X0 turns
from OFF to ON.
Operation is performed
according to the initial setting
sequence.
2
2
1: Access to the intelligent function module device (U \G ) is included.
2: In the absence of the operation marked 2, the operation of the intelligent function module is the operation performed prior to that.
7 - 2 7 - 2
7 ONLINE MODULE CHANGE
MELSEC-Q
7.3 Online Module Change Procedure
There are the following online module change procedures depending on whether the
user range setting has been made or not, whether the initial setting of GX ConfiguratorAD has been made or not, and whether the other system exists or not.
User range settingGX Configurator-ADPresentSection 7.3.3
User range settingGX Configurator-ADAbsentSection 7.3.4
User range settingSequence programPresentSection 7.3.5
User range settingSequence programAbsentSection 7.3.6
7.3.1 When industrial shipment setting is used and i niti al setting w as made w ith GX
Configurator-AD
(1) Conversion disable
(a)Set the A/D conversion enable/disable setting (buffer memory address 0:
Un\G0) for all channel conversion disable and turn Operation Condition
Setting Request (Y9) from OFF to ON to stop conversion.
7 - 3 7 - 3
7 ONLINE MODULE CHANGE
(2) Dismounting of module
(a)After choosing [Diagnosis] - [Online module change] on GX Developer to
enter the "Online module change" mode, double-click the module to be
changed online to display the "Online module change" screen.
MELSEC-Q
(b)Click the "Execution" button to enable a module change.
If the following error screen appears, click the [OK] button, dismount the
module as-is, and mount a new module.
(c)After confirming that the "RUN" LED of the module has turned off, remove
the terminal block and dismount the module.
POINT
Always dismount the module. If mounting confirmation is made without the module
being dismounted, the module will not start properly and the "RUN" LED will not be
lit.
7 - 4 7 - 4
7 ONLINE MODULE CHANGE
(3) Mounting of new module
(a)Mount a new module to the same slot and install the terminal block.
(b)After mounting the module, click the [Execution] button and make sure that
the "RUN" LED is lit. Module Ready (X0) remains OFF.
MELSEC-Q
(4) Operation check
(a)To make an operation check, click the [Cancel] button to cancel control
resumption.
(b)Click the [OK] button to leave the "Online module change" mode.
7 - 5 7 - 5
7 ONLINE MODULE CHANGE
(c)Click the [Close] button to close the System monitor screen.
MELSEC-Q
(d)Monitor the digital output values (buffer memory addresses 11 to 18:
Un\G11 to 18) to check that proper conversion has been made.
7 - 6 7 - 6
7 ONLINE MODULE CHANGE
(5) Resumption of control
(a)After choosing [Diagnosis] - [Online module change] on GX Developer to
redisplay the "O nli ne mod ul e ch ang e" scree n, cli ck th e [ Execu ti on ] but t on to
resume control. The FROM/TO instruction for the module resumes.
7.3.2 When industrial shipment setting is used and i niti al setti ng w as made wi th seq uence
program
(1) Conversion disable
(a)Set the A/D conversion enable/disable setting (buffer memory address 0:
Un\G0) for all channel conversion disable and turn Operation Condition
Setting Request (Y9) from OFF to ON to stop conversion.
(2) Dismounting of module
(a)After choosing [Diagnosis] - [Online module change] on GX Developer to
enter the "Online module change" mode, double-click the module to be
changed online to display the "Online module change" screen.
7 - 8 7 - 8
7 ONLINE MODULE CHANGE
(b)Click the "Execution" button to enable a module change.
If the following error screen appears, click the [OK] button, dismount the
module as-is, and mount a new module.
MELSEC-Q
(c)After confirming that the "RUN" LED of the module has turned off, remove
the terminal block and dismount the module.
POINT
Always dismount the module. If mounting confirmation is made without the module
being dismounted, the module will not start properly and the "RUN" LED will not be
lit.
(3) Mounting of new module
(a)Mount a new module to the same slot and install the terminal block.
(b)After mounting the module, click the [Execution] button and make sure that
the "RUN" LED is lit. Module Ready (X0) remains OFF.
7 - 9 7 - 9
7 ONLINE MODULE CHANGE
(4) Operation check
(a)To make an operation check, click the [Cancel] button to cancel control
resumption.
MELSEC-Q
(b)Click the [OK] button to leave the "Online module change" mode.
(c)Click the [Close] button to close the System monitor screen.
7 - 10 7 - 10
7 ONLINE MODULE CHANGE
(d)Referring to (1), enable the conversion of the channels to be used, and
monitor the digital output values (buffer memory addresses 11 to 18:
Un\G11 to 18) to check that proper conversion has been made.
(e)Executing module control resumption resumes co ntrol acco rdi ng to the
contents of the initial setting program. Make sure that the contents of the
initial setting program are correct.
(5) Resumption of control
(a)After choosing [Diagnosis] - [Online module change] on GX Developer to
redisplay the "O nli ne mod ul e ch ang e" scree n, cli ck th e [ Execu ti on ] but t on to
resume control. The FROM/TO instruction for the module resumes.
7.3.3 When user range setting is used and ini ti al setti ng w as made w i th GX C onfig urator- AD
(other system is available)
(1) Conversion disable
(a)Set the A/D conversion enable/disable setting (buffer memory address 0:
Un\G0) for all channel conversion disable and turn Operation Condition
Setting Request (Y9) from OFF to ON to stop conversion.
(2) Dismounting of module
(a)After choosing [Diagnosis] - [Online module change] on GX Developer to
enter the "Online module change" mode, double-click the module to be
changed online to display the "Online module change" screen.
7 - 12 7 - 12
7 ONLINE MODULE CHANGE
(b)Click the "Execution" button to enable a module change.
If the followin g e rro r scre en app ea rs, the u ser r ange can not be save d.
Click the [OK] button, and perform the operation in Section 7.3.4 (2)(c) and
later.
MELSEC-Q
(c)After confirming that the "RUN" LED of the module has turned off, remove
the terminal block and dismount the module.
POINT
Always dismount the module. If mounting confirmation is made without the module
being dismounted, the module will not start properly and the "RUN" LED will not be
lit.
(3) Mounting of new module
(a)Mount the dismounted module and new module to the other system.
(b)Using the G.OGLOAD instruction, save the user set values to the CPU
device. Refer to Appendix 2. 2 for the G.OGL OAD inst ructio n.
(c)Using the G.OGSTOR instruction, restore the user set values to the
module. Refer to Appendix 2.3 for the G.OGSTOR instruction.
(d)Dismount the new module from the other system, mount it to the slot from
where the old module was dismounted in the original system, and install the
terminal block.
7 - 13 7 - 13
7 ONLINE MODULE CHANGE
(e)After mounting the module, click the [Execution] button and make sure that
the "RUN" LED is lit. Module Ready (X0) remains OFF.
(4) Operation check
(a)To make an operation check, click the [Cancel] button to cancel control
resumption.
MELSEC-Q
(b)Click the [OK] button to leave the "Online module change" mode.
7 - 14 7 - 14
7 ONLINE MODULE CHANGE
(c)Click the [Close] button to close the System monitor screen.
MELSEC-Q
(d)Monitor the digital output values (buffer memory addresses 11 to 18:
Un\G11 to 18) to check that proper conversion has been made.
7 - 15 7 - 15
7 ONLINE MODULE CHANGE
(5) Resumption of control
(a)After choosing [Diagnosis] - [Online module change] on GX Developer to
redisplay the "O nli ne mod ul e ch ang e" scree n, cli ck th e [ Execu ti on ] but t on to
resume control. The FROM/TO instruction for the module resumes.
7.3.4 When user range setting is used and ini ti al setti ng w as made w i th GX C onfig urator- AD
(other system is unavailabl e)
(1) Conversion disable
(a)On the Operating condition setting screen of GX Configurator-AD, set
"Disable" in the Setting value field of CH
setting, and click the [Execute test] button.
A/D conversion ena ble/ di sabl e
7 - 16 7 - 16
7 ONLINE MODULE CHANGE
(b)After making sure that the indication in the Current value field of CH A/D
conversion ena bl e/di s ab le set ti ng is " Di sab le" , chan ge the Se tt in g val ue
field of Operating condition setting request to "Setting request", and click
the [Execute test] button to stop conversion.
MELSEC-Q
(c)If the saved buffer memory contents are not yet prerecorded, record them
in the following procedure.
1)Display the pass data screen of GX Configurator-AD.
2)Set the pass data classifi cat ion setti ng
request. (Refer to Section 5.6.4, 5.6.5.)
3)Compare the current values of the industrial shipment settings and
user range settings offset/gain values with those of the range
reference table. Refer to Section 7.4 for the range reference table.
4)If the values are proper, record the offset/gain values of the pass data
classification setting, industrial shipment settings and user range
settings.
: The Q68ADV/Q68ADI does not require the setting and recording of the
pass data classification setting.
and make a pass data read
POINT
If the buffer memory values compared with the reference table are not proper, save
and restoration of the user range cannot be executed.
Before executing module control resumption, make offset/gain setting in the GX
Configurator-AD. (see Section 5.6.2)
Note that if module control is resumed without offset/gain setting being made,
operation will be performed with the default values.
7 - 17 7 - 17
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.