PULSE Program Example AD60P8-G
PULSE Program Example AD60P8-G
User's Manual
-QD60P8-G
-GX Configurator-CT (SW0D5C-QCTU-E)
• SAFETY PRECAUTIONS •
(Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals introduced in this manual
carefully and pay full attention to safety to handle the product correctly.
The 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: " WARNING" and " CAUTION".
Under some circumstances, failure to observe the precautions given under " CAUTION" may lead to
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
• Do not write data into the "read-only area" in the buffer memory of the intelligent function
module. In addition, do not turn on/off the "Reserved (N/A)" signals among the I/O signals
transferred to/from the programmable controller CPU.
Doing so can malfunction the programmable controller system.
! CAUTION
• Do not bunch the control wires or pulse input wires with the main circuit or power wires, or install
them close to each other.
They should be installed 150 mm (5.9 inch) or more from each other.
Not doing so could result in noise that may cause malfunction.
A-1 A-1
[Installation Precautions]
! CAUTION
• Use the programmable controller in an environment that meets the general specifications
contained in the CPU module User's Manual.
Using this programmable controller in an environment outside the range of the general
specifications may cause electric shock, fire, malfunction, and damage to or deterioration of the
product.
• While pressing the installation lever located at the bottom of module, insert the module fixing tab
into the fixing hole in the base unit until it stops. Then, securely mount the module with the fixing
hole as a supporting point.
Improper installation may result in malfunction, breakdown or the module coming loose and
dropping. Securely fix the module with screws if it is subject to vibration during use.
• Tighten the screws within the range of specified torque.
If the screws are loose, it may cause the module to fallout, short circuits, or malfunction.
If the screws are tightened too much, it may cause damage to the screw and/or the module,
resulting in fallout, short circuits or malfunction.
• Be sure to shut off all phases of the external power supply used by the system before mounting
or removing the module.
Not ding so may cause electric shock or damage to the module.
In the system where a CPU module supporting the online module change is used and on the
MELSECNET/H remote I/O stations, modules can be replaced online (during energizing).
However, there are some restrictions on replaceable modules and the replacement procedures
are predetermined for each module.
For details, refer to the chapter of the online module change in this manual.
• Do not install/remove the module to/from the base unit, or the terminal block to/from the module
more than 50 times after the first use of the product. (IEC 61131-2 compliant) Failure to do so
may cause malfunction.
• Do not directly touch the conductive area or electronic components of the module.
Doing so may cause malfunction or failure in the module.
[Wiring Precautions]
WARNING
• Switch all phases of the external power supply off when installing or placing wiring. Not doing so
may cause electric shock or damage to the product.
• Be careful not to let foreign matters such as sawdust or wire chips get inside the module.
These may cause fires, failure or malfunction.
• The top surface of the module is covered with protective film to prevent foreign objects such as
cable offcuts from entering the module when wiring.
Do not remove this film until the wiring is complete.
Before operating the system, be sure to remove the film to provide adequate heat ventilation.
A-2 A-2
[Wiring Precautions]
WARNING
• The cables connected to the module should be placed in a duct or fixed. Not doing so can cause
the module or cables to be damaged when the cables swing, more or are pulled carefully, for
example or to malfunction due to poor cable connection.
A-3 A-3
[Wiring Precautions]
! CAUTION
• When removing the cable from the module, do not pull the cable.
When disconnecting a cable without a terminal block, unscrew on the part that is connected to
the module.
Pulling the cable that is still connected to the module may cause malfunction or damage to the
module or cable.
• Always ground the shielded cable for the programmable controller.
There is a risk of electric shock or malfunction.
• Use applicable solderless terminals and tighten them with the specified torque.
If any solderless spade terminal is used, it may be disconnected when the terminal screw comes
loose, resulting in failure.
• When wiring, be sure to verify the rated voltage of the product as well as the terminal layout. Fire
or failure may result if incorrect voltage is input or incorrect wiring is performed.
[Startup/Maintenance Precautions]
! CAUTION
• Do not disassemble or modify the module.
Doing so could cause failure, malfunction, injury or fire.
• Shut off the external power supply for the system in all phases before mounting or removing the
module.
Not doing so may cause failure or malfunction of the module.
In the system where a CPU module supporting the online module change is used and on the
MELSECNET/H remote I/O stations, modules can be replaced online (during energizing).
However, there are some restrictions on replaceable modules and the replacement procedures
are predetermined for each module.
For details, refer to the chapter of the online module change in this manual.
• Do not install/remove the module to/from the base unit, or the terminal block to/from
the module more than 50 times after the first use of the product. (IEC 61131-2 compliant)
Failure to do so may cause malfunction.
• Do not touch the connector while the power is on.
Doing so may cause malfunction.
A-4 A-4
[Startup/Maintenance Precautions]
! CAUTION
• Shut off the external power supply for the system in all phases before cleaning the module or
retightening the module fixing screws, terminal block screws, and terminal block fixing screws.
Not doing so may cause failure or malfunction of the module.
If the screws are loose, it may cause the module to fallout, short circuits, or malfunction.
If the screws are tightened too much, it may cause damages to the screws and/or the module,
resulting in the module falling out, short circuits or malfunction.
• Always make sure to touch the grounded metal to discharge the electricity charged in the body,
etc., before touching the module.
Failure to do so may cause a failure or malfunctions of the module.
[Disposal Precautions]
! CAUTION
• When disposing of the product, handle it as industrial waste.
A-5 A-5
• 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-6 A-6
REVISIONS
* The manual number is given on the bottom left of the back cover.
Print Date * Manual Number Revision
Jun., 2002 SH (NA)-080313E-A First edition
Feb., 2003 SH (NA)-080313E-B Correction
Correction
SAFETY PRECAUTIONS, Section 2.2, Section 4.1, Section 6.4,
Section 6.6, Chapter 7, Section 8.1, Section 8.3.2
Feb., 2006 SH (NA)-080313E-D Correction
SAFETY PRECAUTIONS, Conformation to the EMC Directive and
Low Voltage Instruction, Section 2.2, Section 4.1, Section 6.2.2
Mar., 2006 SH (NA)-080313E-E Correction
SAFETY PRECAUTIONS, Section 4.4.2, 7.2, 7.2.1, 7.3, 7.3.1
Sep., 2006 SH (NA)-080313E-F Correction
SAFETY PRECAUTIONS
Jun., 2007 SH (NA)-080313E-G Correction
Generic Terms and Abbreviations, Section 2.1, 2.2, 3.1, 4.1, 4.4, 4.5,
5.1.1, 5.2.2, 6.2.1, 6.3 to 6.6, Chapter 8, Section 8.3, INDEX
Jan., 2008 SH (NA)-080313E-H Correction
Generic Terms and Abbreviations, Section 2.2, 2.3, Section 6.2.2
May, 2008 SH (NA)-080313E-I Correction
SAFETY PRECAUTIONS, Compliance with the EMC and Low
Voltage Directives, Generic Terms and Abbreviations, Section 2.1,
2.3, 4.1, 4.4.1, 6.2.1, 6.3.1, 6.3.3, 8.1
Dec., 2010 SH (NA)-080313E-J Addition of program example for use the utility package.
Correction
SAFETY PRECAUTIONS, Generic Terms and Abbreviations,
Sections 1.2, 2.1 to 2.3, 3.1, 3.2, 3.5, 4.2, 4.3, 4.5, 5.1.1, 5.1.4, 5.2,
5.6, 6.2.1, 6.3.3, Chapter 7, Sections 7.1, 7.2, 7.2.1, 7.3, 7.3.1, 8.1,
9.1.1, 9.3, Appendix 1
Addition
Sections 7.2.2, 7.3.2
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.
© 2002 MITSUBISHI ELECTRIC CORPORATION
A-7 A-7
INTRODUCTION
Thank you for purchasing the Mitsubishi programmable controller MELSEC-Q Series.
Always read through this manual, and fully comprehend the functions and performance of the Q Series
programmable controller before starting use to ensure correct usage of this product.
CONTENTS
SAFETY PRECAUSIONS..............................................................................................................................A- 1
CONDITIONS OF USE FOR THE PRODUCT .............................................................................................A- 6
REVISIONS ....................................................................................................................................................A- 7
INTRODUCTION............................................................................................................................................A- 8
CONTENTS....................................................................................................................................................A- 8
USING THIS MANUAL .................................................................................................................................A- 11
COMPLIANCE WITH THE EMC AND LOW VOLTAGE DIRECTIVES......................................................A- 12
GENERIC TERMS AND ABBREVIATIONS ................................................................................................A- 12
COMPONENT LIST ......................................................................................................................................A- 13
1 OVERVIEW 1- 1 to 1- 4
1.1 Overview................................................................................................................................................... 1- 1
1.2 Features ................................................................................................................................................... 1- 1
2 SYSTEM CONFIGURATION 2- 1 to 2- 7
3 SPECIFICATIONS 3- 1 to 3- 14
7 PROGRAMMING 7- 1 to 7- 23
9 TROUBLESHOOTING 9- 1 to 9- 11
A - 10 A - 10
USING THIS MANUAL
Manual Makeup
(6) To perform initial setting, etc. from the optional utility package
(Chapter 6)
Chapter 6 gives the method for operating the utility package.
A - 11 A - 11
Numeric values used in this manual
• The buffer memory addresses and error codes are represented in decimal.
• The X/Y devices are represented in hexadecimal.
• The values read/written from/to the buffer memory and the values set using the
intelligent function module switches are represented in either of decimal and
hexadecimal. A hexadecimal value is ended by "H".
(Example) 10.........10 Decimal
10H .......16 Hexadecimal
Unless specially noted, the following generic terms and abbreviations are used in this
manual.
GX Developer
Product name for the MELSEC programmable controller software package.
GX Works2
Generic term for the Q00JCPU, Q00CPU, Q01CPU, Q02CPU, Q02HCPU, Q06HCPU,
Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q00UJCPU, Q00UCPU, Q01UCPU,
Q12PHCPU, Q25PHCPU, Q12PRHCPU, Q25PRHCPU, Q02UCPU, Q03UDCPU,
QCPU (Q mode)
Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, Q20UDHCPU,
Q26UDHCPU, Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU,
Q13UDEHCPU, Q20UDEHCPU, Q26UDEHCPU, Q20UDEHCPU and Q100UDEHCPU.
Process CPU Generic term for Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU.
Redundant CPU Generic term for the Q12PRHCPU and Q25PRHCPU.
Abbreviation for counter module setting/monitoring tool GX Configurator-CT (SW0D5C-
GX Configurator-CT
QCTU-E).
Generic term for the following:
R R
Microsoft Windows Vista Home Basic Operating System,
R R
R Microsoft Windows Vista Home Premium Operating System,
Windows Vista R R
Microsoft Windows Vista Business Operating System,
R R
Microsoft Windows Vista Ultimate Operating System,
R R
Microsoft Windows Vista Enterprise Operating System
Generic term for the following:
R R R
Windows XP Microsoft Windows XP Professional Operating System,
R R
Microsoft Windows XP Home Edition Operating System
A - 12 A - 12
COMPONENT LIST
A - 13 A - 13
MEMO
A - 14 A - 14
1 OVERVIEW
MELSEC-Q
CHAPTER 1 OVERVIEW
1.1 Overview 1
This User's Manual describes the specifications, handling, wiring and programming
methods of the Channel Isolated Pulse Input Module (QD60P8-G) used with the
MELSEC-Q series programmable controller CPU.
The QD60P8-G counts the input pulse number (speed, rotation speed, instant flux or
similar) and measures the quantity the length, accumulating flux and so forth. Input
pulse value is updated every 10ms. The QD60P8-G updates Accumulating count value
and the pulse number after movement averaging processing or similar (Sampling pulse
number) at intervals of Count cycle setting value.
1.2 Features
(1) Wide range of functions
Pulse generator
Input voltage
selection 1)
Pulse edge
selection 2)
Updated in Updated
Pre-scale processing 3) count cycle every 10ms
Movement averaging
processing 4)
Counter reset 11) Sampling pulse number 5) Accumulating count value 6) Input pulse value 7)
1-1 1-1
1 OVERVIEW
MELSEC-Q
8) Alarm output
It is allowed to set four setting values, i.e. upper/upper limit value,
upper/lower limit value, lower/upper limit value and lower/lower limit value,
for Sampling pulse number to output alarms.
1-2 1-2
1 OVERVIEW
MELSEC-Q
1-3 1-3
1 OVERVIEW
MELSEC-Q
MEMO
1-4 1-4
2 SYSTEM CONFIGURATION
MELSEC-Q
2-1 2-1
2 SYSTEM CONFIGURATION
MELSEC-Q
2
Applicable CPU module 1 Base unit *
No. of modules *
CPU type CPU model Main base unit Extension base unit
Q03UDECPU
Q04UDEHCPU
Q06UDEHCPU
Q10UDEHCPU
2 Programmable Universal model QCPU Q13UDEHCPU Up to 64
controller CPU Q20UDEHCPU
Q26UDEHCPU
Q50UDEHCPU
Q100UDEHCPU
Safety CPU QS001CPU N/A *4
Q06CCPU-V
C Controller module Q06CCPU-V-B Up to 64
Q12DCCPU-V
: 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: Use the QD60P8-G module whose serial No. (first five digits) is 09012
or later.
*4: The safety CPU cannot be connected with extension base units.
REMARK
For the use of the C Controller module, refer to C Controller Module User's Manual.
REMARK
The Basic model QCPU or C Controller module cannot create the MELSECNET/H
remote I/O network.
2-2 2-2
2 SYSTEM CONFIGURATION
MELSEC-Q
2-3 2-3
2 SYSTEM CONFIGURATION
MELSEC-Q
POINT
Depending on the version of GX Configurator-CT, CPU modules and functions of
the QD60P8-G vary.
2-4 2-4
2 SYSTEM CONFIGURATION
MELSEC-Q
The following describes the use of the QD60P8-G with Redundant CPU.
(1) GX Configurator-CT
GX Configurator-CT cannot be used when accessing the Redundant CPU via an
intelligent function module on the extension base unit from GX Developer.
Connect a personal computer to the Redundant CPU with a communication path
indicated below.
1 2
2-5 2-5
2 SYSTEM CONFIGURATION
MELSEC-Q
(1) Checking the function version and serial number of the QD60P8-G
The serial number and function version of the QD60P8-G are described on the
rating plate, on the front of the module, or displayed in the System monitor of GX
Developer.
Serial No.
REMARK
The serial number is displayed on the front of the module from December 2008
production. Products manufactured during the switching period may not have the
serial number on the front of the module.
2-6 2-6
2 SYSTEM CONFIGURATION
MELSEC-Q
POINT
The serial number displayed in the Product Information List dialog box of GX
Developer may differ from that on the rating plate and on the front of the module.
• The serial number on the rating plate and front part of the module indicates the
management information of the product.
• The serial number displayed in the Product Information List dialog box of GX
Developer indicates the function information of the product.
The function information of the product is updated when a new function is
added.
Software version
2-7 2-7
3 SPECIFICATIONS
MELSEC-Q
CHAPTER 3 SPECIFICATIONS
This chapter explains the performance specifications of the QD60P8-G, the I/O signals
for the programmable controller CPU, and the specifications of the buffer memory.
For the general specifications of the QD60P8-G, refer to the User's Manual of the used
CPU module.
3 Item
Model name
QD60P8-G
Counting speed switch settings*1 30kpps 10kpps 1kpps 100pps 50pps 10pps 1pps 0.1pps
Number of I/O occupied points 32 points (I/O assignment: 32 points for intelligent function module)
Number of channels 8 channels
Count input Phase 1-phase input
signal Signal level 5VDC/12 to 24VDC
Input derating Refer to the derating chart (Next page)
Counting speed
30kpps 10kpps 1kpps 100pps 50pps 10pps 1pps 0.1pps
(Max.) *2
Sampling pulse number : 16-bit binary (0 to 32767)
Counting range Accumulating count value : 32-bit binary (0 to 99999999)
Input pulse value : 32-bit binary (0 to 2147483647)
For 1 min at 1500VAC between AC external connecting terminals and general grounding
Dielectric withstand voltage For 1 min at 500VAC between DC external connecting terminals and general grounding
For 1 min at 1780VAC between channels
Insulation resistance 5MΩ or more at 500VDC between AC external connecting terminals and general grounding
Connected terminal 18 points terminal block
2
Applicable wire size 0.3 to 0.75mm
Applicable solderless terminals R1.25-3 (A solderless terminals with sleeves cannot be used.)
Internal current consumption
0.58A
(5VDC)
Weight 0.17kg
External dimensions 27.4 (1.08) (W) X 98 (3.86) (H) X 90 (3.54) (D) [mm (in.)]
*1: To change the counting speed, use the intelligent function module switch.
(For details, refer to "Section 4.5.2 Switch setting for intelligent function module".)
*2: The counting speed is affected by the rise/fall time of pulses. The countable counting speeds
are indicated in the table on the next page. Note that counting the pulses of long rise/fall time
may result in miscounting.
3-1 3-1
3 SPECIFICATIONS
MELSEC-Q
t t
<Derating Chart>
( )
100
90
80
3 30VDC
ON
ratio 70
60
50
40
0 10 20 30 40 50 55 ( )
Ambient temparature
3-2 3-2
3 SPECIFICATIONS
MELSEC-Q
POINT
The above functions can be used in combination.
However, the linear counter function and ring counter function cannot be used
together.
Please select either of them.
3-3 3-3
3 SPECIFICATIONS
MELSEC-Q
The following table indicates the I/O signals of the QD60P8-G for the programmable
controller CPU.
The I/O numbers (X/Y) and I/O addresses indicated in this chapter and later assume
that the QD60P8-G is installed on the I/O slot No. 0 of the main base unit.
3-4 3-4
3 SPECIFICATIONS
MELSEC-Q
*1: Initial value set at power-on or when the programmable controller CPU is reset.
3-5 3-5
3 SPECIFICATIONS
MELSEC-Q
Initial
Device
Signal name Details value
No.
*1
• This signal turns on if "Accumulating count value" reaches
X10 CH1 or exceeds "Comparison output setting value".
"Accumulating count value" is stored into the buffer
memory for each channel. Set "Comparison output setting
value" to the buffer memory for each channel. (Refer to
X11 CH2
Section 3.4.2 for details.)
• This signal remains on until Comparison signal reset
request (Y10 to Y17) turns on.
X12 CH3 • Once turned off, this signal does not turn on until
OFF: Accumulating
Accumulating count value reaches Comparison output
count value
setting value again after it has been reset.
Comparison
X13 CH4 Accumulating Executed by QD60P8-G
output setting Executed by sequence program
counter value
OFF
comparison ON : Accumulating Accumulating count value
Count cycle
setting value
X14 CH5 flag count value
Comparison
output setting
value Comparison output
X15 CH6 setting value
ON
Accumulating counter
X16 CH7 OFF
comparison flag
(X10 to X17) ON
Comparison signal OFF
reset request
X17 CH8
(Y10 to Y17)
*1: Initial value set at power-on or when the programmable controller CPU is reset.
3-6 3-6
3 SPECIFICATIONS
MELSEC-Q
Initial
Device
Signal name Details value
No.
*1
• This signal turns on to make "Comparison output setting
value" and other setting data of the buffer memory valid.
OFF: No operating
• When this signal turns on, the setting data are reflected
condition
on the module.
setting
• When this signal turns on, "Sampling pulse number",
Operating condition request
Y1 "Accumulating count value", or "Input pulse value" OFF
setting request flag ON : Operating
assigned to the buffer memory for each channel is reset.
condition
• When this signal is turned on in the sequence program,
setting
it should be kept on for longer than 10ms.
request
• For details on the on/off timing of this signal, refer to the
item of the input signal (X1).
Y8 CH1
Y9 CH2
• If the error occurrence signal (X8 to XF) has turned on
YA CH3 OFF: No Error reset
due to the error occurrence, turning on this signal clears
YB CH4 Error reset request
that error. OFF
YC CH5 request ON : Error reset
• For details on the on/off timing of this signal, refer to the
YD CH6 request
item of the input signal (X8 to XF).
YE CH7
YF CH8
Y10 CH1
Y11 CH2 OFF: No
Comparison • If Accumulating counter comparison flag (X10 to X17)
Y12 CH3
Comparison signal reset has turned on, turning on this signal clears
Y13 CH4
signal reset request Accumulating counter comparison flag (X10 to X17). OFF
Y14 CH5
request ON : Comparison • For details on the on/off timing of this signal, refer to the
Y15 CH6
signal reset item of the input signal (X10 to X17).
Y16 CH7 request
Y17 CH8
Y18 CH1
Y19 CH2 • This signal turns on when count operation is started.
OFF: Count
• When this signal turns on, the count operation of
Y1A CH3 operation
"Sampling pulse number", "Accumulating count value",
Y1B CH4 Count stop
or "Input pulse value" assigned to the buffer memory for OFF
Y1C CH5 enable ON : Count
each channel is started.
Y1D CH6 operation
• For details on the on/off timing of this signal, refer to the
Y1E CH7 start
item of the input signal (X1).
Y1F CH8
*1: Initial value set at power-on or when the programmable controller CPU is reset.
3-7 3-7
3 SPECIFICATIONS
MELSEC-Q
The following table indicates the assignment of the QD60P8-G buffer memory. Refer to
Section 3.4.2 for details of the buffer memory areas.
The initial values are set to the buffer memory at power-on or when the programmable
controller CPU is reset. (When power is turned off, the setting values in the buffer
memory are not retained.)
The sequence program or programmable controller CPU's auto refresh function,
reads/writes the buffer memory contents.
The settings are reflected on the module by turning on Operating condition setting
request flag (Y1) after the data have been written to the buffer memory.
*1: Initial value set at power-on or when the programmable controller CPU is reset.
3-8 3-8
3 SPECIFICATIONS
MELSEC-Q
3-9 3-9
3 SPECIFICATIONS
MELSEC-Q
3 - 10 3 - 10
3 SPECIFICATIONS
MELSEC-Q
3 - 11 3 - 11
3 SPECIFICATIONS
MELSEC-Q
3 - 12 3 - 12
3 SPECIFICATIONS
MELSEC-Q
3 - 13 3 - 13
3 SPECIFICATIONS
MELSEC-Q
The internal circuit of the QD60P8-G interface for connection of external devices is
shown in a schematic diagram.
17
- - FG - - -
18
*: Use the intelligent function module switch to change between 5VDC and 12 to 24VDC.
(For details, refer to "Section 4.5.2 Switch setting for intelligent function module".)
3 - 14 3 - 14
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
The following describes the procedure prior to the QD60P8-G operation, the name and
setting of each part of the QD60P8-G, and wiring method.
(1) Do not drop the module casing, 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 matters such as sawdust or wire chips get inside the
4
module. These may cause fires, failure and malfunction.
(4) The top surface of the module is covered with a protective film to prevent foreign
objects such as cable offcuts from entering the module when wiring. Do not
remove this film until the wiring is complete.
Before operating the system, be sure to remove the film to provide adequate heat
ventilation.
(5) Tighten the screws such as module fixing screws within the following ranges.
(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 OPERATION
MELSEC-Q
The figure below shows the steps that should be followed before starting the QD60P8-
G operation.
Start
Module mounting
Mount the QD60P8-G in the specified slot.
Wiring
Wire the QD60P8-G.
4
Yes
Use the GX Configurator-CT?
No
Initial setting Initial setting
Create a sequence program for writing Perform the initial setting using the
initial values (Refer to Chapter 7). GX Configurator-CT (Refer to Section 6.4).
Monitor/Test
Perform the monitor or test using the
GX Configurator-CT (Refer to Section 6.6).
Operation
4-2 4-2
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
1)
3)
2)
4)
4-3 4-3
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
4.4 Wiring
This section explains how to wire the pulse generator to the QD60P8-G.
The following are the precautions for wiring the QD60P8-G. Read these precautions
together with "Section 4.1 Handling precautions" to ensure work safety.
In order to fully utilise the functions of the QD60P8-G and ensure system reliability,
external wiring having a minimum of noise effect must be provided.
The precautions regarding external wiring are described below.
(1) Use separate cables with the AC control circuit and QD60P8-G's external input
signals to avoid the influence of AC side surges and induction.
(2) Do not run the cable close to, or bundle them with, the main circuit and high-
voltage cables and the load cables from other than the programmable controller.
Failure to do so will make the cables susceptible to noise, surges and induction.
(3) If there may be the effect of noise when a cable to be connected to the QD60P8-G
and the power line are installed close to each other, use a general shielded
twisted pair cable as a countermeasure against noise.
The shield must be grounded on the QD60P8-G side.
(4) No soldereless terminals with insulation sleeves can be used on the terminal block.
It is recommended to cover the electric wire connecting section of each solderless
terminal with a marking tube or insulating tube.
(5) The cables connected to the QD60P8-G should be placed in a duct or fixed. Not
doing so can cause the QD60P8-G or cables to be damaged when the cables
swing, move or are pulled carelessly, for example, or to malfunction due to poor
cable connection.
4-4 4-4
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
(6) To comply with the EMC Directive and Low-Voltage Directive, always ground the
QD60P8-G to the control box using shielded twisted pair cables and AD75CK
cable clamping (Mitsubishi Electric make).
QD60P8-G
4-5 4-5
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
This section shows an example of wiring the QD60P8-G and pulse generator.
In the wiring example of this section, only CH1 is wired. Also, in this example, the
voltage of the external power supply is 24VDC as the electrical specifications of the
pulse generator.
WARNING
• When wiring, be sure to verify the rated voltage of the product as well as the terminal layout.
Fire or failure may result if incorrect voltage is input or incorrect wiring is performed.
• Do not apply the voltage exceeding the value set on the "Intelligent function module switch
setting" dialog box to the terminals.
Failure to observe this may cause fire or failure.
Shielded +24V
twisted pair cable
CH1 V+ OUT
CH1 V-
FG
24VDC +
power supply -
Shielded +24V
twisted pair cable
CH1 V+ OUT
CH1 V-
FG
24VDC +
power supply -
4-6 4-6
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
Shielded +24V
twisted pair cable
CH1 V+ GND
CH1 V-
FG
24VDC +
power supply -
Shielded +24V
twisted pair cable
CH1 V+ GND
CH1 V-
FG
24VDC +
power supply -
4-7 4-7
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
This section describes the GX Developer settings required to operate the QD60P8-G.
Set the mounting status of the QD60P8-G on the I/O assignment setting.
3) Set the following items to the slot on which the QD60P8-G is mounted.
Item Description
Type Select "Intelli".
Model Enter the model name of the module.
Points Select "32points".
Start XY Enter the start I/O number of the QD60P8-G.
4-8 4-8
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
Set the input voltage selection, pulse edge selection, linear counter or ring counter
selection, and input filter.
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.
2) When clicking on the Switch setting button, the “Switch setting for I/O
and intelligent function module" dialog box will be displayed. For the
switch settings, refer to the following.
Select "HEX."
Switch Default
Data item Description Setting details/bit assignment
No. value
b15 to b8 b7 to b0
0: fixed CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1
Set the levels of input
Switch 1 Input voltage selection 0000H
signals.
0: 12 to 24VDC
1: 5VDC
4-9 4-9
4 SETUP AND PROCEDURE BEFORE OPERATION
MELSEC-Q
Default
Switch No. Data item Description Setting detail/bit assignment
value
Counting speed of input
pulses (maximum)
Input filter setting
Switch 3 H 0: 30kpps 0000H
(CH1 to CH4)
Set the counting speed CH4 CH3 CH2 CH1 1: 10kpps
of input pulses 2: 1kpps
(maximum). 3: 100pps
(Refer to Section 3.1) 4: 50pps
Input filter setting
Switch 4 H 5: 10pps 0000H
(CH5 to CH8) CH8 CH7 CH6 CH5 6: 1pps
7: 0.1pps
No settings (blank)
Switch 5
When any item is set, delete the settings and leave the field blank.
*1: For pulse edge selection, the differences between the rise edge and fall edge,
and the count timings are shown below.
Pulse edge
Description
selection
Rise edge
Pulse input
Count number 1 2 3 4 5 6
Fall edge
Pulse input
Count number 1 2 3 4 5 6
4 - 10 4 - 10
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
This chapter explains the details and settings of the QD60P8-G functions.
The pulse input method of the QD60P8-G is 1-phase input and addition count.
(Subtraction count is not available.) However, it is allowed to set whether pulses will be
counted on the rise or fall by using the intelligent function module switches. Refer to
Section 4.5.2 for details of the switch settings of intelligent function module.
Pulse input
Count timing
method
Pulse input from
pulse generator (external)
Counted on rise ( )
of pulses
Input pulse value 1 2 3
(Buffer memory addresses: 10,11)
5
1-phase
Pulse input from
pulse generator (external) Counted on fall ( )
of pulses
Input pulse value 1 2 3
(Buffer memory addresses: 10,11)
5-1 5-1
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
This section explains the input pulse count operation of the QD60P8-G. (For CH1)
ON
Number Details
When Operating condition setting completed flag (X1) turns on, pulse count
operation is enabled.
1)
If any setting value or similar is in error, count operation cannot be performed
since Operating condition setting completed flag (X1) does not turn on.
2) When Count enable (Y18) is turned on, the count operation of CH1 starts.
3) Count enable (Y18) turns off and pulse count operation stops.
4) Count enable (Y18) turns on and pulse count operation is restarted.
The indications of "Sampling pulse number" and "Accumulating count value"
of the buffer memory are updated in the cycle set in "Count cycle setting
5) value" of the buffer memory. (Refer to Section 5.1.4)
(The update timing of "Input pulse value" of the buffer memory is fixed at
10ms.)
REMARK
In the pulse count operation of the QD60P8-G, is delayed due to the control cycle
(10ms). Refer to Section 5.9 for details.
5-2 5-2
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
This section explains how to read the count values (Sampling pulse number,
Accumulating count value, and Input pulse value) stored in the buffer memory.
Accumulating count value and Input pulse value are stored in the buffer memory as
two words (32 bits). When reading the count value from the module, always read two
words together.
The buffer memory addresses where the count values are stored are as follows.
The buffer memory addresses of Counter reset request for resetting the count values
are as follows.
POINT
When reading Accumulating count value or Input pulse value, always read two
words together.
If it is read in single word unit, a wrong count value may be read due to a data
mismatch between the lower word and upper word when the count value is
updated halfway during read.
[Program example]
5-3 5-3
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
This section describes how to change the count cycles of Sampling pulse number and
Accumulating count value.
To change the count cycle, set "1: Count cycle change function selection valid" in
"Count cycle change function selection" of the buffer memory. (Whether the function is
valid or invalid can be selected on each channel.)
Further, set the count cycle in "Count cycle setting value" of the buffer memory.
*: When "Count cycle change function selection invalid" is set, the count cycle is 1s
(fixed).
POINT
• If the setting value is other than the above values, a count cycle setting range
outside error (Error code: 600) occurs. To clear the error, turn on Error reset
request (Y8 to YF) of the corresponding channel. After this, set a correct value
and then turn on Operating condition setting request flag (Y1).
• The settings are reflected on the module by turning on the operating condition
setting request flag (Y1) after setting the values to the buffer memory.
• When measuring the frequency of the number of input pulse, set 1s for Count
cycle setting value to treat the value in Sampling pulse number as a frequency.
This eliminates the need of the program to calculate the counting value per
second.
• The timing where the program reads the count value and the updating period of
Count cycle setting value may cause errors in Accumulating count value.
5-4 5-4
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
Select the linear counter or ring counter by setting with the intelligent function module
switch.
Refer to Section 4.5.2 for details of the setting method.
When the linear counter is selected, count operation is performed between 0 and
99999999.
If "Accumulating count value" of the buffer memory exceeds 99999999, the "Overflow
detection flag" of the buffer memory turns on and an overflow error (Error code: 100)
occurs.
The linear counter can be used with the comparison output function (refer to Section
5.4), pre-scale function (refer to Section 5.6), movement averaging function (refer to
Section 5.7) and alarm output function (refer to Section 5.8).
Executed by QD60P8-G
Executed by sequence program
Accumulating count value*
99999999
0 Time
ON
Overflow OFF
detection flag
ON
*: The accumulating count value is updated in the cycle set in the "count cycle setting value"
of the buffer memory. (Refer to Section 5.1.4)
5-5 5-5
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
• Overflow error
An overflow error (Error code: 100) occurs if "Accumulating count value" of the
buffer memory exceeds 99999999 when the count type is the linear counter. If
the overflow error occurs, count operation is stopped, and "Accumulating count
value" of the buffer memory does not change from 99999999 if pulses are input.
Also, "Sampling pulse number" of the buffer memory is reset.
The overflow error is cleared by setting "1" in "Counter reset request" of the
buffer memory. Count operation is resumed after the error is cleared. The error is
also cleared by turning on Error reset request (Y8 to YF). To resume count
operation, however, turn on the operating condition setting request flag (Y1) or
set "1" in "Counter reset request" of the buffer memory.
When checking for the module error at occurrence of an overflow error, click the
[Diagnosis] - [System monitor] menu on GX Developer and monitor the system.
5-6 5-6
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
When the ring counter is selected, count operation is repeated between 0 and
99999999.
If "Accumulating count value" of the buffer memory exceeds 99999999, the
accumulating count value returns to 0 and "Carry over detection flag" of the
buffer memory turns on.
The ring counter can be used with the comparison output function (refer to
Section 5.4), pre-scale function (refer to Section 5.6), movement averaging
function (refer to Section 5.7) and alarm output function (refer to Section 5.8).
Executed by QD60P8-G
Executed by sequence program
Accumulating count value*
99999999
0 Time
ON
5-7 5-7
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
POINT
Carry over detection flag is not cleared until Carry over reset request is given. Once
cleared, Carry over detection flag does not turn on until Accumulating count value
exceeds 99999999 again.
5-8 5-8
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
The pulse number entered into the QD60P8-G is stored into "Input pulse value"
of the buffer memory. This value is counted when Count enable (Y18 to Y1F) is
on.
Input pulse value is not converted into the unit pulse number by the pre-scale
function (refer to Section 5.6), unlike "Sampling pulse number" and
"Accumulating count value" of the buffer memory. If an overflow error occurs, the
value is counted when Count enable (Y18 to Y1F) is on.
The count type of Input pulse value is a ring counter of 0 to 2147483647.
The buffer memory addresses for resetting Input pulse value are as follows.
POINT
• The update timing of Input pulse value is fixed at 10ms. Therefore, take care
when using the module as a counter. (Refer to Section 5.9)
• When reading Input pulse value, always read two words together.
If it is read in single word unit, a wrong count value may be read due to a data
mismatch between the lower word and upper word when the count value is
updated halfway during read.
5-9 5-9
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
The comparison output function compares any count value set in "Comparison
output setting value" of the buffer memory with "Accumulating count value" of the
buffer memory, and if "Accumulating count value" is equal to or greater than
"Comparison output setting value", turns on Accumulating counter comparison
flag (X10 to X17).
Set one point of Comparison output setting value for each channel.
The buffer memory addresses related to the setting of the comparison output
function are as follows.
The I/O signals (X/Y devices) related to the setting of the comparison output
function are as follows.
X/Y device
Item Read value/Setting value
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8
OFF: Accumulating count value
Accumulating counter Comparison output setting value
X10 X11 X12 X13 X14 X15 X16 X17
comparison flag ON : Accumulating count value
Comparison output setting value
OFF: No comparison signal reset
Comparison signal
request Y10 Y11 Y12 Y13 Y14 Y15 Y16 Y17
reset request
ON : Comparison signal reset request
POINT
• If the value outside the range is set to any of the above buffer memory
addresses, a comparison output setting range outside error (Error code: 200)
occurs. To clear the error, turn on Error reset request (Y8 to YF) of the
corresponding channel. After this, set a value within the setting range and then
turn on Operating condition setting request flag (Y1).
• The settings are reflected on the module by turning on the operating condition
setting request flag (Y1) after setting the values to the buffer memory.
5 - 10 5 - 10
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
1) ON
Operating condition setting
completed flag OFF
(X1)
Comparison output setting value
1200
(Buffer memory address:2,3)
ON
2) ON
Number Details
Count operation is started when Count enable (Y18) is turned on with
1)
Operating condition setting completed flag (X1) on.
When "Accumulating count value" is equal to or greater than
"Comparison output setting value", Accumulating counter comparison flag
(X10) turns on.
2)
Since Accumulating count value is updated at intervals of Count cycle
setting value (refer to Section 5.1.2), the accumulating counter comparison
flag is also turned on at the timing of the count cycle setting value.
POINT
Accumulating counter comparison flag (X10 to X17) is reset when Comparison
signal reset request (Y10 to Y17) is turned on. When the accumulating counter is
operating as a linear counter, Accumulating counter comparison flag (X10 to X17)
that was turned off once does not turn on until Accumulating count value reaches
Comparison output setting value again after it has been reset.
If the accumulating counter is operating as a ring counter, the flag turns on when
Accumulating count value reaches Comparison output setting value again in the
ring processing.
5 - 11 5 - 11
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
Setting "1" in "Counter reset request" of the buffer memory resets "Sampling
pulse number", "Accumulating count value", or "Input pulse value" of the buffer
memory.
POINT
• When the counter is reset, input pulses are invalid for a maximum of 20ms.
• When the accumulating counter is the linear counter, count operation that was
stopped due to the detection of an overflow is started after completion of a
counter reset.
• If a value other than 1 is set, the setting is ignored.
5 - 12 5 - 12
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
The pre-scale function converts the number of pulses by multiplying the number
of input pulses by an arbitrary setting number.
The pre-scale function converts Input pulse value per count cycle into the unit
pulse number using the following operation formula. The result of conversion is
stored into "Sampling pulse number" of the buffer memory.
Sampling pulse number = Input pulse value per count cycle Pre-scale
setting value Unit magnification
(The converted sampling pulse number is rounded down to the decimal point.)
(Example)
3
Suppose the pulse is input from the flow meter every 3cm flow.
In this case, set the followings in the buffer memory to convert the value stored
3
in Sampling pulse number to the flow rate (in [cm ] unit).
• Pre-scale setting value: 3
• Pre-scale function selection: 1 ( 1)
• Count cycle setting value: 0 (1s)
When the above settings are made and the number of input pulses is 570 per
a count cycle (1s), the following value will be stored to Sampling pulse number.
Sampling pulse number = Input pulse value in a count cycle Pre-scale
setting value Unit magnification
= 570 3 1
3
= 1710[cm /s]
Values of Sampling pulse number are added to Accumulating count value
every set count cycle. This leads to the conversion of accumulating count
3
value to [cm ] unit.
5 - 13 5 - 13
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
POINT
• Note that if Pre-scale setting value is set to 0, Sampling pulse number calculated
with the above operation formula becomes 0, and it seems as if pulses are not
counted although they are actually counted.
• If the setting value is other than the above values, a pre-scale setting range
outside error (Error code: 400) occurs. To clear the error, turn on Error reset
request (Y8 to YF) of the corresponding channel. After this, set a correct value
and then turn on Operating condition setting request flag (Y1).
• The settings are reflected on the module by turning on the operating condition
setting request flag (Y1) after setting the values to the buffer memory.
5 - 14 5 - 14
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
Buffer memory
First storage
Sampling pulse
Second storage number
Third storage
0 Time
*: From a counter reset or immediately after an operating condition setting request until
reaching Number of movement averaging processing, averaging processing is
performed by that number.
POINT
• If the setting value is other than the above values, a movement averaging setting
range outside error (Error code: 300) occurs. To clear the error, turn on Error
reset request (Y8 to YF) of the corresponding channel. After this, set a correct
value and then turn on Operating condition setting request flag (Y1).
• The settings are reflected on the module by turning on Operating condition
setting request flag (Y1) after setting the values to the buffer memory.
5 - 15 5 - 15
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
If the setting value is other than in the above values or does not establish the following
relation expression, an alarm output setting range outside error (Error code: 500)
occurs.
The buffer memory addresses related to the alarm output are as follows.
5 - 16 5 - 16
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
ON
bit8 (Upper limit alarm) OFF
• Assuming that the upper/upper limit = upper/lower limit and lower/upper limit =
lower/lower limit, operation is performed as shown below.
ON
Alarm output flag OFF
bit0 (Lower limit alarm)
ON
bit8 (Upper limit alarm) OFF
POINT
• Since "Sampling pulse number" of the buffer memory is updated at intervals of
Count cycle setting value (refer to Section 5.1.4), the alarm output flag also turns
on/off at the timing of the count cycle setting value.
• The settings are reflected on the module by turning on Operating condition
setting request flag (Y1) after setting the values to the buffer memory.
5 - 17 5 - 17
5 DETAILS AND SETTING OF FUNCTIONS
MELSEC-Q
The count value of the QD60P8-G is delayed for the following reasons. Please take
this into consideration when using the module as a counter.
• A delay occurs due to the scan time of a sequence program at the time of count start
processing using Count enable (Y18 to Y1F).
• A delay occurs due to the control cycle (10ms). A maximum of 20ms (one control
cycle 2) delay occurs from when Count enable (Y18 to Y1F) is turned on/off until
"Input pulse value" of the buffer memory is displayed. Similarly, a delay also occurs
at a counter reset request.
5 - 18 5 - 18
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
The following table gives the lists the functions of the utility package.
6-1 6-1
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
For how to install or uninstall the utility package, refer to "Method of installing the
MELSOFT Series" included in the utility package.
6-2 6-2
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
When intelligent function modules are installed Maximum number of parameter settings
to: Initial setting Auto refresh setting
Q00J/Q00/Q01CPU 512 256
Q02/Q02H/Q06H/Q12H/Q25HCPU 512 256
Q02PH/Q06PH/Q12PH/Q25PHCPU 512 256
Q12PRH/Q25PRHCPU 512 256
Q00UJ/Q00U/Q01UCPU 512 256
Q02UCPU 2048 1024
Q03UD/Q04UDH/Q06UDH/Q10UDH/
Q13UDH/Q20UDH/Q26UDH/Q03UDE/
4096 2048
Q04UDEH/Q06UDEH/Q10UDEH/
Q13UDEH/Q20UDEH/Q26UDEHCPU
Q50UDEH/Q100UDEHCPU Not supported Not supported
MELSECNET/H remote I/O station 512 256
(Example)
Counting the number of parameter settings in Auto refresh setting
6-3 6-3
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
This section explains the operating environment of the personal computer that runs GX
Configurator-CT.
Item Description
1 2
Installation (Add-in) target * Add-in to GX Developer Version 4 (English version) or later*
Computer Windows -based personal computer
R
CPU Refer to the following table "Used operating system and performance required for
Required memory personal computer".
Hard disk For installation 65 MB or more
3
space* For operation 10 MB or more
4
Display 800 600 dots or more resolution*
Microsoft Windows 95 Operating System (English version)
R R
Operating system
Microsoft Windows XP Home Edition Operating System (English version)
R R
*4: Resolution of 1024 768 dots or more is recommended for Windows Vista . R
6-4 6-4
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
POINT
The functions shown below are not available for Windows XP and Windows
R
Vista .
R
If any of the following functions is attempted, this product may not operate
normally.
Start of application in Windows compatible mode
R
6-5 6-5
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
Page
Up Moves the cursor one page up.
Page
Down Moves the cursor one page down.
6-6 6-6
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
<Text files>
(a) A text file can be created by clicking the Make text file button on the initial
setting, Auto refresh setting, or Monitor/Test screen. The text files can be
utilized to create user documents.
GX Developer/
GX Configurator-CT Disk
Project Project
1)
A 2) A
Personal computer
B
3)
QCPU
Q25HCPU
MODE.
RUN.
ERR.
USER. A: Intelligent function module parameters
BAT.
BOOT.
B: Data saved by "Make text file"
USB
RS-232
Figure 6.1 Correlation chart for data created with the utility package
6-7 6-7
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
6-8 6-8
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
Monitor/Test screen
6-9 6-9
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
[Operating procedure]
Intelligent function module utility is started from GX Developer.
[Tools] [Intelligent function utility] [Start]
[Setting screen]
[Explanation of items]
(1) Activation of other screens
Following screens can be displayed from the intelligent function module utility
screen.
(a) Initial setting screen
1
"Start I/O No. * " "Module type" "Module model name"
Initial setting
6 - 10 6 - 10
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
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 screen.
6 - 11 6 - 11
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
[Purpose]
Make initial setting for operating the QD60P8-G for each channel.
There are the following setting items as the initial setting data (buffer memory).
[Operating procedure]
"Start I/O No.*" "Module type" "Module model name" Initial setting
* Enter the start I/O No. in hexadecimal.
[Setting screen]
6 - 12 6 - 12
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
[Explanation of items]
(1) Command buttons
Make text file Creates a file containing the screen data in text file format.
End setup Saves the set data and ends the operation.
Cancel Cancels the setting and ends the operation.
POINT
Initial settings are stored in the intelligent function module parameter file.
After being written to the CPU module, the initial setting takes effect by either (1) or
(2).
(1) Cycle the RUN/STOP switch of the CPU module: STOP RUN STOP
RUN.
(2) With the RUN/STOP switch set to RUN, turn off and then on the power or reset
the CPU module.
Arrange so that the initial settings written by the sequence program are re-executed
while the CPU module changes from STOP to RUN.
When using a sequence program, the initial setting parameters are written at the
time the CPU module status changes from STOP to RUN.
6 - 13 6 - 13
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
[Purpose]
Set the QD60P8-G buffer memory to be automatically refreshed, for each
channel.
There are the following buffer memory items to be automatically refreshed for
each channel.
These auto refresh settings eliminate the need for reading by a sequence
program.
[Operating procedure]
"Start I/O No.*" "Module type" "Module model name" Auto refresh
* Enter the start I/O No. in hexadecimal.
[Setting screen]
6 - 14 6 - 14
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
[Explanation of items]
(1) Items
Module side Buffer : Displays the buffer memory size of the setting item.
size
Module side : Displays the number of words to be transferred.
Transfer word count
Transfer direction : " " indicates that data are written from the programmable
controller CPU to the buffer memory.
" " indicates that data are loaded from the buffer memory
to the programmable controller CPU.
PLC side Device : Enter a CPU module side device that is to be 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.
End setup Saves the set data and ends the operation.
POINT
• At the time of auto refresh, the buffer memory contents are batch-read (25 words)
for each channel. The order of storing the data into the CPU module side devices
is the same as that of buffer memory assignment (refer to Section 3.4.1).
• 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.
• Auto refresh settings cannot be changed from the sequence program. However,
it is possible to add a process similar to auto refresh by the sequence program.
6 - 15 6 - 15
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
6.6 Monitoring/Test
[Purpose]
Start buffer memory monitoring/testing and I/O signal monitoring/testing from this
screen.
[Operating procedure]
"Select monitor/test module" screen "Start I/O No.*" "Module type"
"Module model name" Monitor/test
* Enter the start I/O No. in hexadecimal.
The screen can also be started from System monitor of GX Developer Version 6
or later.
Refer to the GX Developer Operating Manual for details.
[Setting screen]
6 - 16 6 - 16
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
[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.
Make text file Creates a file containing the screen data in text
file format.
Start monitor / Stop monitor Selects whether or not to monitor current values.
6 - 17 6 - 17
6 UTILITY PACKAGE (GX Configurator-CT)
MELSEC-Q
(Example)
Click this button after selecting "Error reset request" in the setting (value) field of
"Error reset request" on the X/Y Monitor/Test screen.
Perform similar operation also for the "Operating condition setting request flag".
POINT
• To reflect the new settings (values) on the module, you have to choose
"Operating condition setting request" for the "Operating condition setting request
flag" and click Execute test .
• "Error reset request"/"Comparison signal reset request" turns to "No request"
automatically if Error occurrence (X8 to XF)/Accumulating counter comparison
flag (X10 to X17) turns off at the time of test execution.
6 - 18 6 - 18
7 PROGRAMMING
MELSEC-Q
CHAPTER 7 PROGRAMMING
When diverting the program example introduced in this chapter to the actual system,
fully check that there are no problems in the controllability of the system.
7-1 7-1
7 PROGRAMMING
MELSEC-Q
Start
YES
Comparison output selection setting
Comparison output setting value setting
YES
Movement averaging processing selection setting
Number of movement averaging processing setting
NO
Do you use the pre-scale function?
YES
Pre-scale function selection setting
Pre-scale setting value setting
Initial setting
NO
Do you use the alarm output function?
YES
NO
Do you use the count cycle
change function?
YES
End
7-2 7-2
7 PROGRAMMING
MELSEC-Q
X20 to X2F
X/Y0 to X/Y1F
7-3 7-3
7 PROGRAMMING
MELSEC-Q
7-4 7-4
7 PROGRAMMING
MELSEC-Q
Data registers
Device whose
value is written
Device name Device Data stored
in the auto
refresh.
D30 D0 Sampling pulse number
D31 D8 (L)
Accumulating count value
D32 D9 (H)
Data registers
D33 D10 (L)
Input pulse value
D34 D11 (H)
D35 D16 Error code
7-5 7-5
7 PROGRAMMING
MELSEC-Q
7-6 7-6
7 PROGRAMMING
MELSEC-Q
7-7 7-7
7 PROGRAMMING
MELSEC-Q
7-8 7-8
7 PROGRAMMING
MELSEC-Q
Data registers
Buffer memory
Device name Device Data stored
address
D30 0 Sampling pulse number
D31 8 (L)
Accumulating count value
D32 9 (H)
Data registers
D33 10 (L)
Input pulse value
D34 11 (H)
D35 16 Error code
7-9 7-9
7 PROGRAMMING
MELSEC-Q
Movement averaging
processing selection
Number of movement
averaging processing
7 - 10 7 - 10
7 PROGRAMMING
MELSEC-Q
<Error reset>
7 - 11 7 - 11
7 PROGRAMMING
MELSEC-Q
7 - 12 7 - 12
7 PROGRAMMING
MELSEC-Q
• Refresh parameters :
7 - 13 7 - 13
7 PROGRAMMING
MELSEC-Q
Data registers
Device whose
value is written
Device name Device Data stored
in the auto
refresh.
D30 W0 Sampling pulse number
D31 W8 (L)
Accumulating count value
D32 W9 (H)
Data registers
D33 W10 (L)
Input pulse value
D34 W11 (H)
D35 W16 Error code
7 - 14 7 - 14
7 PROGRAMMING
MELSEC-Q
7 - 15 7 - 15
7 PROGRAMMING
MELSEC-Q
7 - 16 7 - 16
7 PROGRAMMING
MELSEC-Q
7 - 17 7 - 17
7 PROGRAMMING
MELSEC-Q
• Refresh parameters :
7 - 18 7 - 18
7 PROGRAMMING
MELSEC-Q
Data registers
Buffer memory
Device name Device Data stored
address
D30 0 Sampling pulse number
D31 8 (L)
Accumulating count value
D32 9 (H)
Data registers
D33 10 (L)
Input pulse value
D34 11 (H)
D35 16 Error code
7 - 19 7 - 19
7 PROGRAMMING
MELSEC-Q
7 - 20 7 - 20
7 PROGRAMMING
MELSEC-Q
7 - 21 7 - 21
7 PROGRAMMING
MELSEC-Q
7 - 22 7 - 22
8 ONLINE MODULE CHANGE
MELSEC-Q
When changing a module online, carefully read the QCPU User's Manual (Hardware
Design, Maintenance and Inspection), section 12.4.1 "Online module change".
This chapter describes the functions of an online module change. Perform an online
module change by operating GX Developer.
POINT
(1) Perform an online module change after making sure that the system outside
the programmable controller will not malfunction.
(2) To prevent an electric shock and malfunction of operating modules, provide
means such as switches for powering off each of the external power supply
and external devices connected to the module to be replaced online.
(3) To prevent an electric shock, always turn off the input pulse signal from the
pulse generator connected to the module to be changed online.
(4) After the module has become faulty, the buffer memory contents cannot be
confirmed. Therefore, prerecord the settings (The whole buffer memory
contents that can be written refer to Section 3.4.1).
(5) It is recommended to perform an online module change in the actual system in
advance to ensure that it would not affect the other modules by checking the
following:
• Means of cutting off the connection to external devices and its configuration
are correct.
• Switching on/off does not bring any undesirable effect.
(6) Do not install/remove the module to/from the base unit, or the terminal block
to/from the module more than 50 times after the first use of the product. (IEC
61131-2 compliant)
Failure to do so may cause malfunction.
8-1 8-1
8 ONLINE MODULE CHANGE
MELSEC-Q
(3) GX Developer
GX Developer of Version 7.10L or later is necessary.
GX Developer of Version 8.18U or later is required to perform an online module
change on the remote I/O station.
8-2 8-2
8 ONLINE MODULE CHANGE
MELSEC-Q
The following gives the operations performed for an online module change.
Programmable controller CPU operation
: Executed : Not executed
(Intelligent function module
No.*3 GX Configurator-CT (User operation) 3
X/Y FROM/TO Device operation)
Initial setting Monitor/
refresh instruction *1 test
parameter test
(1) Operation stop
Turn off all Y signals that were
(1) turned on by a sequence program. Module is operating.
8-3 8-3
8 ONLINE MODULE CHANGE
MELSEC-Q
The online module change procedure is explained separately for the case where GX
Configurator-CT was used for initial setting and for the case where a sequence
program was used for initial setting.
8-4 8-4
8 ONLINE MODULE CHANGE
MELSEC-Q
If the following error screen appears, click the "OK" button and perform the
operation in (2)(c) and later.
(c) After confirming that the "RUN" LED of the module has turned off,
disconnect the external wiring and dismount the module.
POINT
Always dismount the module. If mounting confirmation is made without the module
being dismounted, the module will not start properly and the “RUN” LED will not be
lit.
8-5 8-5
8 ONLINE MODULE CHANGE
MELSEC-Q
(b) Click the [OK] button to leave the "Online module change" mode.
8-6 8-6
8 ONLINE MODULE CHANGE
MELSEC-Q
(c) Click the [Close] button to close the System monitor screen.
8-7 8-7
8 ONLINE MODULE CHANGE
MELSEC-Q
(b) Prerecord the writable buffer memory contents that have been set initially in
the sequence program.
Choose [Online] - [Monitor] - [Buffer memory batch] on GX Developer,
monitor the buffer memory, and record the values.
POINT
If a CPU continuation error (e.g. SP. UNIT DOWN, UNIT VERIFY ERR.) has
occurred due to the fault of the module to be changed, the buffer memory contents
cannot be confirmed.
8-8 8-8
8 ONLINE MODULE CHANGE
MELSEC-Q
If the following error screen appears, click the [OK] button and perform the
operation in (2) (c) and later.
8-9 8-9
8 ONLINE MODULE CHANGE
MELSEC-Q
(c) After confirming that the "RUN" LED of the module has turned off,
disconnect the external wiring and dismount the module.
POINT
Always dismount the module. If mounting confirmation is made without the module
being dismounted, the module will not start properly and the "RUN" LED will not be
lit.
8 - 10 8 - 10
8 ONLINE MODULE CHANGE
MELSEC-Q
(b) Click the [OK] button to leave the "Online module change" mode.
(c) Click the [Close] button to close the System monitor screen.
(d) Choose [Online] - [Debug] - [Device test] on GX Developer, and set the
buffer memory contents recorded in step (1)(b) to the buffer memory.
8 - 11 8 - 11
8 ONLINE MODULE CHANGE
MELSEC-Q
8 - 12 8 - 12
8 ONLINE MODULE CHANGE
MELSEC-Q
(1) Always perform an online module change in the correct procedure. A failure to do
so can cause a malfunction or failure.
(2) When an online module change is made, the following buffer memory values are
cleared to "0".
• Sampling pulse number
• Accumulating count value
• Input pulse value
8 - 13 8 - 13
9 TROUBLESHOOTING
MELSEC-Q
CHAPTER 9 TROUBLESHOOTING
9.1 Troubleshooting
This section explains the troubleshooting for the cases where the count of input pulses
cannot be started and the input pulse count value is incorrect during use of the
QD60P8-G.
9-1 9-1
9 TROUBLESHOOTING
MELSEC-Q
9-2 9-2
9 TROUBLESHOOTING
MELSEC-Q
[Display format]
Select "Decimal".
(The error codes indicated in
"Section 9.3 List of errors"
are in decimal.)
[Present Error]
Means error code 300
"Movement averaging setting
range outside error".
9-3 9-3
9 TROUBLESHOOTING
MELSEC-Q
[Setting procedure]
Chose [Diagnostics] [System monitor] "QD60P8-G module" and
choose "Module’s Detailed Information" H/W Information .
[H/W SW Information]
The setting status of the intelligent function module switches are displayed.
9-4 9-4
9 TROUBLESHOOTING
MELSEC-Q
To clear this error, turn on Error reset request (Y8 to YF). Further, to start
count operation properly, set "1" in the "Counter reset request" of the buffer
memory.
To clear this error, set a correct value and turn on the operating condition
setting request flag (Y1) again.
Change the module if the error occurs again after power is switched from
off to on or the programmable controller CPU is reset.
9-5 9-5
9 TROUBLESHOOTING
MELSEC-Q
1 X8 Y8 16
2 X9 Y9 48
3 XA YA 80
4 XB YB 112
5 XC YC 144
6 XD YD 176
7 XE YE 208
8 XF YF 240
9-6 9-6
9 TROUBLESHOOTING
MELSEC-Q
MEMO
9-7 9-7
9 TROUBLESHOOTING
MELSEC-Q
9-8 9-8
9 TROUBLESHOOTING
MELSEC-Q
9-9 9-9
9 TROUBLESHOOTING
MELSEC-Q
840 Module error A module power off error occurred. Module READY (X0) turns off.
9 - 10 9 - 10
9 TROUBLESHOOTING
MELSEC-Q
9 - 11 9 - 11
APPENDICES
MELSEC-Q
APPENDICES
98(3.86)
(0.16)
4
23(0.91)
90(3.54) 27.4(1.08)
Unit: mm (in.)
App
App - 1 App - 1
APPENDICES
MELSEC-Q
MEMO
App
App - 2 App - 2
INDEX
Index - 1 Index - 1
[L] ∼ Selection function.....................................3- 3
Linear counter......................................... 3- 3, 5- 5 Pulse generator.............................. 1- 1, 4- 6, 4- 7
Ind
[M] [R]
Menu bar........................................................ 6-11 Read
Module error .................................................. 9-10 Count value ∼ ..............................................5- 3
Module READY .............................................. 3- 5 Ring counter........................................... 3- 3, 5- 7
Module's Detailed Information ....................... 9- 4 Rise/Fall time ..................................................3- 2
Monitoring/Test.............................................. 6-16
Mountable module........................................... 2-1 [S]
Movement averaging Sampling pulse number................. 1- 1, 3- 9, 5- 3
∼ Function .......................................... 3- 3, 5-15 Screw
∼ Processing ...................................... 1- 1, 5-15 Module fixing ∼ ............................................4- 1
∼ Processing selection .....................3-10, 5-15 Terminal block terminal ∼............................4- 1
∼ Setting range outside error...................... 9- 8 Terminal block mounting ∼..........................4- 1
Multiple CPU system...................................... 2- 3 Sequence program .........................................7- 1
Shielded twisted pair cable.............................4- 4
[N] Signal layout...................................................3-14
Network module ............................................. 2- 2 Signal level......................................................3- 1
Number of channel......................................... 3- 1 Software version .................................... 2- 4, 2- 6
Number of movement averaging processing Start .................................................................6- 8
.............................................................. 3-10, 5-15 Starting utility..................................................6-10
Switch setting error ........................................9-10
[O]
Online module change ................................... 8- 1 [T]
∼ Conditions................................................ 8- 2 Terminal block.................................................3- 1
∼ Function ................................................... 3- 3 Text file............................................................6- 7
∼ Operations ............................................... 8- 3 Troubleshooting ..............................................9- 1
∼ Procedure ................................................ 8- 4
Operating condition setting complete flag ..... 3- 5 [U]
Operating condition setting request flag........ 3- 7 Utility....................................................... 3- 3, 6- 1
Operating environment .................................. 6- 4
Operation overview ........................................ 6- 8 [V]
Output signals......................................... 3- 4, 3- 7 Version
Overflow.......................................................... 9- 5 Function ∼....................................................2- 6
∼ Detection flag.................................. 3-11, 5- 6 Software ∼ .......................................... 2- 4, 2- 6
∼ Error ................................................. 5- 6, 9- 8
[W]
[P] Watch dog timer error ....................................9-10
Performance specifications............................ 3- 1 Weight .............................................................3- 1
Program example............... 7- 4, 7- 9, 7- 13, 7-18 Wiring ..............................................................4- 4
Programmable controller CPU error ............. 9-10
Precautions..................................................... 6- 2 [X]
Pre-scale X device...........................................................3- 4
∼ Function .......................................... 3- 3, 5-13
∼ Function selection..........................3-10, 5-13 [Y]
∼ Setting range outside error...................... 9- 8 Y device...........................................................3- 4
∼ Setting value ........................................... 3-11
Pulse edge
∼ Selection .................................................. 4- 9
Index - 2 Index - 2
MEMO
Index - 3 Index - 3
WARRANTY
Please confirm the following product warranty details before using this product.
3. Overseas service
Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA
Center may differ.
SH (NA)-080313E-J
SH(NA)-080313E-J(1012)MEE
MODEL: QD60P8-G-U-S-E
MODEL CODE: 13JR54
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN
When exported from Japan, this manual does not require application to the
Ministry of Economy, Trade and Industry for service transaction permission.