(Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals carefully and pay full
attention to safety to handle the product correctly.
The precautions given in this manual are concerned with this product only. For the safety precautions of
the programmable controller system, refer to the user's manual for the CPU module used.
In this manual, the safety precautions are classified into two levels: "
Under some circumstances, failure to observe the precautions given under "
serious consequences.
Observe the precautions of both levels because they are important for personal and system safety.
Make sure that the end users read this manual and then keep the manual in a safe place for future
reference.
[Design Precautions]
WARNING" and "CAUTION".
CAUTION" may lead to
WARNING
• Do not write any data to the "system area" of the buffer memory in the intelligent function
module.
Doing so may cause malfunction of the programmable controller system.
• Outputs may remain on or off due to a failure of the external output transistor. Configure an
external circuit for monitoring output signals that could cause a serious accident.
CAUTION
• Do not install the control lines or communication cables together with the main circuit lines or
power cables.
Keep a distance of 150 mm (5.9 inch) or more between them.
Failure to do so may result in malfunction due to noise.
A - 1 A - 1
[Installation Precautions]
CAUTION
• Use the programmable controller in an environment that meets the general specifications in the
user’s manual for the CPU module used.
Failure to do so may result in electric shock, fire, malfunction, or damage to or deterioration of
the product.
• To mount the module, while pressing the module mounting lever located in the lower part of the
module, fully insert the module fixing projection(s) into the hole(s) in the base unit and press the
module until it snaps into place.
Incorrect mounting may cause malfunction, failure or drop of the module.
When using the programmable controller in an environment of frequent vibrations, fix the
module with a screw.
Tighten the screw within the specified torque range.
Undertightening can cause drop of the screw, short circuit or malfunction.
Overtightening can damage the screw and/or module, resulting in drop, short circuit, or
malfunction.
• Shut off the external power supply (all phases) used in the system before mounting or removing
the module.
Failure to do so may result in damage to the product.
• Do not directly touch any conductive part or electronic component of the module.
Doing so can cause malfunction or failure of the module.
[Wiring Precautions]
CAUTION
• Connectors for external devices must be crimped with the tool specified by the manufacturer or
must be correctly soldered. Incomplete connections may cause short circuit, fire, or malfunction.
• Prevent foreign matter such as dust or wire chips from entering the module.
Such foreign matter can cause a fire, failure, or malfunction.
• A protective film is attached to the top of the module to prevent foreign matter, such as wire
chips, from entering the module during wiring.
Do not remove the film during wiring.
Remove it for heat dissipation before system operation.
• Place the cables in a duct or clamp them.
If not, dangling cable may swing or inadvertently be pulled, resulting in damage to the module or
cables or malfunction due to poor contact.
A - 2 A - 2
[Wiring Precautions]
CAUTION
• When disconnecting the cable from the module, do not pull the cable by the cable part.
For the cable with connector, hold the connector part of the cable.
Pulling the cable connected to the module may result in malfunction or damage to the module or
cable.
• Individually ground the shielded cables on the encoder side (relay box) with a ground resistance
of 100
Failure to do so may cause malfunction.
• Check the rated voltage and terminal layout before wiring to the module, and connect the cables
correctly.
Connecting a power supply with a different voltage rating or incorrect wiring may cause a fire or
failure.
or less.
[Startup and Maintenance Precautions]
WARNING
• Do not touch any terminal while power is on.
Doing so will cause electric shock or malfunction.
• Shut off the external power supply (all phases) used in the system before cleaning the module or
retightening the connector screws or module fixing screws.
Failure to do so may result in electric shock or cause the module to fail or malfunction.
Undertightening can cause drop of the screw, short circuit or malfunction.
Overtightening can damage the screw and/or module, resulting in drop, short circuit, or
malfunction.
CAUTION
• Do not disassemble or modify the module.
Doing so may cause failure, malfunction, injury, or a fire.
• Shut off the external power supply (all phases) used in the system before mounting or removing
the module.
Failure to do so may cause the module to fail or malfunction.
• After the first use of the product, do not mount/remove the module to/from the base unit more
than 50 times (IEC 61131-2 compliant).
Exceeding the limit of 50 times may cause malfunction.
• Before handling the module, touch a conducting object such as a grounded metal to discharge
the static electricity from the human body.
Failure to do so may cause the module to fail or malfunction.
A - 3 A - 3
[Disposal Precaution]
CAUTION
• When disposing of this product, treat it as industrial waste.
A - 4 A - 4
• CONDITIONS OF USE FOR THE PRODUCT •
(1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or
serious accident; and
ii) where the backup and fail-safe function are systematically or automatically provided outside of the
PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general
industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED
TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT,
PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO
PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT
INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR WARNING CONTAINED IN
MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL BULLETINS AND
GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
y Nuclear Power Plants and any other power plants operated by Power companies, and/or any other
cases in which the public could be affected if any problem or fault occurs in the PRODUCT.
y Railway companies or Public service purposes, and/or any other cases in which establishment of a
special quality assurance system is required by the Purchaser or End User.
y Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator
and Escalator, Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for
Recreation and Amusement, and Safety devices, handling of Nuclear or Hazardous Materials or
Chemicals, Mining and Drilling, and/or other applications where there is a significant risk of injury to
the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the
PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT is
limited only for the specific applications agreed to by Mitsubishi and provided further that no special
quality assurance or fail-safe, redundant or other safety features which exceed the general
specifications of the PRODUCTs are required. For details, please contact the Mitsubishi
representative in your region.
A - 5 A - 5
REVISIONS
The manual number is given on the bottom left of the back cover.
Print Date Manual Number Revision
Dec., 1999 SH(NA)-080036-A First edition
Oct., 2000 SH(NA)-080036-B
Correction
About the Generic Terms and Abbreviation, Section 2.1, Section 7.2.2,
7.3.3, 7.6.1
Jun., 2001 SH(NA)-080036-C Standardize the name from software package (GPP function) to Product
name (GX Developer).
Standardize the name from utility package (QCTU) to Product name
(GX Configurator-CT).
Addition
Section 2.2, 2.3
Correction
SAFETY PRECAUTIONS, Conformation to the EMC Directive and Low
Voltage Instruction, About the Generic Terms and Abbreviations,
Product Structure, Section 2.1, Section 3.2, 3.5, Section 6.2, Section
7.2, 7.2.1, 7.2.2, 7.3.3
Feb., 2002 SH(NA)-080036-D
Correction
About the Generic Terms and Abbreviation, Section 2.1, Section 7.2.1,
7.2.2
Feb., 2003 SH(NA)-080036-E
Correction
SAFETY PRECAUTIONS, INTRODUCTION, CONTENTS, About the
Generic Terms and Abbreviations, Section 2.1, Section 3.5, Section 4.3,
Section 5.4, Section 7.2.2, Section 7.3.2, Section 7.3.3, Section 7.4 to
Section 7.6, Section 8.1.1, INDEX
Conformation to the EMC Directive and Low Voltage Instruction,
Section 2.2, Section 7.2.2
A - 6 A - 6
The manual number is given on the bottom left of the back cover.
Print Date Manual Number Revision
Jun., 2007 SH(NA)-080036-K
Correction
CONTENTS, About the Generic Terms and Abbreviations, Section 3.1,
Section 3.3.2, Section 4.1, Section 4.3 to 4.5, Section 5.1.1, Section 5.2,
Section 5.3, Section 6.4, Section 6.5, Section 7.3.1 to 7.3.3, Section 7.4
to 7.6, Chapter 8, Section 8.1.1, Section 8.3, Section 9.1 to 9.3, INDEX
Jan., 2008 SH(NA)-080036-L
Correction
CONTENTS, About the Generic Terms and Abbreviations, Section 2.2,
Section 2.5, Section 7.2.2, Section 7.3.2, Section 7.3.3, Section 7.4,
Section 7.6
Addition
Section 2.3
May, 2008 SH(NA)-080036-M
Correction
SAFETY PRECAUTIONS, Compliance with the EMC and Low Voltage
Directives, About the Generic Terms and Abbreviations, Section 2.1,
Section 2.5, Section 3.5, Section 4.1, Section 4.4.2, Section 7.2.1,
Section 7.3.1, Section 7.3.3
Mar., 2009 SH(NA)-080036-N
Correction
About the Generic Terms and Abbreviations, Section 1.1, Section 2.1,
Section 4.4.5, Section 6.2 to Section 6.5, Section 7.2.1, Section 7.6.1,
Chapter 8
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.
Thank you for purchasing the MELSEC-Q series programmable controller.
Before using the equipment, please read this manual carefully to develop full familiarity with the functions
and performance of the Q series programmable controller you have purchased, so as to ensure correct use.
1.1 Features .................................................................................................................................................. 1- 2
3.2 Function List ............................................................................................................................................ 3- 4
3.3 I/O Signals for the CPU Module ............................................................................................................. 3- 5
3.3.1 List of I/O signals .............................................................................................................................. 3- 5
3.3.2 Functions of I/O signals.................................................................................................................... 3- 6
4.4.2 Wiring example of a module and an encoder ................................................................................. 4- 6
4.4.3 Wiring example of a controller and an external input terminal ....................................................... 4- 8
4.4.4 Wiring example with an external output .......................................................................................... 4-11
4.4.5 Using the connector/terminal block converter module.................................................................... 4-12
A - 9 A - 9
4.5 Setting from GX Developer..................................................................................................................... 4-14
4.5.1 Intelligent function module detailed setting ..................................................................................... 4-14
4.5.2 Switch setting for intelligent function module .................................................................................. 4-16
5 BASIC USAGE 5- 1 to 5-12
5.1 Pulse Input and Counting Method .......................................................................................................... 5- 1
5.1.1 Types of pulse input methods.......................................................................................................... 5- 1
5.1.2 Setting the count method ................................................................................................................. 5- 3
5.1.3 Reading the present values ............................................................................................................. 5- 3
5.2 Selecting the Counter Format................................................................................................................. 5- 4
5.2.1 Selecting the linear counter ............................................................................................................. 5- 4
5.2.2 Selecting the ring counter ................................................................................................................5- 5
5.3 Using the Coincidence Output Function................................................................................................. 5- 7
5.4 Using the Preset Function ...................................................................................................................... 5-11
6 CONVENIENT USAGE 6- 1 to 6-10
6.1 Selecting the Counter Function ..............................................................................................................6- 1
6.1.1 Reading the counter function selection count value .......................................................................6- 2
7.5 Auto Refresh ........................................................................................................................................... 7-14
Appendix 2 Difference Between A1SD62, A1SD62E and A1SD62D(S1) ..............................................App- 2
INDEX Index- 1 to Index- 2
A - 11 A - 11
COMPLIANCE WITH EMC AND LOW VOLTAGE DIRECTIVES
(1) Method of ensuring compliance
To ensure that Mitsubishi programmable controllers maintain EMC and Low
Voltage Directives when incorporated into other machinery or equipment, certain
measures may be necessary. Please refer to one of the following manuals.
• QCPU User's Manual (Hardware Design, Maintenance and Inspection)
• Safety Guidelines
(This manual is included with the CPU module or base unit.)
The CE mark on the side of the programmable controller indicates compliance
with EMC and Low Voltage Directives.
(2) Additional measures
No additional measures are necessary for the compliance of this product with
EMC and Low Voltage Directives.
ABOUT THE GENERIC TERMS AND ABBREVIATIONS
This manual describes the Type QD62, QD62E and QD62D high-speed counter
module using the following generic terms and abbreviations, unless otherwise
Generic Term/Abbreviation Description
QD62 Abbreviation of the Type QD62 high-speed counter module
QD62E Abbreviation of the Type QD62E high-speed counter module
QD62D Abbreviation of the Type QD62D high-speed counter module
QD62(E/D) Generic term of QD62, QD62E and QD62D
DOS/V personal computer DOS/V-compatible personal computer of IBM PC/ATRand its compatible
GX Developer
GX Works2
GX Configurator-CT
QCPU (Q mode)
Redundant CPU Generic term for the Q12PRHCPU and Q25PRHCPU
Windows VistaR
WindowsR XP
specified.
Product name of the software package for the MELSEC programmable controllers
Abbreviation for counter module setting/monitor tool, GX Configurator-CT (SW0D5CQCTU-E)
Generic term for the Q00JCPU, Q00CPU, Q01CPU, Q02CPU, Q02HCPU, Q06HCPU,
Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU,
Q12PRHCPU, Q00UJCPU, Q00UCPU, Q01UCPU, Q25PRHCPU, Q02UCPU,
Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU,
Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU,
Q10UDEHCPU, Q13UDEHCPU, Q20UDEHCPU, Q26UDEHCPU, Q50UDEHCPU, and
Q100UDEHCPU
Generic term for the following:
MicrosoftR Windows VistaR Home Basic Operating System,
Microsoft
Microsoft
Microsoft
Microsoft
Generic term for the following:
MicrosoftR WindowsR XP Professional Operating System,
Microsoft
R
Windows VistaR Home Premium Operating System,
R
Windows VistaR Business Operating System,
R
Windows VistaR Ultimate Operating System,
R
Windows VistaR Enterprise Operating System
R
WindowsR XP Home Edition Operating System
A - 12 A - 12
Generic Term/Abbreviation Description
WindowsR 7
Generic term for the following:
Microsoft
Microsoft
Microsoft
Microsoft
Microsoft
Note that the 32-bit version is designated as "32-bit Windows
version is designated as "64-bit Windows
R
WindowsR 7 Starter Operating System,
R
WindowsR 7 Home Premium Operating System,
R
WindowsR 7 Professional Operating System,
R
WindowsR 7 Ultimate Operating System,
R
WindowsR 7 Enterprise Operating System
R
7".
R
7", and the 64-bit
PACKING LIST
Model Name Product Quantity
QD62 Type QD62 high-speed counter module 1
QD62E Type QD62E high-speed counter module 1
QD62D Type QD62D high-speed counter module 1
SW0D5C-QCTU-E GX Configurator-CT Version 1 (1-license product) (CD-ROM) 1
SW0D5C-QCTU-EA GX Configurator-CT Version 1 (Multiple-license product) (CD-ROM) 1
The product package contains the following.
A - 13 A - 13
1 OVERVIEW
1 OVERVIEW
MELSEC-Q
1
This User's Manual describes the specifications, handling and programming method
for the QD62, QD62E and QD62D high-speed counter modules (QD62 (E/D)) used
together with the MELSEC-Q series CPUs.
The QD62(E/D) modules are available with the following I/O types, maximum counting
speeds and number of channels.
Item QD62 QD62E QD62D
I/O type
Maximum counting speed 200 kPPS 500 kPPS
Number of channels 2 channels
The QD62(E/D) modules have the following input methods for 1 phase/2 phase pulse input:
• Phase 1 pulse input multiple of 1 • Phase 1 pulse input multiple of 2 • CW/CCW
• Phase 2 pulse input multiple of 1 • Phase 2 pulse input multiple of 2
• Phase 2 pulse input multiple of 4
See Section 5.1 for details on the input methods.
An overview of QD62 (E/D) operation is shown in the figure below.
DC input sinking
output
DC input sourcing
output
Differential input
sinking output
1) Counts the pulses to be input to the QD62 (E/D).
2) Preset or counter function can be selected with an external control signal.
3) The present count value and the coincidence output point setting value can be
compared to output a coincidence signal.
4) Using the sequence program, the I/O signal and buffer memory status of the
QD62 (E/D) can be verified.
Also, count start/stop, preset, and counter function can be selected.
1 - 1 1 - 1
1 OVERVIEW
MELSEC-Q
1.1 Features
The features of the QD62(E/D) are as follows:
(1) Counting can be performed in a wide range (The count value can be
expressed within the range between -2147483648 and 2147483647)
• A count value is stored in 32-bit signed binary.
• The number of channels is 2.
(2) The maximum counting speed can be changed
The maximum speed of the QD62D can be changed by selecting from among
500 k, 200 k, 100 k and 10 k, while that of the QD62 and QD62E can be selected
from among 200 k, 100 k and 10 k. This allows an error-free count even with
gradual rise/fall pulses.
(3) Pulse input can be selected
The pulse input can be selected from 1 phase multiple of 1, 1 phase multiple of 2,
2 phase multiple of 1, 2 phase multiple of 2, 2 phase multiple of 4, CW and CCW.
(4) Counter format can be selected
Either one of the following counter formats can be selected.
(a) Linear counter format
A count from -2147483648 to 2147483647 is possible and if the count
exceeds the range, an overflow will be detected.
(b) Ring counter format
This type counts pulses repeatedly within the range between the ring
counter upper limit and the ring counter lower limit.
(5) Coincidence output is possible
Any channel coincidence output point can be preset to compare with the present
counter value to output the ON/OFF signal output, or to start an interrupt program.
(6) Selection can be made from four counter functions
One of the following four functions can be selected.
(a) Count disable function
This function stops counting pulses by inputting a signal while CH Count
enable command (Y4, YC) is on.
(b) Latch counter function
This function latches the present value of the counter when the signal was
input.
(c) Sampling counter function
This function counts the pulses that were input within the preset time period
from the signal input.
(d) Periodic pulse counter function
This function stores the present and previous values of the counter at each
preset time interval while the signal is being input.
1 - 2 1 - 2
1
1 OVERVIEW
MELSEC-Q
(7) Execution of the preset function and the selected counter function
with an external control signal
(a) The preset function can be performed by applying a voltage to the preset
input terminal.
(b) The function selected from counter function selection can be performed by
applying a voltage to the function start input terminal.
(8) Easy settings using the GX Configurator-CT
The use of GX Configurator-CT sold separately allows you to execute the
QD62(E/D) setting on screen, resulting in reducing the number of sequence
programs.
Also, the use of GX Configurator-CT makes it easy to check the setting status
and operating status for modules.
(9) A blown fuse in the external output section can be detected
A blown fuse in the external output section can be detected; it is notified by the
input signal X and the LED display on the module.
1 - 3 1 - 3
2 SYSTEM CONFIGURATIONS
MELSEC-Q
2 SYSTEM CONFIGURATION
2.1 Applicable Systems
Applicable CPU module Base unit2
CPU type CPU model
Basic model QCPU
High Performance
model QCPU
Process CPU
Programmable
controller CPU
Redundant CPU
Universal model
QCPU
This chapter explains the system configuration of the QD62 (E/D).
This section describes the applicable systems.
(1) Applicable modules and base units, and No. of modules
(a) When mounted with a CPU module
The table below shows the CPU modules and base units applicable to the
QD62 (E/D) and quantities for each CPU model.
Depending on the combination with other modules or the number of
mounted modules, power supply capacity may be insufficient.
Pay attention to the power supply capacity before mounting modules, and if
the power supply capacity is insufficient, change the combination of the
modules.
Q00JCPU Up to 16
3
Q00CPU
Q01CPU
Q02CPU
Q02HCPU
Q06HCPU
Q12HCPU
Q25HCPU
Q02PHCPU
Q06PHCPU
Q12PHCPU
Q25PHCPU
Q12PRHCPU
Q25PRHCPU
Q00UJCPU Up to 16
Q00UCPU
Q01UCPU
Q02UCPU Up to 36
Q03UDCPU
Q04UDHCPU
Q06UDHCPU
Q10UDHCPU
Q13UDHCPU
Q20UDHCPU
Q26UDHCPU
: Applicable, : N/A
1 Limited within the range of I/O points for the CPU module.
2 Can be installed to any I/O slot of a base unit.
3 For the coincidence detection interrupt function, use the Basic model
QCPU of function version B or later.
4 Use the QD62 (E/D) whose serial No. (first five digits) is 09012 or later.
5 The coincidence detection interrupt function is not supported.
6 Connection of extension base units is not available with any safety
CPU.
REMARK
For use of a C Controller module, refer to the C Controller Module User’s Manual.
2 - 2 2 - 2
2 SYSTEM CONFIGURATIONS
(b) Mounting to a MELSECNET/H remote I/O station
The table below shows the network modules and base units applicable to
the QD62 (E/D) and quantities for each network module model.
Depending on the combination with other modules or the number of
mounted modules, power supply capacity may be insufficient.
Pay attention to the power supply capacity before mounting modules, and if
the power supply capacity is insufficient, change the combination of the
Applicable network
QJ72LP25-25
QJ72LP25G
QJ72LP25GE
QJ72BR15
modules.
module
1 Limited within the range of I/O points for the network module.
2 Can be installed to any I/O slot of a base unit.
3 The coincidence detection interrupt function is not supported.
MELSEC-Q
3
No. of mountable
modules 1
Up to 64
Main base unit of
remote I/O station
Base unit 2
Extension base unit of
remote I/O station
: Applicable, : N/A
REMARK
The Basic model QCPU or C Controller module cannot create the MELSECNET/H
remote I/O network.
(2) Support of the multiple CPU system
When using the QD62 (E/D) in a multiple CPU system, refer to the following
manual first.
• QCPU User's Manual (Multiple CPU System)
(a) QD62(E/D) supporting the multiple CPU system
There are no restrictions on the function version of the QD62(E/D) .
(b) Intelligent function module parameters
Write intelligent function module parameters to only the control CPU of the
QD62(E/D).
2 - 3 2 - 3
2 SYSTEM CONFIGURATIONS
(3) Supported software packages
Relation between the system containing the QD62 (E/D) and software package is
shown in the following table.
Q00J/Q00/Q01CPU
Q02/Q02H/Q06H/Q12H/
Q25HCPU
Q02PH/Q06PHCPU
Q12PH/Q25PHCPU
Q12PRH/Q25PRHCPU Redundant system
Q00UJCPU/Q00UCPU/
Q01UCPU
Q02U/Q03UD/
Q04UDH/Q06UDHCPU
Q10UDHCPU/
Q20UDHCPU
Q13UDH/Q26UDHCPU
Q03UDE/Q04UDEH/
Q06UDEH/Q13UDEH/
Q26UDEHCPU
Q10UDEHCPU/
Q20UDEHCPU
Q50UDEH/
Q100UDEHCPU
If installed in a MELSECNET/H remote I/O station
GX Developer or GX Works2 is required for the QD62(E/D).
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
Single CPU system
Multiple CPU system
(4) Connector
For the QD62(E/D), the connector is sold separately.
See Section 4.3 and make separate arrangements for the connector.
MELSEC-Q
Software Version
GX Developer GX Configurator-CT GX Works2
Version 7 or
later
Version 8 or
later
Version 4 or
later
Version 6 or
later
Version 8.68W
or later
Version 7.10L or
later
Version 8.45X
or later
Version 8.76E
or later
Version 8.48A
or later
Version 8.76E
or later
Version 8.62Q
or later
Version 8.68W
or later
Version 8.76E
or later
Not available Not available
Version 6 or
later
Version 1.10L or later
(cannot be used with the
SW0D5C-QCTU-E 50F
or earlier versions)
SW0D5C-QCTU-E 00A
or later
SW0D5C-QCTU-E 50F
or later
Version 1.13P or later
(cannot be used with the
SW0D5C-QCTU-E 50F
or earlier versions)
Version 1.16S or later
Version 1.25AB or later Version 1.15R or later
SW0D5C-QCTU-E 50F
or later
Version 1.15R or later
Version 1.87R or later
Version 1.31H or later
Version 1.40S or later
2 - 4 2 - 4
2 SYSTEM CONFIGURATIONS
2.2 About Use of the QD62 (E/D) with the Q00J/Q00/Q01CPU
Here, use of the QD62 (E/D) with the Q00J/Q00/Q01CPU is explained.
(1) Number of QD62 (E/D) that can be installed when the
Q00J/Q00/Q01CPU is used
See Section 2.1 concerning the number of QD62 (E/D) that can be installed
when the Q00J/Q00/Q01CPU is used.
(2) Limitations when using the Q00J/Q00/Q01CPU
To use the coincidence detection interrupt function, use the Q00J/Q00/Q01CPU
of function version B or later.
2.3 About Use of the QD62 (E/D) with the Redundant CPU
Here, use of the QD62 (E/D) with the Redundant CPU is explained.
(1) GX Configurator-CT
When using GX Developer to access the Redundant CPU through the intelligent
function module on the extension base unit, GX Configurator-CT cannot be used.
Connect a personal computer to the Redundant CPU with a communication path
indicated below.
MELSEC-Q
12
Main base unit
Extension base unit
(GX Configurator-CT cannot be used.)
1
Direct connection to the CPU
2
Connection through an intelligent function module on the main base unit
(Through Ethernet module, MELSECNET/H module, or CC-Link module)
2 - 5 2 - 5
2 SYSTEM CONFIGURATIONS
2.4 About Use of the QD62 (E/D) on the MELSECNET/H Remote I/O Station
Here, use of the QD62 (E/D) on the MELSECNET/H remote I/O station is explained.
(1) Number of QD62 (E/D) that can be installed when the remote I/O
station is used
See Section 2.1 concerning the number of QD62 (E/D) that can be installed
when the remote I/O station is used.
(2) Limitations when using the remote I/O station
(a) The coincidence detection interrupt function cannot be used.
(b) When the QD62 (E/D) is used on the MELSECNET/H remote I/O station, a
delay will occur due to the link scan time. Therefore, fully verify that there will
be no problem with controllability in the target system.
Example) When processing is executed using the counter value input by a
sequence program, variations will occur due to a delay in the link
scan time.
2.5 How to Check the Function Version/Serial No./Software Version
MELSEC-Q
Check the function version and serial No. of the QD62(E/D) and the GX ConfiguratorCT software version by the following methods.
(1) Checking the function version and serial No. of the QD62(E/D)
The serial number and function version of the QD62(E/D) can be checked on the
rating plate, on the front of the module, and on the System monitor window in GX
Developer.
(a) Confirming the serial number on the rating plate
The rating plate is situated on the side face of the QD62(E/D).
Serial No. (Upper 6 digits)
function version
Relevant regulation
standards
2 - 6 2 - 6
2 SYSTEM CONFIGURATIONS
(b) Checking on the front of the module
The serial No. on the rating plate is also indicated on the front of the
module (lower part).
MELSEC-Q
(c) Confirming the serial number on the system monitor (Product
Information List)
To display the system monitor, select [Diagnostics] [System monitor]
Product Inf. List
of GX Developer.
Function version
Serial No.
Production number
2 - 7 2 - 7
2 SYSTEM CONFIGURATIONS
POINT
The serial No. on the rating plate may be different from the serial No. displayed on
the product information window of GX Developer.
• The serial No. on the rating plate indicates the management information of the
product.
• The serial No. displayed on the product information window of GX Developer
indicates the function information of the product.
The function information of the product is updated when a new function is
added.
(2) Checking the software version of GX Configurator-CT
The software version of GX Configurator-CT can be checked by selecting [Help]
[Product information] of GX Developer.
MELSEC-Q
REMARK
The version indication for the GX Configurator-CT has been changed as shown
below from the SW0D5C-QCTU-E 50F upgrade product.
Previous product Upgrade and subsequent versions
SW0D5C-QCTU-E 50F
2 - 8 2 - 8
GX Configurator-CT Version 1.10L
3 SPECIFICATIONS
MELSEC-Q
3 SPECIFICATIONS
The following describes the performance specifications, I/O signals for the CPU
module and buffer memory specifications of the QD62(E/D).
For the general specifications of the QD62(E/D), see the User's Manual for the CPU
module used.
3.1 Performance Specifications
The following describes the performance specifications of the QD62(E/D):
Item
Counting speed switch settings 1 200 k (100 k to 200 kPPS) 100 k (10 k to 100 kPPS) 10 k (10 kPPS or less)
1: The counting speed switch settings can be set using the intelligent function module switch.
2: Counting speed is affected by pulse rise and fall time. Possible counting speeds are shown in the following
table. Note that if a pulse that has a large rise and/or fall time is counted, a miscount may occur.
Counting speed switch settings 200 k 100 k 10 k
Rise/fall time Both 1 and 2 phase input
t = 1.25 μ s or less 200 kPPS 100 kPPS 10 kPPS
t = 2.5 μ s or less 100 kPPS 100 kPPS 10 kPPS
t = 25 μ s or less
t = 500 μ s
—
— —
10 kPPS 10 kPPS
500 PPS
tt
3 - 1 3 - 1
3 SPECIFICATIONS
Item
Counting speed switch settings 1 200 k (100 k to 200 kPPS) 100 k (10 k to 100 kPPS) 10 k (10 kPPS or less)
1: The counting speed switch settings can be set using the intelligent function module switch.
2: Counting speed is affected by pulse rise and fall time. Possible counting speeds are shown in the following
table. Note that if a pulse that has a large rise and/or fall time is counted, a miscount may occur.
1: The counting speed switch settings can be set using the intelligent function module switch.
2: Counting speed is affected by pulse rise and fall time. Possible counting speeds are shown in the following
table. Note that if a pulse that has a large rise and/or fall time is counted, a miscount may occur.
Counting speed switch settings 500 k 200 k 100 k 10 k
Rise/fall time Both 1 and 2 phase input
t = 0.5 μ s or less 500 kPPS 200 kPPS 100 kPPS 10 kPPS
t = 1.25 μ s or less 200 kPPS 200 kPPS 100 kPPS 10 kPPS
t = 2.5 μ s or less
t = 25 μ s or less
t = 500 μ s
—
— —
— — —
100 kPPS 100 kPPS 10 kPPS
10 kPPS 10 kPPS
500 PPS
tt
3 - 3 3 - 3
3 SPECIFICATIONS
3.2 Function List
MELSEC-Q
Name Function Reference section
Linear counter function
Ring counter function
Coincidence output function
Coincidence detection
interrupt function
Preset function Rewrites the present counter value to any numeric value. Section 5.4
Disable count
function
Latch counter
Counter
function
selection
function
Sampling counter
function
Periodic pulse
counter function
The QD62(E/D) functions are listed below.
Values from -2147483648 to 2147483647 can be counted. If the count
exceeds the range, this function detects an overflow.
This function counts pulses repeatedly within the range between the
ring counter upper limit and the ring counter lower limit.
Compares the coincidence output point of any preset channel with the
present counter value, and outputs the ON/OFF signal.
Generates an interrupt signal to the CPU module when coincidence is
detected, and starts the interrupt program.
Stops the pulse count while the count enable command is being
executed.
Stores the present counter value at the time the counter function
selection start command signal is input in the buffer memory.
Counts the pulses that are input during the preset sampling time
period from the time the counter function selection start command is
input, and stores the count in the buffer memory.
This function stores the present and previous counter values to the
buffer memories at the preset cycle (T) while the counter function
selection start command signal is input.
Section 5.2.1
Section 5.2.2
Section 5.3
Section 6.2
Section 6.3
Section 6.4
Section 6.5
POINT
(1) Each function can be used together with other functions.
However, select either of the linear counter function or the ring counter function
and any one of the counter functions from counter function selection.
(2) The preset function and the function selected from counter function selection
can also be performed by the following external inputs.
• When using the preset function, apply a voltage to the preset input terminal.
• When using the function selected from counter function selection, apply a
voltage to the function start input terminal.
3 - 4 3 - 4
3 SPECIFICATIONS
MELSEC-Q
3.3 I/O Signals for the CPU Module
3.3.1 List of I/O signals
The I/O signals of the QD62(E/D) for the CPU module are listed in the table below.
For the I/O numbers (X/Y) and I/O addresses indicated in this and succeeding sections,
it is assumed that the QD62(E/D) is mounted into I/O slot 0 of the standard base
Input signal (Signal direction: QD62(E/D)
Device No. Signal name Device No.Signal name
X0 Module ready Y0 Coincidence signal No. 1 reset command
X1 Counter value large (point No. 1) Y1 Preset command
X2 Counter value coincidence (point No. 1)Y2 Coincidence signal enable command
X3 Counter value small (point No. 1) Y3 Down count command
Counter value small (point No. 2) YE Counter function selection start command
Output signal (Signal direction: CPU module
CH1
Coincidence signal No. 2 reset command
CH2
Coincidence signal No. 2 reset command
QD62(E/D))
3 - 5 3 - 5
3 SPECIFICATIONS
3.3.2 Functions of I/O signals
MELSEC-Q
The details of the I/O signals for the QD62(E/D) are listed in the table below.
(1) Input signals
Device No.
CH1 CH2
X0 Module ready
X1 X8 Counter value large (point No.1)
X2 X9
Counter value coincidence (point
No.1)
Signal name
QD62(E/D) CPU module
Description
• This signal turns on when the QD62(E/D) is ready for counting operation after the
CPU module is powered on or reset.
• Counting operation is not performed while this signal is off.
• This signal turns on when the following condition is met.
• This signal turns off when the following condition is met.
• This signal turns on when the following condition is met. And then, the on status will
be latched.
• This signal is turned off by CH Coincidence signal No.1 reset command (Y0, Y8).
• This signal is on immediately after the CPU module is powered on or reset because
both of the following buffer memories are set to "0".
Present value (Un\G2, Un\G3, Un\G34, Un\G35)
CH
Coincidence output point set No.1 (Un\G4, Un\G5, Un\G36, Un\G37)
CH
• This signal turns on when the following condition is met.
X3 XA Counter value small (point No.1)
X4 XB
X5 XC Counter value large (point No.2)
X6 XD
External preset request
detection
Counter value coincidence (point
No.2)
•This signal turns off when the following condition is met.
• This signal is turned on by a preset command from an external input terminal. And
then, the on status will be latched.
• This signal is turned off by CH
• This signal turns on when the following condition is met.
• This signal turns off when the following condition is met.
• This signal turns on when the following condition is met. And then, the on status will
be latched.
• This signal is turned off by CH Coincidence signal No.2 reset command (Y7, YF).
• This signal is on immediately after the CPU module is powered on or reset because
both of the following buffer memories are set to "0".
Present value (Un\G2, Un\G3, Un\G34, Un\G35)
CH
Coincidence output point set No.2 (Un\G6, Un\G7, Un\G38, Un\G39)
CH
External preset detection reset command (Y5, YD).
3 - 6 3 - 6
3 SPECIFICATIONS
MELSEC-Q
Device No.
CH1 CH2
X7 XE
XF Fuse broken detection flag This signal turns on when a fuse in the coincidence signal output part is blown.
Signal name
QD62(E/D) CPU module
Counter value small (point
No.2)
Description
• This signal turns on when the following condition is met.
• This signal turns off when the following condition is met.
3 - 7 3 - 7
3 SPECIFICATIONS
(2) Output signals
Device No.
CH1 CH2
Signal name
CPU module QD62(E/D)
Operation
timing
Description
MELSEC-Q
Y0 Y8
Y1 Y9 Preset command
Y2 YA
Y3 YB Down count command
Y4 YC Count enable command
Y5 YD
Y6 YE
Y7 YF
Coincidence signal No.1 reset
command
Coincidence signal enable
command
External preset detection reset
command
Counter function selection start
command
Coincidence signal No.2 reset
command
This signal is turned on to reset CH Counter value
coincidence (point No.1) (X2, X9).
This signal is turned on to perform the preset function.
This signal is turned on to output the status of CH
Counter value coincidence (point No.1) (X2, X9) and
CH Counter value coincidence (point No.2) (X6, XD)
to the external terminal.
This signal is turned on to count down pulses in the 1phase pulse input mode.
The module counts down pulses when the phase B
pulse input or CH
turned on.
For counting up, check that the phase B pulse input and
Down count command (Y3, YB) are off.
CH
This signal is turned on to perform counting operation.
This signal is turned on to reset CH External preset
request detection (X4, XB).
This signal is turned on to perform the selected counter
function.
• Latch counter function
• Sampling counter function
• Count disable function
• Periodic pulse counter function
This signal is turned on to reset CH Counter value
coincidence (point No.2) (X6, XD).
Down count command (Y3, YB) is
REMARK
The symbols used in the operation timing column signify the following:
•
•
3 - 8 3 - 8
………
………
Enabled while the signal is in ON status.
Enabled at signal rise (from OFF to ON).
3 SPECIFICATIONS
MELSEC-Q
3.4 Buffer Memory Assignments
(1) Buffer memory assignment list
Buffer memory assignments for the QD62 (E/D) are listed in the table below.
Address
CH1 CH2
Hexadecimal Decimal Hexadecimal Decimal
0H 0 20H 32 (L)
1H 1 21H 33
2H 2 22H 34 (L)
3H 3 23H 35
4H 4 24H 36 (L)
5H 5 25H 37
6H 6 26H 38 (L)
7H 7 27H 39
8H 8 28H40 Overflow detection flag 0 Read only
9H 9 29H41 Counter function selection setting
AH 10 2AH 42 Sampling/periodic setting
BH 11 2BH43 Sampling/periodic counter flag
CH 12 2CH 44 (L)
DH 13 2DH 45
EH 14 2EH 46 (L)
FH 15 2FH 47
10H 16 30H 48 (L)
11H 17 31H 49
12H 18 32H 50 (L)
13H 19 33H 51
14H 20 34H 52 (L)
15H 21 35H 53
16H 22 36H 54 (L)
17H 23 37H 55
18H
to
1F
H
24
to
31
1: The initial values are set when the power is turned on or the CPU module is reset.
2: Read or write values in the 32-bit signed binary format. (Be sure to use two words at a time.)
3 - 9 3 - 9
For details on the buffer memories, refer to this section (2) to this section (12).
(H)
(H)
(H)
(H)
(H)
(H)
(H)
(H)
(H)
(H)
Initial value
1
0
0 Read only
0
0
0 Read only
0
H
38
to
3F
H
POINT
Set data
Preset value setting
Present value
Coincidence output point set No. 1
Coincidence output point set No. 2
2
2
2
2
Latch count value2
Sampling count value
2
Periodic pulse count previous
2
value
Periodic pulse count present value
Ring counter minimum value
Ring counter maximum value
2
2
2
56
to
System area — —
63
(1) The system area and the areas not listed in the table are for the system and are
not available for users.
If they are written by user, the functions of the QD62(E/D) are not guaranteed.
(2) All data in the buffer memory of the QD62(E/D) are initialized when the
QD62(E/D) is powered on or the CPU module is reset.
For this reason, to save the necessary data, write/read the data to/from the
buffer memory by executing the FROM/DFRO/TO/DTO instructions in the
sequence program or performing auto refresh to the devices in the CPU
module.
Read/write
Read/write
enabled
Read/write
enabled
Read/write
enabled
Read/write
enabled
3 SPECIFICATIONS
(2) CH Preset value setting (Un\G0, Un\G1, Un\G32, Un\G33)
(3) CH Present value (Un\G2, Un\G3, Un\G34, Un\G35)
(4) CH Coincidence output point set No.1 (Un\G4, Un\G5, Un\G36,
(5) CH Overflow detection flag (Un\G8, Un\G40)
(6) CH Counter function selection setting (Un\G9, Un\G41)
MELSEC-Q
• This area is used to set the values that are preset in the counter.
• The setting range is between -2147483648 and 2147483647 (32-bit signed
binary).
• The present values for the counter are stored.
• The stored value range is between -2147483648 and 2147483647 (32-bit
signed binary).
Un\G37)
CH
Coincidence output point set No.2 (Un\G6, Un\G7, Un\G38,
Un\G39)
• This area is used to write the setting values of the coincidence output points to
be compared with the present counter value.
• Two coincidence detection output points, CH
No.1 (Un\G4, Un\G5, Un\G36, Un\G37) and CH
No.2 (Un\G6, Un\G7, Un\G38, Un\G39), can be set for each channel.
• The setting range is between -2147483648 and 2147483647 (32-bit signed
binary).
• A counter overflow occurrence status is stored when the counter format is
linear counter.
• The following values corresponding to the overflow occurrence status are
stored in this area.
Condition Buffer memory content
No overflow detection 0
Overflow occurred 1
• This area is used to set the data for which a counter function is selected.
• The relationships between the selected counter function and set value are
shown below.
Counter function selection Set value
Count disable function 0
Latch counter function 1
Sampling counter function 2
Periodic pulse counter function 3
Coincidence output point set
Coincidence output point set
3 - 10 3 - 10
3 SPECIFICATIONS
(7) CH Sampling/periodic setting (Un\G10, Un\G42)
(8) CH Sampling/periodic counter flag (Un\G11, Un\G43)
(9) CH Latch count value (Un\G12, Un\G13, Un\G44, Un\G45)
(10) CH Sampling count value (Un\G14, Un\G15, Un\G46, Un\G47)
(11) CH Periodic pulse count previous value (Un\G16, Un\G17,
(12) CH Ring counter minimum value (Un\G20, Un\G21, Un\G52,
MELSEC-Q
• This area is used to write the time setting values of the sampling counter
function and periodic pulse counter function during counter function selection.
• The setting range is between 1 and 65535 (16-bit signed binary)
unit is 10 (ms).
*1: When setting a value between 32768 and 65535 using a sequence program,
set the value in hexadecimal.
For example, for "62500", set the value "F424
Example) When "420" is set in this area
420
10= 4200 [ms]
• This area is used to store the function operating status while the sampling
counter function and periodic pulse counter function are being executed during
counter function selection.
• One of the values corresponding to the function operation status shown in the
table below is stored in this area.
Operating status Buffer memory content
Idling function 0
Executing function 1
• This area is used to store the latch count values when the latch counter
function is executed.
• The stored value range is between -2147483648 and 2147483647 (32-bit
signed binary).
• This area is used to store the sampling count values when the sampling
counter function is executed.
• The stored value range is between -2147483648 and 2147483647 (32-bit
signed binary).
Line driver level (AM26LS31 [manufactured by Texas
Instruments] or equivalent) that conforms to RS-422-A in
EIA Standard
EIA standard RS-422-A line driver level
Equivalent to AM26LS31 (made by Japan Texas
Instruments, Inc.)
hys Hysteresis (VT+ - VT-) 60 mV
V
IH(E) "H" level enable input voltage: 2 V or higher
V
IL(E) "L" level enable input voltage: 0.8 V or lower
V
A current type line driver cannot be used.
Input voltage
(guaranteed value)
Operating current
(guaranteed value)
Input
Output
A19 B13 Phase
A18 A12 Preset input 24 V
B18 B12 Preset input 12 V
A17 A11 Preset input 5 V
B17 B11 PRSTCOM
A16 A10 Function start input 24 V
B16 B10 Function start input 12 V
A15 A09 Function start input 5 V
B15 B09 FUNCCOM
A06 A05
B06 B05
B02, B01 12/24 V
A02, A01 0 V
pulse input
EQU1
(Coincidence output point No. 1)
EQU2
(Coincidence output point No. 2)
When ON 21.6 to 26.4 V 2 to 5 mA
When OFF5 V or less 0.1 mA or less
When ON 10.8 to 13.2 V 2 to 5 mA
When OFF4 V or less 0.1 mA or less
When ON 2.5 to 5.5 V 2 to 5 mA
When OFF1 V or less 0.1 mA or less
Response
time
When ON 21.6 to 26.4 V 2 to 5 mA
When OFF5 V or less 0.1 mA or less
When ON 10.8 to 13.2 V 2 to 5 mA
When OFF4 V or less 0.1 mA or less
When ON 2.5 to 5.5 V 2 to 5 mA
When OFF1 V or less 0.1 mA or less
Response
time
Operating voltage 10.2 to 30 V
Maximum load current 0.5 A/point, 2 A/common
Maximum voltage drop when ON 1.5 V
Response time OFF
Input voltage 10.2 to 30 V
Current consumption 8 mA (TYP 24 V DC)
Common for all channels
ON
OFF
0.5 ms or less
OFF
ON
0.5 ms or less
ON 0.1 ms or less
ON
OFF 0.1 ms or less (rated load,
resistive load)
ON OFF
1 ms or less
ON OFF
1 ms or less
1: Terminal numbers A08, A07, A03, A04, B08, B07, B04 and B03 are not used.
3 - 14 3 - 14
3 SPECIFICATIONS
3.6 Encoders that can be Connected
The encoders that can be connected to the QD62(E/D) are described below.
(1) Encoders that can be connected to the QD62 and QD62E
• Open collector output type encoders
• CMOS level voltage output type encoders
(Verify that the encoder output voltage meets the specifications for the QD62
and QD62E.)
(2) Encoders that can be connected to the QD62D
• Line driver output type encoders
(Verify that the encoder output voltage meets the specifications for the
QD62D.)
POINT
The following encoders cannot be used with the QD62(E/D).
• TTL level voltage output type encoders
MELSEC-Q
3 - 15 3 - 15
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
MELSEC-Q
4.1 Handling Precautions
4
The following describes the procedure prior to the QD62(E/D) operation, the name and
setting of each part of the QD62(E/D), and wiring method.
The following are the precautions for handling the QD62(E/D).
(1) Do not drop the module casing or connector, or do not subject it to strong impact.
(2) Do not remove the PCB of each module from its case. Doing so may cause
breakdowns.
(3) Be careful not to let foreign particles such or wire chips get inside the module.
These may cause fire, breakdowns and malfunctions.
(4) The top surface of the module is covered with a protective film to prevent foreign
objects such as wire chips 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 heat
ventilation.
(5) Tighten the screws such as module fixing screws within the following ranges.
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.
Screw location Tightening torque range
Module fixing screw (M3 screw)*1 0.36 to 0.48 N · m
Connector screw (M2.6 screw) 0.20 to 0.29 N · m
* 1 The module can be easily fixed onto the base unit using the hook at the top
of the module.
However, it is recommended to secure the module with the module fixing
screw if the module is subject to significant vibration.
(6) To mount the module on the base unit, fully insert the module fixing latch into the
fixing hole in the base unit and press the module using the hole as a fulcrum.
Improper installation may result in a malfunction or breakdown of the module, or
may cause the module to fall off.
4 - 1 4 - 1
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
MELSEC-Q
4.2 Procedure Before Starting the Operation
The figure below shows the steps that should be followed before starting the
QD62(E/D) operation.
4
4 - 2 4 - 2
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.3 Part Identification Nomenclature
The names of the parts used in the QD62(E/D) are shown below:
MELSEC-Q
Number Name Description
φ
A On: A voltage is being applied to phase A pulse input terminal.
φ
B On: A voltage is being applied to phase B pulse input terminal.
DEC. On: Pulses are being counted down.
1) LED
2) Connector for external devices (40 pins) A connector for I/O signal cables to/from external devices
3) Serial number display Displays the serial number of the QD62(E/D).
FUNC. On: A voltage is being applied to function start input terminal.
On: A voltage is being applied to the external power supply input
FUSE
terminal while the fuse in the coincidence signal output part is
blown.
4 - 3 4 - 3
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
MELSEC-Q
(1) Connector for external devices
The connectors for use with the QD62(E/D) should be purchased separately by
the user.
Soldering type, straight out A6CON1 0.3mm2(AWG22) (stranded)
Solderless type, straight out A6CON2 0.088 to 0.24mm2(AWG28 to 24)(stranded)
Pressure-welding type, straight out A6CON3
Soldering type, usable for straight out and diagonal outA6CON4 0.3mm2 (AWG22) (stranded)
The connector types are listed below.
(a) Precautions
• Use copper wires having temperature rating of 75°C or more for the
connectors.
• Tighten the connector screws within the following specified torque range.
(b) Connector types
Type Model nameApplicable wire size
AWG28 (stranded)
AWG30 (solid)
4 - 4 4 - 4
y
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.4 Wiring
The following explains how to wire the encoder and the controller to the QD62(E/D).
4.4.1 Wiring precautions
In order to fully utilise the functions of the QD62(E/D) and ensure system reliability,
external wiring having a minimum of noise effect must be provided.
The precautions regarding external wiring are described below.
(1) Different terminals have been prepared for connection depending on the voltage
of the input signal. Connecting a terminal of incorrect voltage may result in
malfunction or mechanical failure.
(2) For 1-phase input, always perform pulse input wiring on the Phase A side.
(3) When pulse status noise is input, the QD62(E/D) may miscount.
(4) Always provide the following measures against noise for high-speed pulse input:
(a) Use shielded twisted pair cables.
(b) Avoid placing the shielded twisted pair cables or input/output cables. Place
the cable at least 150 mm (5.9 inch) from such wires and perform wiring
using the least distance as possible.
(c) Individually ground the shielded cables on the encoder side (relay box) with
a ground resistance of 100
or less.
(d) An example of wiring incorporating measures against noise is shown below:
MELSEC-Q
• Ground the shielded twisted pair cable on the encoder side (relay box). (Wiring example: with an open
collector output type encoder (24 V DC))
Current for the encoder
To A
To B
To QD62 (E/D)
+ 24 V
0 V
24V
E
A
B
To the encoder
E
The shielded wire for the encoder and shielded
twisted pair cable are connected inside the rela
If the shielded wire for the encoder is not grounded
inside the encoder, ground it in the relay box, as
indicated by the dotted line.
4 - 5 4 - 5
box .
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.4.2 Wiring example of a module and an encoder
(1) Wiring example with an open collector output type encoder (24 V DC)
MELSEC-Q
POINT
When wiring the QD62, QD62E, and the encoder, separate the power supply cable
and signal cable. The following diagram shows an example.
[Wiring example]
[Incorrect wiring example]
4 - 6 4 - 6
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
(2) Wiring example with a voltage output type encoder (5 V DC)
MELSEC-Q
(3) Wiring example with a driver (equivalent to AM26LS31) encoder
4 - 7 4 - 7
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.4.3 Wiring example of a controller and an external input terminal
(1) When the controller (sink loading type) is 12 V DC
MELSEC-Q
4 - 8 4 - 8
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
(2) When the controller (source loading type) is 5 V DC
MELSEC-Q
4 - 9 4 - 9
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
(3) When the controller is a line driver
MELSEC-Q
4 - 10 4 - 10
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.4.4 Wiring example with an external output
When the coincidence output (EQU terminal) is used, an external power supply of 10.2
to 30 V DC will be required for operation of the internal photocopier. A wiring example
is shown below.
(1) For QD62, QD62D (Sink output type)
MELSEC-Q
(2) For QD62E (Source output type)
4 - 11 4 - 11
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.4.5 Using the connector/terminal block converter module
(1) The figure below shows the wiring when a connector/terminal block converter
module and a cable are used in the QD62 (E/D).
QD62
φ
A
φ
B
DEC.
FUNC.
CH1CH 2
FUSE
MELSEC-Q
QD62
Cable
AC05TB
AC10TB
AC20TB
AC30TB
AC50TB
AC80TB
AC100TB
Connector/ terminal block converter module
A6TBXY36
02468ACE
13579BDF
11131517 191B1D 1F
1012141618 1A
1C
24V
0V
0V
1E
24V
4 - 12 4 - 12
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
(2) The following table lists the signal names and the corresponding connector side
terminal numbers and terminal block side terminal symbols, when a
connector/terminal block converter module is used in the QD62(E/D) .
For the QD62 and QD62E
Signal name
Phase A pulse input 24 V A20 10
Phase A pulse input 12 V B20 0
Phase A pulse input 5 V A19 11
ABCOM B19 1
Phase B pulse input 24 V A18 12
Phase B pulse input 12 V B18 2
Phase B pulse input 5 V A17 13
Preset input 24 V B17 3
CH1
Preset input 12 V A16 14
Preset input 5 V B16 4
CTRLCOM A15 15
Function start input 24 V B15 5
Function start input 12 V A14 16
Function start input 5 V B14 6
EQU1
(Coincidence output point No. 1)
EQU2
(Coincidence output point No. 2)
Phase A pulse input 24 V A13 17
Phase A pulse input 12 V B13 7
Phase A pulse input 5 V A12 18
ABCOM B12 8
Phase B pulse input 24 V A11 19
Phase B pulse input 12 V B11 9
Phase B pulse input 5 V A10 1A
Preset input 24 V B10 A
Preset input 12 V A09 1B
CH2
Preset input 5 V B09 B
CTRLCOM A08 1C
Function start input 24 V B08 C
Function start input 12 V A07 1D
Function start input 5 V B07 D
EQU1
(Coincidence output point No. 1)
EQU2
(Coincidence output point No. 2)
12/24 V
0 V
Connector side
terminal
number
A06 1E
B06 E
A05 1F
B05 F
B02
B01
A02
A01
Terminal block
side terminal
symbol
24 V
0 V
For the QD62D
Signal name
Phase A pulse input A20 10
Phase A pulse input B20 0
Phase B pulse input A19 11
Phase B pulse input B19 1
Preset input 24 V A18 12
Preset input 12 V B18 2
Preset input 5 V A17 13
CH1
PRSTCOM B17 3
Function start input 24 V A16 14
Function start input 12 V B16 4
Function start input 5 V A15 15
FUNCCOM B15 5
EQU1
(Coincidence output point No. 1)
EQU2
(Coincidence output point No. 2)
Phase A pulse input A14 16
Phase A pulse input B14 6
Phase B pulse input A13 17
Phase B pulse input B13 7
Preset input 24 V A12 18
Preset input 12 V B12 8
Preset input 5 V A11 19
PRSTCOM B11 9
CH2
Function start input 24 V A10 1A
Function start input 12 V B10 A
Function start input 5 V A09 1B
FUNCCOM B09 B
EQU1
(Coincidence output point No. 1)
EQU2
(Coincidence output point No. 2)
12/24 V
0 V
MELSEC-Q
Connector side
terminal
number
A06 1E
B06 E
A05 1F
B05 F
B02
B01
A02
A01
Terminal block
side terminal
symbol
24 V
0 V
REMARK
If a connector/terminal block converter module is used in the QD62D, the terminals
on the terminal block side with symbols, C, D, 1C and 1D are not used.
4 - 13 4 - 13
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.5 Setting from GX Developer
This section explains the GX Developer settings required to operate the QD62(E/D).
4.5.1 Intelligent function module detailed setting
Sets an external output method for the CPU stop error and a CPU module operation
method for the QD62 (E/D) error detection.
1) Double-click "PLC parameter" in the project window in GX
Developer.
2) Click the "I/O assignment" tab.
3) Set the following items for the slot where the QD62(E/D) is
mounted, and then click Detailed setting.
MELSEC-Q
Item Description
Type Select "Intelli.".
Model Enter the model name of the module.
Points Select "16points".
Start XY Enter the start I/O number of the QD62(E/D).
4 - 14 4 - 14
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4) Clicking Detailed setting displays the "Intelligent function
module detailed setting" window.
Refer to the following and complete the setting.
MELSEC-Q
Setting for the QD62 (E/D) error detectionSetting for a CPU stop error
Item Description
Error time output mode Sets to either clear or hold the module output status when a
CPU stop error occurs.
Clear: Turns off all of the coincidence signal external
outputs when a CPU stop error occurs. (Default)
Hold: Holds the same on or off status before the CPU is
stopped for the coincidence signal external
outputs when a CPU stop error occurs.
H/W error time PLC
operating mode
Sets to either stop or continue the CPU module operation
when an intelligent function module error (SP.UNIT DOWN)
is detected.
Stop: Stops the CPU module operation when the QD62
(E/D) error is detected. (Default)
Continue: Continues the programs for modules other than
those in which an error was detected when the
QD62 (E/D) error is detected.
The QD62 (E/D) error (SP.UNIT DOWN) is detected when
the Unit READY flag is not in the READY status due to a
module hardware failure.
4 - 15 4 - 15
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
4.5.2 Switch setting for intelligent function module
Five switches (switch numbers 1 to 5) are available for the intelligent function module
and they are set with 16 bit data.
If the switches for the intelligent function module are not set, the default value of 0 is
used for switches 1 to 5.
1) Click the I/O assignment tab of the PC parameter window
in GX Developer. (Refer to Section 4.5.1)
MELSEC-Q
4 - 16 4 - 16
4 SETUP AND PROCEDURE BEFORE STARTING THE OPERATION
MELSEC-Q
2) Click the Switch setting button. Consequently, the Switch
setting for the "I/O and intelligent function module" window
Item Data item Description Reference
0
Switch 1
(for channel 1)
Switch 2
(for channel 2)
Switch 3
Switch 4
Switch 5
When any item is set, delete the settings and leave the field blank.
POINT
The counting speed setting of 500kPPS can only be used with the QD62D. Setting
the counting speed to 500k PPS for the QD62 and QD62E may cause miscounts.
Thus, do not use this setting for the QD62 and QD62E.
The reserved switches in the intelligent function module switch setting items are for
system use, not for users. Therefore, always fix them to 0. If used (changed from 0
to 1) by a user, the operations of the QD62(E/D) are not ensured.
will be displayed.
Select "HEX".
Pulse input mode
H
Same data item as the switch 1 (for CH1). -
0: 1-phase multiple of 1
1: 1-phase multiple of 2
2: CW /CCW
3: 2-phase multiple of 1
4: 2-phase multiple of 2
5: 2-phase multiple of 4
Counting speed setting
0: 10 k PPS
1: 100 k PPS
2: 200 k PPS
3: 500 k PPS
(Only for the QD62D)
Counter format
0: Linear counter
1: Ring counter
No settings (blank)
Sets the pulse input mode.
Sets the counting speed.
Sets the counter format.
Section 5.1.1
Section 3.1
Section 5.1.1
Section 5.1.2
-
3) After the setting, click the End button.
4 - 17 4 - 17
5 BASIC USAGE
MELSEC-Q
5 BASIC USAGE
This section explains the basic usage of the QD62(E/D).
5.1 Pulse Input and Counting Method
5.1.1 Types of pulse input methods
Six types of the pulse input methods are available. These include 1 phase multiple of 1,
1 phase multiple of 2, CW/CCW pulse input, 2 phase multiple of 1, 2 phase multiple of
2, and 2 phase multiple of 4. The following table shows the pulse input methods and
Pulse input method Count timing
1-phase multiple of 1
1-phase multiple of 2
CW/CCW
2-phase multiple of 1
2-phase multiple of 2
2-phase multiple of 4
5 - 1 5 - 1
count timings.
For addition count
For subtraction count
For addition count
For subtraction count
For addition count
For subtraction count
For addition count
For subtraction count
For addition count
For subtraction count
For addition count
For subtraction count
B and
CH Down
count command
(Y3, YB)
B or
CH Down
count command
(Y3, YB)
B and
CH Down
count command
(Y3, YB)
B or
CH Down
count command
(Y3, YB)
A
A
A
A
A
B
A
B
A
B
A
B
A
B
A
B
A
B
A
B
Count at φ A rise ( )
φ
B and CH Down count command (Y3,
YB) are OFF
Count at φ A fall ( )
φ
B or CH Down count command (Y3,
YB) is ON
Count at φ A rise ( ) and fall ( )
φ
B and CH Down count command (Y3,
YB) are OFF
Count at φ A rise ( ) and fall ( )
φ
B or CH Down count command (Y3,
YB) is ON
Count at φ A rise ( )
φ
B is OFF
φ
A is OFF
Count at
Count at φ A rise ( ) when φ B is OFF
Count at φ A fall ( ) when φ B is OFF
Count at φ A rise ( ) when φ B is OFF
Count at
Count at φ A rise ( ) when φ B is ON
Count at
Count at φ A rise ( ) when φ B is OFF
Count at
Count at
Count at
Count at φ A rise ( ) when φ B is ON
Count at
Count at
Count at
φ
B rise (
φ
A fall ( ) when φ B is ON
φ
A fall ( ) when φ B is OFF
φ
A fall ( ) when φ B is ON
φ
B rise ( ) when φ A is ON
φ
B fall ( ) when φ A is OFF
φ
A fall ( ) when φ B is OFF
φ
B rise ( ) when φ A is OFF
φ
B fall ( ) when φ A is ON
)
5
5 BASIC USAGE
MELSEC-Q
POINT
For 1-phase pulse input and counting up, make sure that the phase B pulse input
and CH
Down count command (Y3, YB) are off before inputting pulses to phase
A.
When the phase B pulse input or CH
Down count command (Y3, YB) is on,
pulses are counted down in phase A pulse input.
(1) Phase 1 pulse input
For phase 1 pulse input, either a multiple of 1 or multiple of 2 count method can
be selected.
The following figure shows the relationship between phase A pulse input and
phase B pulse input or CH
Encoder
Pulse input
Down count command (Y3, YB).
QD62(E/D)
A
5
B or CH Down count command
(Y3, YB)
B
(2) CW/CCW pulse input
For CW/CCW pulse input, the up count is performed when there is a phase A
pulse input, and the down count is performed when there is a phase B pulse input.
The relationship between the phase A pulse input and phase B pulse input is
shown below.
Encoder
Addition pulse input
QD62(E/D)
A
Encoder
Subtraction pulse input
B
(3) Phase 2 pulse input
For phase 2 pulse input, either a multiple of 1, multiple of 2, or multiple of 4 count
method can be selected.
The phase difference between the phase A pulse and phase B pulse determines
whether the up count or down count is performed.
The relationship between the phase A pulse input and phase B pulse input is
shown below.
QD62(E/D)
Encoder
Phase A pulse input
Phase B pulse input
A
B
5 - 2 5 - 2
5 BASIC USAGE
5.1.2 Setting the count method
The count method is set using the GX Developer intelligent function module switch
setting.
See Section 4.5 for details on the setting method.
5.1.3 Reading the present values
This section explains the methods of reading the present values stored in the buffer
memory or the count values when counter function selection is executed.
(1) The present value is stored in CH
Un\G35) regardless of the counter function used.
When the latch counter, the sampling counter, or the periodic pulse counter
function is performed, each count value is stored in the buffer memory listed in the
table below.
Description
Buffer
memory
address
CH1
CH2
(2) The present value and the counter function selection count values are stored in
the buffer memories in 32-bit signed binary.
The latest count values can be read from the buffer memories because the buffer
memory data are automatically updated by count operation.
POINT
When reading the present values or the counter function selection count values,
use the DFRO instruction and always read values in two-word units. When reading
the values in one-word units, if the count values are updated in the middle of read
processing, a mismatch may occur between the data contents of the lower and
higher words, possibly causing the system to read incorrect count values.
[Program example]
[Example of an undesirable program]
Present
value
Un\G2,
Un\G3
Un\G34,
Un\G35
X20
X20
Latch count
value
Un\G12,
Un\G13
Un\G44,
Un\G45
MELSEC-Q
Present value (Un\G2, Un\G3, Un\G34,
Counter function selection count value
Sampling
count value
Un\G14,
Un\G15
Un\G46,
Un\G47
DFRO
Periodic pulse count
previous value
Un\G16, Un\G17 Un\G18, Un\G19
Un\G48, Un\G49 Un\G50, Un\G51
H00 H02 D0K1
Periodic pulse count
present value
FROM
H00 H03 D1K1
FROM
H00 H02 D0K1
5 - 3 5 - 3
5 BASIC USAGE
5.2 Selecting the Counter Format
Select either linear counter or ring counter with the GX Developer intelligent function
module switch setting.
See Section 4.5 for details on the setting method.
5.2.1 Selecting the linear counter
(1) Linear counter operation
When the linear counter is selected, the count operation is performed between
-2147483648 (minimum value) and 2147483647 (maximum value).
The linear counter can be used in combination with the preset function and the
coincidence output function.
Counter present value
Overflow
+ 2147483647
MELSEC-Q
0
Subtraction
Overflow
Addition
– 2147483648
(2) Overflow error
(a) When the counter format is linear counter, an overflow error occurs if the
present counter value exceeds -2147483648 (minimum value) during
subtraction or exceeds 2147483647 (maximum value) during addition.
(b) When an overflow error occurs, "1" is stored in CH
Overflow detection flag
(Un\G8, Un\G40), the counting stops, and the present value does not
change from -2147483648 or 2147483647 even if pulses are input.
(c) The overflow error can be cleared by performing the preset function.
When the preset function is performed, "0" is stored in CH
Overflow
detection flag (Un\G8, Un\G40) and the counting can be resumed.
(d) Occurrence of overflow error can be checked on the System Monitor window.
For details, refer to Section 9.1.
5 - 4 5 - 4
5 BASIC USAGE
5.2.2 Selecting the ring counter
(1) Ring counter operation
This function repeatedly counts pulses between the range specified in CH Ring
counter minimum value (Un\G20, Un\G21, Un\G52, Un\G53) and CH
counter maximum value (Un\G22, Un\G23, Un\G54, Un\G55).
When the ring counter is being selected, an overflow error does not occur.
The ring counter can be used in combination with the preset function and the
coincidence output function.
Present counter value
Count down
(2) Ring counter count range
The count range of the ring counter is determined by the relationship between
CH
Present value (Un\G2, Un\G3, Un\G34, Un\G35) and the ring counter
lower/upper limits when CH
when the preset function is performed.
Normally the range used is "ring counter minimum value ≤
counter maximum value".
• For up count
When the present value reaches the ring counter maximum value, the ring
counter minimum value is automatically stored as the present value.
• For down count
Even if the present value reaches the ring counter minimum value, the ring
counter minimum value will be retained as is. With the next subtraction pulse,
(ring counter maximum value -1) will be stored as the present value.
In counting up and down, the ring counter upper limit value is not stored in CH
Present value (Un\G2, Un\G3, Un\G34, Un\G35).
For example, if the count is enabled with the ring counter minimum value of 0, the
ring counter maximum value of 2000 and the present value of 500, the count
range and present value will change as shown in the figure below.
-2147483648
MELSEC-Q
Ring
+2147483647
CH Ring counter maximum value (Un\G22, Un\G23, Un\G54, Un\G55)
0
Count up
CH Ring counter minimum value (Un\G20, Un\G21, Un\G52, Un\G53)
-2147483648
Count enable command (Y4, YC) is turned on or
present value ≤ ring
Ring counter minimum value
0
Counting range
Ring counter maximum value
Present value
500
2000
2147483647
Ring counter
Present value
50050119981999to012to498499
maximum value
(2000)
Ring counter
minimum value
Ring counter maximum value,
2000 is not stored in CH Present
value
(Un\G2, Un\G3, Un\G34, Un\G35).
5 - 5 5 - 5
5 BASIC USAGE
MELSEC-Q
(a) The ring counter will operate as follows when the "present value < ring
counter minimum value" or "ring counter maximum value < present value".
• For up count
Even if the present value reaches the ring counter minimum value, the
ring counter minimum value will be retained as is. With the next addition
pulse, (ring counter maximum value +1) will be stored as the present
value.
• For down count
When the present value reaches the ring counter maximum value, the ring
counter minimum value is automatically stored as the present value.
In counting up and down, the ring counter upper limit value is not stored in
CH
Present value (Un\G2, Un\G3, Un\G34, Un\G35).
For example, if the count is enabled with the ring counter minimum value of
0, the ring counter maximum value of 2000 and the present value of 3000,
the count range and present value will change as shown in the figure below.
Ring counter minimum value
0
-2147483648
Counting range
Ring counter maximum value
2000
Present value
3000
2147483647
Counting range
Ring counter
Present value
3000 30012001to-2-10to20022998
2147483647 -2147483648
maximum value
(2000)
to2999
Ring counter
minimum value
Ring counter maximum value, 2000
is not stored in CH Present value
(Un\G2, Un\G3, Un\G34, Un\G35).
(b) When "Ring counter lower limit = Ring counter upper limit" is met, a value
that can be expressed in 32-bit signed binary (-2147483648 to 2147483647)
will be the counting range, regardless or the present value.
POINT
(1) While CH Count enable command (Y4, YC) is on, even if values are written
to CH
CH
Ring counter minimum value (Un\G20, Un\G21, Un\G52, Un\G53) and
Ring counter maximum value (Un\G22, Un\G23, Un\G54, Un\G55), the
stored values do not change.
Turn off CH
Count enable command (Y4, YC) before changing the ring
counter upper/lower limit value.
(2) Turn off CH
Count enable command (Y4, YC) before changing the count
range by the preset function.
5 - 6 5 - 6
5 BASIC USAGE
5.3 Using the Coincidence Output Function
The coincidence output function presets any count value, compares it with the present
counter value, and outputs a signal when they match. For the coincidence output, 2
points can be set for each channel.
When using external output of the coincidence signal, turn on CH
enable command (Y2, YA) beforehand.
(1) Coincidence Output Operation
The I/O numbers (X/Y) and the buffer memory addresses used in (1) are for
coincidence output point No.1.
For the I/O numbers and buffer memory addresses for coincidence output point
No.2, refer to the following.
• Section 3.3.1 (List of I/O signals)
• Section 3.4 (Buffer Memory Assignments)
MELSEC-Q
Coincidence signal
CH Count enable command
(Y4, YC)
CH Coincidence signal enable
command (Y2, YA)
Counter input pulse
CH Coincidence output point set No.1
(Un\G4, Un\G5, Un\G36, Un\37)
CH Counter value small
(point No.1) (X3, XA)
CH Counter value coincidence
(point No.1) (X2, X9)
CH Coincidence signal No.1 reset
command (Y0, Y8)
CH Counter value large (point No.1)
(X1, X8)
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
1) 100
2)
3)
4)
CH Present value
(Un\G2, Un\G3, Un\G34, Un\35)
1031021011009998to210
Number Description
Write a coincidence output point setting value to CH
1)
the QD62(E/D) in 32-bit signed binary.
When the count value matches the coincidence output point setting value, CH
2)
and CH
Turn on CH
X9).
3)
If CH
When the counter value exceeds the coincidence output point setting value, CH
4)
turns on.
Counter value coincidence (point No.1) (X2, X9) turns on.
Coincidence signal No.1 reset command (Y0, Y8) to reset CH Counter value coincidence (point No.1) (X2,
Counter value coincidence (point No.1) (X2, X9) remains on, the next coincidence signal cannot be output.
Coincidence output point set No.1 (Un\G4, Un\G5, Un\G36, Un\G37) of
Counter value small (point No.1) (X3, XA) turns off
Counter value large (point No.1) (X1, X8)
5 - 7 5 - 7
5 BASIC USAGE
MELSEC-Q
POINT
Perform the following before turning on CH Coincidence signal enable command
(Y2, YA).
(1) Using any of the following methods, make the coincidence output point setting
value and present value different.
• Changing the coincidence output point setting
• Changing the present value by preset
• Inputting a pulse and changing the present value
(2) Turn off, on, and then off CH
Y8).
When CH
counting starts or while the coincidence output point setting value matches the
present value, coincidence output is performed.
(3) CH
output point set No.1 (Un\G4, Un\G5, Un\G36, Un\G37) are both "0"
immediately after the CPU module is powered on or reset. Therefore, CH
Counter value coincidence (point No.1) (X2, X9) turns on.
Coincidence signal No.1 reset command (Y0,
Coincidence signal enable command (Y2, YA) is turned on before
Present value (Un\G2, Un\G3, Un\G34, Un\G35) and CH Coincidence
5 - 8 5 - 8
5 BASIC USAGE
Interrupt program execution timing
MELSEC-Q
(2) Output status setting during a CPU stop error
The output status (clear/hold) can be set for the external output signal when a
CPU stop error occurs.
The output status is set using the GX Developer I/O assignment.
See Section 4.5 for details on the I/O assignment setting method.
(3) Coincidence detection interrupt function
The coincidence detection interrupt function allows making an interrupt request to
a CPU module at the time of coincidence detection to start the interrupt program.
(When the CPU module is a Q00J/Q00/Q01CPU, use function version B or later.)
(a) With the MELSEC-Q series intelligent function module, each module can
have up to 16 points of interruption factors (SI).
The QD62 (E/D) has 4 points of interrupt factors corresponding to the
coincidence outputs shown below.
SI No. Interruption factor
0 Channel 1: Coincidence detection for coincidence output point No. 1
1 Channel 1: Coincidence detection for coincidence output point No. 2
2 Channel 2: Coincidence detection for coincidence output point No. 1
3 Channel 2: Coincidence detection for coincidence output point No. 2
4 to 15 Vacant
CH Counter value coincidence (point No.1) (X2, X9)
I/O signals
Internal
processing
of
CPU module
CH Counter value coincidence (point No.2) (X6, XD)
CH Coincidence signal No.1 reset command (Y0, Y8)
CH Coincidence signal No.2 reset command (Y7, YF)
- "Interrupt pointer settings" to set the interrupt factors (SI) of the QD62(E/D)
and interrupt pointers of the CPU module.
1) CPU side [Interrupt pointer start No.]
Set the start interrupt pointer number of the CPU module.
Setting range: 50 to 255
2) PLC side "Interrupt pointer No. of module"
Set the number of interrupt factors (SI).
Setting range: 1 to 4
5 - 9 5 - 9
5 BASIC USAGE
MELSEC-Q
3) Intelli. module side "Start I/O No."
Set the start I/O number of the QD62(E/D).
Setting range: 0000 to 0FF0 (H)
4) Intelli. module side "Start SI No."
Set the start interrupt factor (SI) No. of the QD62(E/D).
Setting range: 0 to 3
The following example shows SI 0 to 3 of the QD62(E/D) installed in the slot
where the start I/O is 20 being assigned to interrupt pointers I50 to I53.
(c) The following two methods are available for using only specific SI numbers:
1) Method using the parameter interrupt pointer setting
The interruption factors are used only for the start SI number and the
additional number of pointers, only which are specified in the "Intelligent
function module interrupt point setting" window. For example, if the start
SI number is set as 1 and the number of pointers is set as 2, only SI 1
and 2 are used. Also, the interrupt function cannot be used when the
parameter interrupt pointer setting has not been set.
2) Method using the IMASK instruction from the sequence program
When the IMASK instruction is used, interrupt program execution
enable/disable (interrupt mask) can be set for each interrupt pointer
number.
For details on the IMASK instruction, refer to the MELSEC-Q/L
Programming Manual (Common Instruction).
POINT
A coincidence detection interrupt occurs when the counter value coincidence signal
rises (off to on). Thus, the next interrupt request does not occur unless the
coincidence signal is reset and the counter value coincidence signal is turned OFF.
5 - 10 5 - 10
5 BASIC USAGE
5.4 Using the Preset Function
The preset function rewrites the present counter value to any numeric value called the
preset value. The preset function can be used when starting the pulse count from the
preset value.
The preset function has two preset methods: preset using a sequence program and
preset using an external control signal.
(1) Preset using a sequence program
Perform the preset function by turning on CH Preset command (Y1, Y9) in the
sequence program.
CH Count enable command
(Y4, YC)
Counter input pulse
ON
OFF
MELSEC-Q
CH Preset value setting
(Un\G0, Un\G1, Un\G32, Un\G33)
CH Preset command
(Y1, Y9)
CH Present value
(Un\G2, Un\G3, Un\G34, Un\G35)
ON
OFF
1)
1000
2)
to
101100676665210
102 103 104 105
Number Description
1)
Write a value to CH Preset value setting (Un\G0, Un\G1, Un\G32, Un\G33) in
32-bit signed binary.
On the rising edge (off to on) of CH
Preset command (Y1, Y9), the value
stored in CH Present value (Un\G2, Un\G3, Un\G34, Un\G35) is replaced with
2)
the value stored in CH
Preset value setting (Un\G0, Un\G1, Un\G32, Un\G33).
The preset function is performed regardless of the on/off status of CH
Count
enable command (Y4, YC).
5 - 11 5 - 11
5 BASIC USAGE
(2) Preset using an external control signal
Preset is performed by applying ON voltage to the preset input terminal for
external input.
CH Count enable command
(Y4, YC)
Counter input pulse
ON
OFF
MELSEC-Q
CH Preset value setting
(Un\G0, Un\G1, Un\G32, Un\G33)
Write a value to CH Preset value setting (Un\G0, Un\G1, Un\G32, Un\G33) in
32-bit signed binary.
On the rising edge (off to on) of the preset command (when a voltage is applied
2)
to the preset input terminal), the value stored in CH
Un\G3, Un\G34, Un\G35) is replaced with the value stored in CH
setting (Un\G0, Un\G1, Un\G32, Un\G33).
The preset function is performed regardless of the on/off status of CH
Present value (Un\G2,
Preset value
Count
enable command (Y4, YC).
POINT
While CH External preset request detection (X4, XB) is on (3)), the preset
function cannot be performed even if a voltage is applied to the preset input
terminal or CH
The preset function can be performed when CH
(X4, XB) is turned off by turning on CH
Preset command (Y1, Y9) is turned on.
External preset request detection
External preset detection reset command
(Y5, YD) (4)).
5 - 12 5 - 12
6 CONVENIENT USAGE
MELSEC-Q
6 CONVENIENT USAGE
6.1 Selecting the Counter Function
By selecting the counter function with the counter function selection setting, the disable
count function, latch counter function, sampling counter function and periodic pulse
counter function can be used.
To select a counter function, write the corresponding value shown in the following table
to CH
To perform the selected counter function, input the counter function selection start
command by applying a voltage to the function start input terminal or by turning on
CH
Also, for the counter function selection, only one of the following four functions can be used.
(1) Disable count function
(2) Latch counter function
(3) Sampling counter function
(4) Periodic pulse counter function
Counter function selection setting (Un\G9, Un\G41).
Counter function selection start command (Y6, YE) with sequence program.
Counter function selection Set valueRemarks
Disable count function 0Initial value (default)
Latch counter function 1
Sampling counter function 2
Periodic pulse counter function 3
This function stops counting pulses by inputting the counter function selection
start command while CH
This function latches the present value when the counter function selection start
command is input to CH
Un\G45).
This function counts the input pulses during the preset sampling period since the
time the counter function selection start command was entered.
This function stores the present value and previous value for each preset periodic
time while the counter function selection start command is being entered.
POINT
(1) Change the counter function while CH Counter function selection start
command (Y6, YE) is off.
(2) The selected counter function can be performed by turning on CH
function selection start command (Y6, YE) or by applying a voltage to the
function start input terminal. Note that a signal that is input first takes priority.
(3) Time (T) for the sampling counter function or the periodic pulse counter function can
be set by writing a value within the range of 1 to 65535 to CH
setting (Un\G10, Un\G42). The value can be set in increments of 10 ms.
(Example) When CH
420
Count enable command (Y4, YC) is on.
Latch count value (Un\G12, Un\G13, Un\G44,
Sampling/periodic
Sampling/periodic setting (Un\G10, Un\G42) is set to 420
10 = 4200 (ms)
Counter
6
6 - 1 6 - 1
6 CONVENIENT USAGE
6.1.1 Reading the counter function selection count value
MELSEC-Q
6
The counter function selection count values are stored when the counter function
selection is executed.
When the latch counter, the sampling counter, or the periodic pulse counter function is
performed, each count value is stored in the buffer memory listed in the table below.
Counter function selection count value
Contents
Buffer
memory
address
CH1
CH2
Present
value
Un\G2,
Un\G3
Un\G34,
Un\G35
Latch count
value
Un\G12,
Un\G13
Un\G44,
Un\G45
Sampling
count value
Un\G14,
Un\G15
Un\G46,
Un\G47
Periodic pulse
count previous
value
Un\G16,
Un\G17
Un\G48,
Un\G49
Periodic pulse
count present
value
Un\G18,
Un\G19
Un\G50,
Un\G51
The present value and the counter function selection count values are stored in the
buffer memories in 32-bit signed binary.
Also, since the contents of the buffer memory are automatically updated by the count
operation, the latest count values can be read from the buffer memory.
POINT
(1) When reading the present and counter function selection count values, use the
DFRO instruction and always read values in two-word units. When reading
values in one-word units, if the count values are updated in the middle of read
processing, a mismatch may occur between the data contents of the lower and
higher words, possibly causing the system to read incorrect count values.
[Program example]
X20
DFRO
H00 H0E D0
K1
[Example of an undesirable program]
X20
FROM
FROM
H00 H0F D1K1
H00 H0E D0
K1
(2) Although the latch count value and present periodic pulse count value are
stored in different addresses, the same values are always stored (updated at
the same time). Thus, when the latch counter function or periodic pulse
counter function is executed, the present periodic pulse count value and latch
count value do not retain their previous values.
6 - 2 6 - 2
6 CONVENIENT USAGE
6.1.2 Count error
A count error may occur while the selected counter function is performed by external
input (a voltage is applied to the function start input terminal) or by sequence program
(CH
Counter function selection start command (Y6, YE) is turned on).
(1) Count error (maximum) due to input response delay when using an
external input
(2) Count error (maximum) when the counter function selection is
executed by a sequence program
(3) Count error (maximum) due to the internal clock when executing
the sampling counter function and periodic pulse counter function
Sampling/cycle time setting value x 10 [ms]
1 [ms]
1000
1 scan time [ms]
[s]
pulse input speed [PPS] multiple [count]
1000
1000
[s]
pulse input speed [PPS] multiple [count]
Error in parts dimensions, 100 [ppm]
[s]
1000000
MELSEC-Q
Pulse input speed [pps]Multiplier factor [count]
(Sampling/cycle time setting value (unit: 10ms)) Pulse input speed [pps] Multiplier factor [count]
1000000
6 - 3 6 - 3
6 CONVENIENT USAGE
6.2 Using the Disable Count Function
The disable count function stops the count operation while the count enable command
is ON.
The relationships between the count enable command, counter function selection start
command and the present counter value are illustrated below.
CH Count enable command
(Y4, YC)
ON
OFF
1)8)6)
MELSEC-Q
CH Counter function selection
start command (Y6, YE)
Counter function selection start
command (function start input)
CH Present value
(Un\G2, Un\G3, Un\G34, Un\G35)
9)
ON
OFF
ON
OFF
2)7)3)
4)5)
Pulses actually input
Count value stored in
CH Present value
0
Count
stop
Count
stop
Count
stop
(Un\G2, Un\G3, Un\G34, Un\G35)
Count stop
Number Description
1) Count starts when CH Count enable command (Y4, YC) is turned on.
2)
3)
4)
5)
Count stops when CH
turned on.
Count restarts when CH
turned off.
Count operation stops when the count function selection start command
(function start input) turns on.
Count operation resumes when the count function selection start command
(function start input) turns off.
6) Count stops when CH Count enable command (Y4, YC) is turned off.
7)
Count stops regardless of the on/off status of CH
start command (Y6, YE) because CH
Even though CH
8)
stopped because CH
on.
9)
Count restarts when CH
turned off.
Counter function selection start command (Y6, YE) is
Counter function selection start command (Y6, YE) is
Counter function selection
Count enable command (Y4, YC) is off.
Count enable command (Y4, YC) is turned on, count remains
Counter function selection start command (Y6, YE) is
Counter function selection start command (Y6, YE) is
6 - 4 6 - 4
6 CONVENIENT USAGE
6.3 Using the Latch Counter Function
The latch counter function latches the present counter value at the time a signal was
entered.
The following figure shows the relationship among the present value of the counter, the
counter function selection start command, and CH
Un\G13, Un\G44, Un\G45).
CH Count enable command
(Y4, YC)
ON
OFF
MELSEC-Q
Latch count value (Un\G12,
CH Present value
(Un\G2, Un\G3, Un\G34, Un\G35)
CH Counter function selection start
command (Y6, YE)
Counter function selection start command
(function start input)
CH Latch count value
(Un\G12, Un\G13, Un\G44, Un\G45)
150
100
ON
OFF
150
100
50
50
130
100
50
0
0
0
1)2)3)4)
130
100
50
0
At the rise of CH
Counter function selection start command (Y6, YE) or the counter
function selection start command (function start input) of 1) to 4), the present value of
the counter is stored in CH
The latch counter function can be performed regardless of whether CH
Latch count value (Un\G12, Un\G13, Un\G44, Un\G45).
Count enable
command (Y4, YC) is on or off.
6 - 5 6 - 5
6 CONVENIENT USAGE
6.4 Using the Sampling Counter Function
This function counts the pulses input in the specified sampling time (T).
The relationships between the signals, buffer memory, etc. in the sampling counter
CH Count enable command
(Y4, YC)
CH Present value
(Un\G2, Un\G3, Un\G34, Un\G35)
function are illustrated below.
ON
OFF
200
100
0
MELSEC-Q
5)
CH Counter function selection start
command (Y6, YE)
Counter function selection start command
(function start input)
CH Sampling count value
(Un\G14, Un\G15, Un\G46, Un\G47)
CH Sampling/periodic counter flag
(Un\G11, Un\G43)
ON
OFF
200
100
0
-100
1
0
1)
TTT
2)3)4)
Number Description
Input pulses are counted from 0 on the rising edge of CH
1)
selection start command (Y6, YE) or the counter function selection start
command (function start input).
2) When the specified sampling time period elapses, the count stops.
3)
4)
5)
While the sampling counter function is performed, "1" is stored in CH
Sampling/periodic counter flag (Un\G11, Un\G43).
Even after the sampling counter function is performed, the value stored in CH
Sampling count value (Un\G14, Un\G15, Un\G46, Un\G47) is held.
The sampling counter function is performed regardless the on/off status of CH
Count enable command (Y4, YC).
Counter function
6 - 6 6 - 6
6 CONVENIENT USAGE
6.5 Using the Periodic Pulse Counter Function
This function stores the present and the previous values of the counter to CH
Periodic pulse count present value (Un\G18, Un\G19, Un\G50, Un\G51) and CH
Periodic pulse count previous value (Un\G16, Un\G17, Un\G48, Un\G49), respectively,
at the preset cycle (T).
The relationships between the signals, buffer memory, etc. in the periodic pulse
counter function are illustrated below.
CH Count enable command
(Y4, YC)
CH Present value
(Un\G2, Un\G3, Un\G34, Un\G35)
ON
OFF
200
100
1)
0
0
2)
200
3)
20
6)
4)
100
MELSEC-Q
5)
80
CH Counter function selection start
command (Y6, YE)
Counter function selection start command
(function start input)
CH Periodic pulse count present value
(Un\G18, Un\G19, Un\G50, Un\G51)
CH Periodic pulse count previous value
(Un\G16, Un\G17, Un\G48, Un\G49)
ON
OFF
200
100
200
100
TTTTT
2)
200
4)
100
1)
0
0
0
2)
0
3)
20
3)
200
4)
20
5)
80
5)
100
7)
CH Sampling/periodic counter flag
(Un\G11, Un\G43)
1
0
6 - 7 6 - 7
6 CONVENIENT USAGE
Number Description
1)
2)
3)
4)
5)
6)
7)
MELSEC-Q
The present counter value, 0, is stored in CH
value (Un\G18, Un\G19, Un\G50, Un\G51).
The present counter value, 200, is stored in CH
value (Un\G18, Un\G19, Un\G50, Un\G51).
The value 0, which had been stored in CH
(Un\G18, Un\G19, Un\G50, Un\G51), is then stored in CH
previous value (Un\G16, Un\G17, Un\G48, Un\G49).
The present counter value, 20, is stored in CH
value (Un\G18, Un\G19, Un\G50, Un\G51).
The value 200, which had been stored in CH
value (Un\G18, Un\G19, Un\G50, Un\G51), is then stored in CH
count previous value (Un\G16, Un\G17, Un\G48, Un\G49).
The present counter value, 100, is stored in CH
value (Un\G18, Un\G19, Un\G50, Un\G51).
The value 20, which had been stored in CH
(Un\G18, Un\G19, Un\G50, Un\G51), is then stored in CH
previous value (Un\G16, Un\G17, Un\G48, Un\G49).
The present counter value, 80, is stored in CH
value (Un\G18, Un\G19, Un\G50, Un\G51).
The value 100, which had been stored in CH
value (Un\G18, Un\G19, Un\G50, Un\G51), is then stored in CH
count previous value (Un\G16, Un\G17, Un\G48, Un\G49).
The periodic pulse counter function is performed regardless the on/off status of
CH
Count enable command (Y4, YC).
While the periodic pulse counter function is performed, "1" is stored in CH
Sampling/periodic counter flag (Un\G11, Un\G43).
Periodic pulse count present
Periodic pulse count present
Periodic pulse count present value
Periodic pulse count
Periodic pulse count present
Periodic pulse count present
Periodic pulse
Periodic pulse count present
Periodic pulse count present value
Periodic pulse count
Periodic pulse count present
Periodic pulse count present
Periodic pulse
6 - 8 6 - 8
6 CONVENIENT USAGE
POINT
Note the following when reading CH Periodic pulse count previous value
(Un\G16, Un\G17, Un\G48, Un\G49) and CH
(Un\G18, Un\G19, Un\G50, Un\G51).
(1) When reading values using a sequence program, use the DFRO instruction or
the BMOV instruction and read values in four-word units.
[Program example]
Depending on the relation between the update timings of the previous and
present values inside the module and the read timing in the sequence
program, the previous value and the present value may be the same.
In that case, read values gain.
(See Section 8.1.2, Section 8.2.2.)
(2) When reading values using the auto refresh setting, only the value in the
device to where the present value is written may change depending on the
relation between the update timings of the previous and present values inside
the module and the auto refresh timing.
In that case, read values using a sequence program.
For details, see (1) above.
MELSEC-Q
Periodic pulse count present value
6 - 9 6 - 9
6 CONVENIENT USAGE
MEMO
MELSEC-Q
6 - 10 6 - 10
7 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
7 UTILITY PACKAGE (GX Configurator-CT)
7.1 Functions of the Utility Package
Table 7.1 lists the functions of the utility package.
Table 7.1 Utility package (GX Configurator-CT) function list
Function Description Reference section
(1) Performs initial settings for each channel to operate the QD62 (E/D).
Sets values for the following items that require initial setting.
• CH
Preset value setting
• CH Coincidence output point set No.1
• CH
Coincidence output point set No.2
• CH
Initial setting
Auto refresh
Monitoring/test
Counter function selection setting
• CH Sampling/periodic setting [unit: 10 ms]
• CH
Ring counter maximum value
• CH
Ring counter minimum value
(2) The data for which initial setting has been completed is registered in the
parameters of the CPU module, and automatically written to the QD62
(E/D) when the CPU module is placed in the RUN status.
(1) The QD62 (E/D)’s buffer memory is configured for automatic refresh.
• CH Preset value
• CH
Latch count value
• CH Sampling count value
• CH
Periodic pulse counter present value
• CH
Periodic pulse counter previous value
• CH Sampling/periodic counter flag
• CH
Overflow detection flag
(2) Values set for auto refresh and stored in the QD62 (E/D)’s buffer
memory are automatically read out when the END instruction is executed
in the CPU module.
The buffer memory and I/O signals of the QD62 (E/D) are monitored or
tested.
• X/Y device
• CH
Present value
• CH
Preset function
• CH
Coincidence output function
• CH Counter selection function
• CH
Ring counter function
Section 7.4
Section 7.5
Section 7.6
7
7 - 1 7 - 1
7 UTILITY PACKAGE (GX Configurator-CT)
7.2 Installing and Uninstalling the Utility Package
MELSEC-Q
7.2.1 Handling precautions
7
For how to install or uninstall the utility package, refer to "Method of installing the
MELSOFT Series" included in the utility package.
The following explains the precautions on using the utility package.
(1) For safety
Since the utility is add-in software for GX Developer, read "Safety Precautions" and
the basic operating procedures in the GX Developer Operating Manual.
(2) About installation
GX Configurator-CT is add-in software for GX Developer Version 4 or later.
Therefore, GX Configurator-CT must be installed on the personal computer that
has already GX Developer Version 4 or later installed.
(3) Display error of Intelligent function module utility
Insufficient system resource may cause the window to be displayed
inappropriately while using the Intelligent function module utility.
If this occurs, close the Intelligent function module utility, GX Developer (program,
comments, etc.), and other applications, and then start GX Developer and
Intelligent function module utility again.
(4) To start the Intelligent function module utility
(a) In GX Developer, select "QCPU (Q mode)" for PLC series and specify a
project. If any PLC series other than "QCPU (Q mode)" is selected, or if no
project is specified, the Intelligent function module utility will not start.
(b) Multiple Intelligent function module utilities can be started.
However, [Open file] and [Save file] operations under [Intelligent function
module parameter] are allowed for one Intelligent function module utility only.
Only the [Monitor/test] operation is allowed for the other utilities.
(5) Switching between two or more Intelligent function module utilities
When two or more Intelligent function module utility windows cannot be displayed
side by side, select a window to be displayed on the top of others using the task
bar.
7 - 2 7 - 2
7 UTILITY PACKAGE (GX Configurator-CT)
(6) Number of parameters that can be set in GX Configurator-CT
When multiple intelligent function modules are mounted, the number of
parameter settings must not exceed the following limit.
are installed to:
Q00J/Q00/Q01CPU 512 256
Q02/Q02H/Q06H/Q12H/Q25HCPU 512 256
Q02PH/Q06PH/Q12PH/Q25PHCPU512 256
Q12PRH/Q25PRHCPU 512 256
Q00UJ/Q00U/Q01UCPU 512 2048
Q02UCPU 2048 1024
Q03UD/Q04UDH/Q06UDH/
Q10UDH/Q13UDH/Q20UDH/
Q26UDH/Q03UDE/Q04UDEH/
Q06UDEH/Q10UDEH/Q13UDEH/
Q20UDEH/Q26UDEHCPU
Q50UDEH/Q100UDEHCPU Not available Not available
MELSECNET/H remote I/O station 512 256
For example, if multiple intelligent function modules are installed to the
MELSECNET/H remote I/O station, configure the settings in GX Configurator-CT
so that the number of parameter settings for all the intelligent function modules
does not exceed the limit of the MELSECNET/H remote I/O station. Calculate the
total number of parameter settings separately for the initial setting and for the
auto refresh setting.
The number of parameters that can be set for one module in GX Configurator-CT
is as shown below.
Target module Initial setting Auto refresh setting
QD62/QD62E/QD62D 8 (Fixed) 14 (Max.)
Example) Counting the number of parameter settings in Auto refresh setting
MELSEC-Q
Maximum number of parameter settings When intelligent function modules
Initial setting Auto refresh setting
4096 2048
7 - 3 7 - 3
7 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
7.2.2 Operating environment
This section explains the operating environment of the personal computer that runs GX
Item Description
Installation (Add-in) target1 Add-in to GX Developer Version 4 (English version) or later2
Computer A personal computer with any of the operating systems below
CPU
Required memory
For installation 65 MB or more Hard disk
space
For operation 10 MB or more
Display
Operating system
1: Install GX Configurator-CT in GX Developer Version 4 or higher in the same language.
2: GX Configurator-CT is not applicable to GX Developer Version 3 or earlier.
3: When Windows VistaR or WindowsR 7 is used, resolution of 1024 768 dots or more is
recommended.
4: When 32-bit WindowsR 7 is used, add GX Configurator-CT Version 1.29AF or later in GX Developer
Version 8.91V or later.
When 64-bit Windows
Version 8.98C or later.
Configurator-CT.
Refer to the next page "Operating system and performance required for personal
computer".
800 600 dots or more resolution
Microsoft
Microsoft
Microsoft
MicrosoftR Windows NTR Workstation Operating System Version 4.0 (English version)
Microsoft
Microsoft
MicrosoftR WindowsR XP Home Edition Operating System (English version) SP1 or
later
Microsoft
MicrosoftR Windows VistaR Home Premium Operating System (English version)
Microsoft
Microsoft
MicrosoftR Windows VistaR Enterprise Operating System (English version)
MicrosoftR WindowsR 7 Starter Operating System (English version)4
MicrosoftR WindowsR 7 Home Premium Operating System (English version)4
MicrosoftR WindowsR 7 Professional Operating System (English version)4
Microsoft
MicrosoftR WindowsR 7 Enterprise Operating System (English version)4
R
7 is used, add GX Configurator-CT Version 1.29AF or later in GX Developer
3
R
WindowsR 95 Operating System (English version)
R
WindowsR 98 Operating System (English version)
R
WindowsR Millennium Edition Operating System (English version)
R
WindowsR 2000 Professional Operating System (English version)
R
WindowsR XP Professional Operating System (English version) SP1 or later
R
Windows VistaR Home Basic Operating System (English version)
R
Windows VistaR Business Operating System (English version)
R
Windows VistaR Ultimate Operating System (English version)
R
WindowsR 7 Ultimate Operating System (English version)4
7 - 4 7 - 4
7 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
WindowsR 95 PentiumR 133 MHz or more 32 MB or more
WindowsR 98 PentiumR 133 MHz or more 32 MB or more
WindowsR Me PentiumR 150 MHz or more 32 MB or more
Windows NTR Workstation 4.0 PentiumR 133 MHz or more 32 MB or more
WindowsR 2000 Professional PentiumR 133 MHz or more 64 MB or more
WindowsR XP
Windows VistaR PentiumR 1 GHz or more 1 GB or more
WindowsR 7 PentiumR 1 GHz or more
Operating system and performance required for personal computer
Operating system
Pentium
Performance required for personal computer
CPU Memory
R
300 MHz or more 128 MB or more
1 GB or more (32-bit)
2 GB or more (64-bit)
POINT
• The functions shown below are not available for WindowsR XP, Windows
R
Vista
, and WindowsR 7.
If any of the following functions is attempted, this product may not operate
normally.
Start of application in Windows
R
compatible mode
Fast user switching
Remote desktop
Large fonts (Details setting of Display Properties)
DPI setting other than 100%
Also, GX Configurator-CT is not supported by 64-bit Windows
Windows
R
Vista .
R
XP and 64-bit
• A user with USER authority or higher can access GX Configurator-CT for
Windows Vista
• When Windows
R
and WindowsR 7.
R
7 is used, the following functions are not available.
Windows XP Mode
Windows Touch
7 - 5 7 - 5
7 UTILITY PACKAGE (GX Configurator-CT)
7.3 Explanation of Utility Package Operations
7.3.1 How to perform common utility package operations
(1) Control keys
Special keys that can be used for operation of the utility package and their
applications are shown in the table below.
Key Application
Esc
Cancels the current entry in a cell.
Closes the window.
MELSEC-Q
Tab
Ctrl
Delete
Back
space
Page
Up
Page
Down
Enter
Moves between controls in the window.
Used in combination with the mouse operation to select multiple
cells for test execution.
Deletes the character where the cursor is positioned.
When a cell is selected, clears all of the setting contents in the
cell.
Deletes the character where the cursor is positioned.
Moves the cursor.
Moves the cursor one page up.
Moves the cursor one page down.
Completes the entry in the cell.
(2) Data created with the utility package
The following data or files that are created with the utility package can be also
handled in GX Developer. Figure 7.1 shows respective data or files are handled
in which operation.
<Intelligent function module parameter>
(a) This represents the data created in Auto refresh setting, and they are stored
in an intelligent function module parameter file in a project created by GX
Developer.
Project
Program
Parameters
(b) Steps 1) to 3) shown in Figure 7.1 are performed as follows:
1) From GX Developer, select:
[Project]
2) On the intelligent function module selection window of the utility, select:
[Intelligent function module parameter]
parameters]
[Read from PLC] / [Write to PLC] "Intelligent function
module parameters"
Alternatively, from the intelligent function module selection window of the
utility, select:
[Online]
[Read from PLC] / [Write to PLC]
<Text files>
(a) A text file can be created by clicking the Make text file
setting, Auto refresh setting, or Monitor/Test window. The text files can be
utilized to create user documents.
(b) Text files can be saved in any directory.
However, a path (folder where the file is to be saved) cannot be created
during Make text file
GX Developer/
GX Configurator-CT
the file using Windows
Project
MELSEC-Q
button on the initial
operation, so create a folder in advance for saving
R
Explorer.
Disk
Project
QCPU
Q25HCPU
USB
MODE.
RUN.
ERR.
USER.
BAT.
BOOT.
A
1)
AA
3)
2)
Personal compute
B
A: Indicates intelligent function module parameter
B: Indicates data saved by text file
RS-232
Figure 7.1 Correlation chart for data created with the utility package
7 - 7 7 - 7
7 UTILITY PACKAGE (GX Configurator-CT)
7.3.2 Operation overview
MELSEC-Q
7 - 8 7 - 8
7 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
7 - 9 7 - 9
7 UTILITY PACKAGE (GX Configurator-CT)
7.3.3 Starting the Intelligent function module utility
[Operating procedure]
Intelligent function module utility is started from GX Developer.
[Tools]
[Setting window]
[Intelligent function utility] [Start]
MELSEC-Q
[Explanation of items]
(1) Activation of other windows
Following windows can be displayed from the intelligent function module utility
window.
(a) Initial setting window
"Start I/O No.
Initial setting
(b) Auto refresh setting window
"Start I/O No.
Auto refresh
(c) Select monitor/test module window
[Online]
1 Enter the start I/O No. in hexadecimal
(2) Command buttons
Delete
Exit
Deletes the initial setting and auto refresh setting of the selected
module.
Closes this window.
1
" "Module type" "Module model name"
1
" "Module type" "Module model name"
[Monitor/Test]
7 - 10 7 - 10
7 UTILITY PACKAGE (GX Configurator-CT)
(3) Menu bar
(a) File menu
Intelligent function module parameters of the project opened by GX
Developer are handled.
[Open parameters] : Reads a parameter file.
[Close parameters] : Closes the parameter file. If any data are modified, a
[Save parameters] : Saves the parameter file.
[Delete parameters] : Deletes the parameter file.
[Open FB support parameters] : Opens a FB support parameter file.
[Save as FB support parameters] : Saves a FB support parameter.
[Exit] : Closes this window.
(b) Online menu
[Monitor/Test] : Activates the Select monitor/test module window.
MELSEC-Q
dialog asking for file saving will appear.
[Read from PLC] : Reads intelligent function module parameters from the
CPU module.
[Write to PLC] : Writes intelligent function module parameters to the
CPU module.
POINT
(1) Saving intelligent function module parameters in a file
Since intelligent function module parameters cannot be saved in a file by the
project saving operation of GX Developer, save them on the shown module
selection window.
(2) Reading/writing intelligent function module parameters from/to a
CPU module using GX Developer
(a) Intelligent function module parameters can be read from and written into a
CPU module after having been saved in a file.
(b) Set the target CPU module in GX Developer: [Online]
(c) When the QD62 (E/D) is mounted to the remote I/O station, use "Read
from PLC" and "Write to PLC" of GX Developer.
[Transfer setup].
(3) Checking the required utility
While the start I/O is displayed on the Intelligent function module utility setting
window, "
This means that the required utility has not been installed or the utility cannot
be started from GX Developer.
Check the required utility, selecting [Tools]
[Utility list...] in GX Developer.
" may be displayed for the model name.
[Intelligent function utility]
7 - 11 7 - 11
7 UTILITY PACKAGE (GX Configurator-CT)
7.4 Initial Settings
[Purpose of operation]
Perform the initial settings for each channel to operate the QD62 (E/D).
Set the following initial setting parameters:
• Preset value • Sampling/periodic setting
• Coincidence output point set No.1 • Ring counter maximum value
• Coincidence output point set No.2 • Ring counter minimum value
• Counter function selection setting
These initial settings eliminate the need to set sequence programs.
Creates a file containing the displayed data in text file
Make text file
End setup
format.
Saves the set data and ends the operation.
MELSEC-Q
Cancel
POINT
Initial settings are stored in the intelligent module parameters.
After being written to the CPU module, the initial setting is made effective by either
(1) or (2).
(1) Cycle the RUN/STOP switch of the CPU module: STOP
RUN.
(2) With the RUN/STOP switch set to RUN, turn off and then on the power or reset
the CPU module.
If the initialization settings have been written by a sequence program, the
initialization settings will be executed during the STOP
Arrange so that the initial settings written by the sequence program are re-executed
during the STOP
Cancels the setting and ends the operation.
RUN of the CPU module.
RUN STOP
RUN of the CPU module.
7 - 13 7 - 13
7 UTILITY PACKAGE (GX Configurator-CT)
7.5 Auto Refresh
[Purpose]
Set the QD62 (E/D) buffer memory to be automatically refreshed, for each
channel.
Set the following auto refresh setting parameters:
• Present value • Periodic pulse counter previous value
• Latch count value • Sampling/periodic counter flag
• Sampling count value • Overflow detection flag
• Periodic pulse counter present value
This auto refresh setting eliminates the need for reading and writing by sequence
programs.
[Operating procedure]
"Start I/O No. " "Module type" "Module model name" Auto refresh
Enter the start I/O No. in hexadecimal.
[Setting window]
MELSEC-Q
7 - 14 7 - 14
7 UTILITY PACKAGE (GX Configurator-CT)
[Explanation of items]
(1) Items
MELSEC-Q
Module side Buffer
size
Module side Transfer
word count
Transfer direction : "
PLC side Device : Enter a CPU module side device that is to be
: Displays the buffer memory size of the setting item.
: Displays the number of words to be transferred.
" indicates that data are written from the CPU module
to the buffer memory.
"
" indicates that data are loaded from the buffer memory
to the CPU module.
automatically refreshed.
Applicable devices are X, Y, M, L, B, T, C, ST, D, W, R,
and ZR.
When using bit devices X, Y, M, L or B, set a number that
can be divided by 16 points (examples: X10, Y120, M16,
etc.)
Also, buffer memory data are stored in a 16-point area,
starting from the specified device number. For example, if
X10 is entered, data are stored in X10 to X1F.
(2) Command buttons
Make text file
Creates a file containing the displayed data in text file format.
End setup
Cancel
POINT
• The auto refresh settings are stored in an intelligent function module parameter
file.
The auto refresh settings become effective by turning the power OFF and then
ON or resetting the CPU module after writing the intelligent function module
parameters to the CPU module.
• The auto refresh settings cannot be changed from sequence programs. However,
processing equivalent to auto refresh can be added using the FROM/TO
instruction in the sequence program.
Saves the set data and ends the operation.
Cancels the setting and ends the operation.
7 - 15 7 - 15
7 UTILITY PACKAGE (GX Configurator-CT)
7.6 Monitoring/Test
7.6.1 Monitoring/Test
[Purpose]
Start buffer memory monitoring/testing and I/O signal monitoring/testing from this
window.
The window can also be started from System monitor of GX Developer Version 6
or later.
Refer to the GX Developer Operating Manual for details.
[Setting window]
Monitor/test
MELSEC-Q
7 - 16 7 - 16
7 UTILITY PACKAGE (GX Configurator-CT)
1)
Counter
selection
MELSEC-Q
Coincidence
output
Ring counter
7 - 17 7 - 17
7 UTILITY PACKAGE (GX Configurator-CT)
[Explanation of items]
(1) Items
Setting item : Displays I/O signals and buffer memory names.
Current value : Monitors the I/O signal states and present buffer memory values.
Setting value : Enter or select values to be written into the buffer memory for test
operation.
(2) Command buttons
MELSEC-Q
Current value display
Make text file
Start monitor
Execute test
Close
/ Stop monitor
Performs a test on the selected items. To select
Displays the current value of the item selected.
(This is used to check the 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 containing the displayed data in text
file format.
Selects whether or not to monitor current values.
more than one item, select them while holding
down the Ctrl
Closes the window that is currently open and
returns to the previous window.
key.
REMARK
The following explains an example to change settings for the selected test operation
to the following:
• Counter function selection setting : Sampling counter function
• Counter function selection start command (Y06) : ON
• Sampling/periodic setting [unit: 10 ms] : 1000 ms
(1) Set "Sampling counter function" in the setting value field for CH
function selection setting.
(2) Set "ON" in the setting value field for CH
command (Y06).
(3) Click the setting value field for CH
(4) After entering the sampling time, press the Enter
At this point, nothing has been written to the QD62 (E/D).
(5) Select the setting value fields that were specified in steps 1 to 4 while holding
down the Ctrl
Multiple items can also be selected by dragging with the mouse.
(6) Click Execute test
Once write operation is completed, the values that were written will be displayed
in the current value field.
key.
to execute write operation.
Sampling/periodic setting [unit: 10 ms].
Counter function selection start
key.
Counter
7 - 18 7 - 18
8 PROGRAMMING
MELSEC-Q
8 PROGRAMMING
This chapter describes programs of the QD62 (E/D).
When applying any of the program examples introduced in this chapter to the actual
system, verify the applicability and confirm that no problem occurs in the system
control.
8.1 Using Programs in Normal System Configuration
This section describes program examples based on the following system configuration
and conditions.
(1) System configuration
QX10 (X10 to X1F)
QY10 (Y20 to Y2F)
(X/Y0 to X/YF)
QD62
(2) Setting conditions of the intelligent function module switch
Set the pulse input mode, counting speed setting, and counter format with the
intelligent function module switch on GX Developer. (See Section 4.5.)
Channel Pulse input mode Counting speed setting Counter format
CH1 2-phase multiple of 1 200 kPPS User setting
(3) Program conditions
8 - 1 8 - 1
This program uses QD62 to perform counting with the conditions listed below.
Item Setting value
Preset value 2500
Coincidence output point No. 1 1000
Ring counter minimum value 1 –5000
Ring counter maximum value 1 5000
Sampling time setting 2 10000 ms
Periodic pulse time setting 3 5000 ms
1 Set only when a ring counter function is used
2 Set only when the sampling counter function is used
3 Set only when the periodic pulse counter function is used
POINT
Programs that were used in earlier products such as A1SD62(E/D/D-S1) cannot be
used because the I/O signals and the buffer memory configuration of these
products differ from those of QD62(E/D). The conventional dedicated instructions
cannot be used.
8
8 PROGRAMMING
8.1.1 Program example when GX Configurator-CT is used
MELSEC-Q
(1) List of devices
D0 to D1 Device that current value is written by auto refresh
D2 to D3 Device that latch count value is written by auto refresh
D4 to D5 Device that sampling count value is written by auto refresh
D6 to D7 Device that periodic pulse count previous value is written by auto refresh
D8 to D9 Device that periodic pulse count present value is written by auto refresh
D10 Overflow status storage
D20 to D35 Interrupt enabled flag storage for the IMASK instruction
X10 Count operation start signal
X11 Current value read signal
X12 Coincidence output data setting signal
X13 Preset command signal
X14 Count operation stop signal
X15 Coincidence LED clear signal
X16 Counter function execution start signal
X17 Counter function execution stop signal
X18 Latch count data read signal
X19 Latch execution signal
X1A Sampling count data read signal
X1B Sampling count start signal
X1C Periodic pulse count data read signal
X1D Periodic pulse count start signal
Y20 Coincidence confirmation LED signal
Y21 Overflow occurrence confirmation LED signal
X0 Module ready
X2 Counter value coincidence (point No. 1)
Y0 Coincidence signal No. 1 reset command
Y1 Preset command
Y2 Coincidence signal enable command
8
Y4 Count enable command
Y6 Counter function selection start command
Device Function
QX10 (X10 to X1F)
QY10 (Y20 to Y2F)
QD62(E/D) (X/Y0 to X/YF)
8 - 2 8 - 2
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.