EN
Mitsubishi Electronics logo
Official user manual

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2)

154 pages·3.3 MB·Drums·PDF·ENDEFRITNLJA
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2)
Table of Contents 105 sections SAFETY PRECAUTIONS · CONDITIONS OF USE FOR THE PRODUCT · REVISIONS · INTRODUCTION · … ShowHide
SAFETY PRECAUTIONSp.3CONDITIONS OF USE FOR THE PRODUCTp.6REVISIONSp.7INTRODUCTIONp.8CONTENTSp.8Compliance with the EMC and Low Voltage Directivesp.11GENERIC TERMS AND ABBREVIATIONSp.12PACKING LISTp.12CHAPTER1 OVERVIEWp.131.1 Featuresp.14CHAPTER2 SYSTEM CONFIGURATIONp.162.1 Applicable Systemsp.162.2 About Use of the QD64D2 with Redundant CPUp.202.3 About Use of the QD64D2 on the MELSECNET/H Remote I/O Stationp.212.4 How to Check the Function Version/Serial No./Software Versionp.22CHAPTER3 SPECIFICATIONSp.253.1 Performance Specificationsp.253.1.1 Relation of phase difference between phase A and phase Bp.263.1.2 Derating chartp.273.2 Function Listp.293.3 I/O Signals to the Programmable Controller CPUp.303.3.1 List of I/O signalsp.303.3.2 Functions of I/O signalsp.323.4 Buffer Memory Assignmentp.393.4.1 List of buffer memory assignmentp.393.4.2 Details of the buffer memoryp.433.5 Specifications of I/O Interfaces with External Devicep.483.5.1 Electrical specifications of I/O signalsp.483.5.2 Signal layout for external device connectorp.493.5.3 List of I/O signal detailsp.503.5.4 Interface for external devicep.513.6 Connectable Encodersp.52CHAPTER4 PROCEDURES AND SETTINGS BEFORE OPERATIONp.534.1 Handling Precautionsp.534.2 Procedures before Operationp.544.3 Part Namesp.554.4 Wiringp.574.4.1 Wiring precautionsp.574.4.2 Example of wiring the module and an encoderp.594.4.3 Example of wiring a controller and an external input terminalp.604.4.4 Example of wiring with an external output terminalp.614.5 Intelligent Function Module Switch Settingp.62CHAPTER5 FUNCTIONSp.655.1 Pulse Input and Count Methodsp.655.1.1 Types of the pulse input methodp.655.2 Selecting a Counter Formatp.675.2.1 Selecting the linear counterp.685.2.2 Selecting the ring counterp.695.3 Using the Counter Value Comparison Functionp.725.3.1 Using the coincidence output functionp.735.3.2 Using the continuous comparison functionp.775.3.3 Using the coincidence output test functionp.865.3.4 Coincidence detection interrupt functionp.885.4 Using the Preset Functionp.915.5 Using the Latch Counter Functionp.935.6 Response Delay Timep.95CHAPTER6 UTILITY PACKAGE (GX Configurator-CT)p.966.1 Utility Package Functionsp.966.2 Installing and Uninstalling the Utility Packagep.986.2.1 Handling precautionsp.986.2.2 Operating environmentp.1006.3 Utility Package Operationp.1026.3.1 Common utility package operationsp.1026.3.2 Operation overviewp.1046.3.3 Starting the Intelligent function module utilityp.1066.4 Initial Settingp.1096.5 Auto Refreshp.1116.6 Monitoring/Testp.1136.6.1 Monitoring/testp.113CHAPTER7 PROGRAMMINGp.1167.1 Programming Procedurep.1167.2 For Use in Normal System Configurationp.1187.2.1 Before creating a programp.1197.3 Programming Example when GX Configurator-CT is Usedp.1217.4 Programming Example when GX Configurator-CT is not Usedp.1277.5 Program Example when the Coincidence Detection Interrupt Function is Usedp.132CHAPTER8 TROUBLESHOOTINGp.1348.1 Error Processing and Recovery Methodsp.1348.1.1 Checking error description using System Monitor of GX Developerp.1348.1.2 When the RUN LED turns OFFp.1368.1.3 When the RUN LED and ERR.LED turn ONp.1368.1.4 When the RUN LED and FUSE LED turn ONp.1368.2 When the QD64D2 does not Start Countingp.1378.3 When the QD64D2 does not Normally Countp.1378.4 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) does not Turn ON/OFFp.1388.4.1 When selecting the coincidence output functionp.1388.4.2 When selecting the continuous comparison functionp.1388.5 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) are Turned ON, but the...p.1398.6 When the Coincidence Detection Interrupt does not Occurp.1398.7 When the Coincidence Output Test Function Cannot be Executedp.1408.8 When the Preset Cannot be Executedp.1418.8.1 When the preset cannot be executed by the preset command (Y04)p.1418.8.2 When the preset cannot be executed by the preset input terminal (PRST)p.1418.9 When the Latch Counter Function Cannot be Executedp.1428.9.1 When the latch counter function cannot be executed by the latch counter execution command (Y07)p.1428.9.2 When the latch counter function cannot be executed by the latch counter input terminal (LATCH)p.1428.10 When the Error Code (Un\G18)/Warning Code (Un\G19) Cannot be Resetp.1428.11 Action and Handling of Errorsp.1438.11.1 Error code listp.1438.11.2 Warning code listp.146APPENDICESp.147Appendix 1 External Dimensionsp.147Appendix 2 Difference with the QD62Dp.147INDEXp.149Warrantyp.151
Page 1 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4Mpps Capable High-Speed Counter Module User's Manual
Page 1 · click to enlarge
Page 1
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) diagram (page 1)
Fig. 1

4Mpps Capable High-Speed Counter Module User's Manual

-QD64D2 -GX Configurator-CT (SW0D5C-QCTU-E)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 4Mpps Capable High-Speed Counter Module User's Manual diagram (page 1)
Fig. 2 · 4Mpps Capable High-Speed Counter Module User's Manua…
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 4Mpps Capable High-Speed Counter Module User's Manual diagram (page 1)
Fig. 3 · 4Mpps Capable High-Speed Counter Module User's Manua…
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 4Mpps Capable High-Speed Counter Module User's Manual diagram (page 1)
Fig. 4 · 4Mpps Capable High-Speed Counter Module User's Manua…
Page 2 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual
Page 2 · click to enlarge
Page 2
Page 2 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual
Page 3 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — A - 1
Page 3 · click to enlarge
Page 3

SAFETY PRECAUTIONS

(Read these precautions before use.)

Before using this product, please read 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. For the safety precautions of the programmable controller system, please read the User's Manual for the CPU module.

In this manual, the safety precautions are classified into two levels: " WARNING" and " CAUTION".

Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury.

WARNING

Indicates that incorrect handling may cause hazardous conditions, resulting in minor or moderate injury or property damage.

CAUTION

Always follow the precautions of both levels because they are important to personal safety. Please save this manual to make it accessible when required and always forward it to the end user.

[DESIGN PRECAUTIONS]

WARNING

Do not write data to "read-only area" or "reserved area" in the buffer memory of the intelligent function module. Also do not turn ON/OFF the "reserved" signal in I/O signals to the programmable controller CPU. Doing any of these operations may cause a malfunction of the programmable controller system.

When a transistor for external output fails, the output may be ON or OFF status. Create a circuit for monitoring output signal that may lead to serious accident.

CAUTION

Do not install the control lines and/or pulse input wiring together with the main circuit or power lines, and also do not bring them close to each other. Keep a distance of 150mm (5.91 inch) or more between them. Failure to do so may cause a malfunction due to noise.

[INSTALLATION PRECAUTIONS]

CAUTION

Use the programmable controller in the environment conditions given in the general specifications of the User's Manual for the CPU module. Failure to do so may cause an electric shock, fire, malfunction, or damage to or deterioration of the product.

A - 1

Page 4 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — A - 2
Page 4 · click to enlarge
Page 4

[INSTALLATION PRECAUTIONS]

CAUTION

While pressing the installation lever located at the bottom of the module, fully insert the module fixing projection into the fixing hole in the base unit and press the module using the hole as a fulcrum. Incorrect module mounting may cause a malfunction, failure, or drop of the module. In an environment of frequent vibrations, secure the module with screws.

The screws must be tightened within the specified torque range. If the screw is too loose, it may cause a drop, short circuit, or malfunction. Excessive tightening may damage the screw and/or the module, resulting in a drop, short circuit or malfunction.

Be sure to shut off all phases of the external power supply used by the system before mounting or removing the module. Failure to do so may cause damage to the product.

Do not directly touch any conductive part or electronic part of the module. Doing so may cause a malfunction or failure of the module.

[WIRING PRECAUTIONS]

CAUTION

For wiring and connection, properly crimp or solder the connector with the tools specified by the manufactures and attach the connector to the module securely.

Be careful to prevent foreign matter such as dust or wire chips from entering the module. Failure to do may cause a fire, failure or malfunction.

A protective film is attached to the module top to prevent foreign matter such as wire chips from entering the module during wiring. Do not remove the film during wiring. Be sure to remove it for heat dissipation before system operation.

Be sure to place the cables connected to the module in a duct or clamp them. If not, dangling cables may swing or inadvertently be pulled, resulting in damage to the module and/ or cables, or malfunctions due to poor cable connection.

When disconnecting the cable, do not pull it by holding the cable part. Disconnect the cable with connector with holding the connector plugged into the module. Pulling the cable part with the cable still connected to the module may cause a malfunction or damage to the module and/or cable.

A - 2

Page 5 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — A - 3
Page 5 · click to enlarge
Page 5

[WIRING PRECAUTIONS]

CAUTION

Always ground the shielded cable on the module side. Failure to do may cause a malfunction.

Correctly wire cables to the module after checking the rated voltage and terminal layout of the product. Connecting a voltage different from the rated voltage or incorrect wiring may result in a fire or failure.

[STARTUP/MAINTENANCE PRECAUTIONS]

CAUTION

Do not disassemble or remodel each of the modules. Doing so may cause failure, malfunctions, personal injuries and/or a fire.

Be sure to shut off all phases of the external power supply used by the system before mounting or removing the module. Not doing so may result in a failure or malfunction of the module.

Do not mount/remove the module onto/from the base unit more than 50 times (IEC 61131-2 compliant), after the first use of the product. Doing so may cause malfunctions.

Do not touch the terminal while the power is ON. Failure to do may cause a malfunction.

Be sure to shut off all phases of the external power supply used by the system when cleaning the module or retightening the terminal or module fixing screws. Not doing so may result in a failure or malfunction of the module. If the screw is too loose, it may cause a drop, short circuit or malfunction. Excessive tightening may damage the screw and/or the module, resulting in a drop, short circuit or malfunction.

Before handling the module, touch a grounded metal object to discharge the static electricity from the human body. Not doing so may result in a failure or malfunction of the module.

[DISPOSAL PRECAUTIONS]

CAUTION

When disposing of this product, treat it as industrial waste.

A - 3

Page 6 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — A - 4
Page 6 · click to enlarge
Page 6

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; • 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. • 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. • 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 - 4

Page 7 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2008 MITSUBISHI ELECTRIC CORPORATION
Page 7 · click to enlarge
Page 7

REVISIONS

* The manual number is given on the bottom left of the back cover.

Print date*Manual numberRevision Dec., 2008SH(NA)-080726ENG-AFirst edition Apr., 2010SH(NA)-080726ENG-BCorrection SAFETY PRECAUTIONS,GENERIC TERMS AND ABBREVIATIONS, Chapter 1, Section 2.1,Section 2.2, Section 4.4.1, Section 5.3.4, Section 6.2.1 Addition CONDITIONS OF USE FOR THE PRODUCT, Compliance with the EMC and Low Voltage Directives, Section 2.3

Japanese Manual Version SH-080725-D

This manual confers no industrial property rights or any rights of any other kind, nor does it confer any 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.

2008 MITSUBISHI ELECTRIC CORPORATION

A - 5

Page 8 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — Table of Contents
Page 8 · Contents
Contents

Contents

SAFETY PRECAUTIONSp.3CONDITIONS OF USE FOR THE PRODUCTp.6REVISIONSp.7INTRODUCTIONp.8CONTENTSp.8Compliance with the EMC and Low Voltage Directivesp.11GENERIC TERMS AND ABBREVIATIONSp.12PACKING LISTp.12CHAPTER1 OVERVIEWp.131.1 Featuresp.14CHAPTER2 SYSTEM CONFIGURATIONp.162.1 Applicable Systemsp.162.2 About Use of the QD64D2 with Redundant CPUp.202.3 About Use of the QD64D2 on the MELSECNET/H Remote I/O Stationp.212.4 How to Check the Function Version/Serial No./Software Versionp.22CHAPTER3 SPECIFICATIONSp.253.1 Performance Specificationsp.253.1.1 Relation of phase difference between phase A and phase Bp.263.1.2 Derating chartp.273.2 Function Listp.293.3 I/O Signals to the Programmable Controller CPUp.303.3.1 List of I/O signalsp.303.3.2 Functions of I/O signalsp.323.4 Buffer Memory Assignmentp.393.4.1 List of buffer memory assignmentp.393.4.2 Details of the buffer memoryp.433.5 Specifications of I/O Interfaces with External Devicep.483.5.1 Electrical specifications of I/O signalsp.483.5.2 Signal layout for external device connectorp.493.5.3 List of I/O signal detailsp.503.5.4 Interface for external devicep.513.6 Connectable Encodersp.52CHAPTER4 PROCEDURES AND SETTINGS BEFORE OPERATIONp.534.1 Handling Precautionsp.534.2 Procedures before Operationp.544.3 Part Namesp.554.4 Wiringp.574.4.1 Wiring precautionsp.574.4.2 Example of wiring the module and an encoderp.594.4.3 Example of wiring a controller and an external input terminalp.604.4.4 Example of wiring with an external output terminalp.614.5 Intelligent Function Module Switch Settingp.62CHAPTER5 FUNCTIONSp.655.1 Pulse Input and Count Methodsp.655.1.1 Types of the pulse input methodp.655.2 Selecting a Counter Formatp.675.2.1 Selecting the linear counterp.685.2.2 Selecting the ring counterp.695.3 Using the Counter Value Comparison Functionp.725.3.1 Using the coincidence output functionp.735.3.2 Using the continuous comparison functionp.775.3.3 Using the coincidence output test functionp.865.3.4 Coincidence detection interrupt functionp.885.4 Using the Preset Functionp.915.5 Using the Latch Counter Functionp.935.6 Response Delay Timep.95CHAPTER6 UTILITY PACKAGE (GX Configurator-CT)p.966.1 Utility Package Functionsp.966.2 Installing and Uninstalling the Utility Packagep.986.2.1 Handling precautionsp.986.2.2 Operating environmentp.1006.3 Utility Package Operationp.1026.3.1 Common utility package operationsp.1026.3.2 Operation overviewp.1046.3.3 Starting the Intelligent function module utilityp.1066.4 Initial Settingp.1096.5 Auto Refreshp.1116.6 Monitoring/Testp.1136.6.1 Monitoring/testp.113CHAPTER7 PROGRAMMINGp.1167.1 Programming Procedurep.1167.2 For Use in Normal System Configurationp.1187.2.1 Before creating a programp.1197.3 Programming Example when GX Configurator-CT is Usedp.1217.4 Programming Example when GX Configurator-CT is not Usedp.1277.5 Program Example when the Coincidence Detection Interrupt Function is Usedp.132CHAPTER8 TROUBLESHOOTINGp.1348.1 Error Processing and Recovery Methodsp.1348.1.1 Checking error description using System Monitor of GX Developerp.1348.1.2 When the RUN LED turns OFFp.1368.1.3 When the RUN LED and ERR.LED turn ONp.1368.1.4 When the RUN LED and FUSE LED turn ONp.1368.2 When the QD64D2 does not Start Countingp.1378.3 When the QD64D2 does not Normally Countp.1378.4 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) does not Turn ON/OFFp.1388.4.1 When selecting the coincidence output functionp.1388.4.2 When selecting the continuous comparison functionp.1388.5 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) are Turned ON, but the...p.1398.6 When the Coincidence Detection Interrupt does not Occurp.1398.7 When the Coincidence Output Test Function Cannot be Executedp.1408.8 When the Preset Cannot be Executedp.1418.8.1 When the preset cannot be executed by the preset command (Y04)p.1418.8.2 When the preset cannot be executed by the preset input terminal (PRST)p.1418.9 When the Latch Counter Function Cannot be Executedp.1428.9.1 When the latch counter function cannot be executed by the latch counter execution command (Y07)p.1428.9.2 When the latch counter function cannot be executed by the latch counter input terminal (LATCH)p.1428.10 When the Error Code (Un\G18)/Warning Code (Un\G19) Cannot be Resetp.1428.11 Action and Handling of Errorsp.1438.11.1 Error code listp.1438.11.2 Warning code listp.146APPENDICESp.147Appendix 1 External Dimensionsp.147Appendix 2 Difference with the QD62Dp.147INDEXp.149Warrantyp.151
Page 11 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — A - 9
Page 11 · click to enlarge
Page 11

Compliance with the EMC and Low Voltage Directives

(1) For programmable controller system

To configure a system meeting the requirements of the EMC and Low Voltage Directives when incorporating the Mitsubishi programmable controller (EMC and Low Voltage Directives compliant) into other machinery or equipment, refer to Chapter 9 "EMC AND LOW VOLTAGE DIRECTIVES" of the QCPU User's Manual (Hardware Design, Maintenance and Inspection). The CE mark, indicating compliance with the EMC and Low Voltage Directives, is printed on the rating plate of the programmable controller.

(2) For the product

For the compliance of this product with the EMC and Low Voltage Directives, refer to Section 4.4.1 Wiring precautions.

A - 9

Page 12 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — A - 10
Page 12 · click to enlarge
Page 12

GENERIC TERMS AND ABBREVIATIONS

This manual describes the type QD64D2 4Mpps capable high-speed counter module using the following generic terms and abbreviations, unless otherwise specified.

Generic term and abbreviationDescription QD64D2Abbreviation for the type QD64D2 4Mpps capable high-speed counter module CHGeneric term for CH1 and CH2 Coincidence signal No. mGeneric term for the coincidence signal No. 1 and the coincidence signal No. 2 Coincidence output No. mGeneric term for the coincidence output No. 1 and the coincidence output No. 2 Continuous comparison No.mGeneric term for the continuous comparison No. 1 and the continuous comparison No. 2 Continuous comparison No.1 point nGeneric term for the continuous comparison No. 1 point 1 to the continuous comparison No. 1 point 16 Continuous comparison No.2 point nGeneric term for the continuous comparison No. 2 point 1 to the continuous comparison No. 2 point 16 Continuous comparison No.m point n settingGeneric term for the continuous comparison No. 1 point n setting and the continuous comparison No. 2 point n setting Comparison pointGeneric term for the coincidence output No. m point setting and the continuous comparison No. m point n setting External coincidence output power supply terminalGeneric term for external coincidence output power supply 12/24V terminal and external coincidence output power supply GND (0V) terminal Personal computerGeneric term for IBM-PC/AT-compatible personal computer GX DeveloperProduct name for MELSEC software packerge GX Works2 GX Configurator-CTAbbreviation for GX Configurator-CT (SW0D5C-QCTU-E) of counter module setting/monitor tool QCPU (Q mode)Generic term for the Q00JCPU, Q00CPU, Q01CPU, Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU, Q12PRHCPU, Q25PRHCPU, Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU, Q20UDEHCPU, Q26UDEHCPU, Q50UDEHCPU and Q100UDEHCPU Redundant CPUGeneric term for the Q12PRHCPU and Q25PRHCPU Windows VistaGeneric term for the following: Microsoft Windows Vista Home Basic Operating System, Microsoft Windows Vista Home Premium Operating System, Microsoft Windows Vista Business Operating System, Microsoft Windows Vista Ultimate Operating System, Microsoft Windows Vista Enterprise Operating System Windows XPGeneric term for the following: Microsoft Windows XP Professional Operating System, Microsoft Windows XP Home Edition Operating System

PACKING LIST

The following are included in the package.

ModelProduct nameQuantity QD64D2Type QD64D2 4Mpps capable high-speed counter module1 SW0D5C-QCTU-EGX Configurator-CT Version 1 (single license product) (CD-ROM)1 SW0D5C-QCTU-EAGX Configurator-CT Version 1 (volume license product) (CD-ROM)1

A - 10

Page 13 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — CH2
Page 13 · click to enlarge
Page 13

CHAPTER1 OVERVIEW

This User's Manual describes the specifications, handling, and programming methods for the type QD64D2 4Mpps capable high-speed counter module used together with the MELSEC-Q series CPU module.

The QD64D2 has the following input methods.

  • 1 multiple of 1 phase pulse
  • 2 multiples of 1 phase pulse
  • CW/CCW
  • 1 multiple of 2 phases pulse
  • 2 multiples of 2 phases pulse
  • 4 multiples of 2 phases pulse

For details of the input methods, refer to Section 5.1.

Figure 1.1 shows the general operation of the QD64D2.

Reading/writing I/O signal and buffer memory

QD64D2

CH1

Coincidence signal output (2 points)

CH2

Coincidence signal output (2 points)

1) Pulses to be input to the QD64D2 are counted. 2) Preset value and count value can be latched with external control signal. 3) Status of the I/O signal and buffer memory of the QD64D2 can be checked with the sequence program. Also, start/stop of a count, preset, and coincidence output can be performed. 4) When a counter value matches with the set value, an interrupt request can be issued to the programmable controller CPU. 5) The present value is compared with comparison point setting value and the coincidence signal can be output.

Figure 1.1 General operation of the QD64D2

Show 27 more labels / short text on this page
input · input · input · input · input · Programmable · controller CPU · 3) · QCPU (Q mode) · Pulse · Encoder · 1) · 4) · External control signal · Controller · 2) · 5) · Preset Latch counter · Pulse · 1) · 4) · Encoder · External control signal · Controller · 2) · 5) · Preset Latch counter
Page 14 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 1 - 2 1.1 Features
Page 14 · click to enlarge
Page 14

1.1 Features

This section describes the features of the QD64D2.

(1) Counting at the maximum counting speed of 4Mpps is possible. (In 4

multiples of 2 phases) Since the QD64D2 can be used for high-resolution encoder (e.g. linear scale), the equipment can improve position detection accuracy and a workpiece can be moved at high-speed.

(2) Wide range of expression on counting (from -2147483648 to 2147483647)

Count values can be stored in 32-bit signed binary.

(3) Pulse input selection

Pulse input can be selected from 1 multiple of 1 phase, 2 multiples of 1 phase, 1 multiple of 2 phases, 2 multiples of 2 phases, 4 multiples of 2 phases, and CW/CCW.

(4) Counter format selection

Either of the following counter formats can be selected.

(a) Linear counter format

From -2147483648 to 2147483647 can be counted and an overflow can be detected when the count range is overrun.

(b) Ring counter format

Counts are repeatedly executed between the ring counter upper limit value and ring counter lower limit value.

(5) Coincidence detection

The QD64D2 can compare the present value and comparison point, notify the comparison result with input signal, and start an interrupt program when they match. It also mounts 2-point external coincidence output for each channel, which permits controlling external devices at high-speed.

According to application, select the coincidence output function or continuous comparison function.

(a) Coincidence output function

Set 1 as the coincidence detection point for each point to compare it with the present value. Reset the coincidence output signal or change the coincidence detection point with the sequence program. Controlling equipment according to the operating status, such as change of the coincidence detection point according to condition, is possible.

1 - 2 1.1 Features

Page 15 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 1.1 Features 1 - 3
Page 15 · click to enlarge
Page 15

(b) Continuous comparison function

Set from 1 to 16 as the coincidence detection point for each point to compare it with the present value (Only 1 point can be compared simultaneously). Whenever a coincidence is detected, the coincidence output signal is reset or the coincidence detection point is changed automatically. If this function is used when the coincidence detection point is predetermined, the sequence program can be reduced, which brings improvement in takt time.

(6) Mounting the coincidence output test function (when using the

continuous comparison function) By using the coincidence output test function, wiring of the coincidence output terminals (EQU1, EQU2) and operations can be checked without count operation.

(7) Preset function

The present value when the preset command (Y04) is input or the preset input terminal (PRST) is turned ON can be overwritten to preset value.

(8) Latch counter function

The present value when the latch counter execution command (Y07) is input or the latch counter input terminal (LATCH) is turned ON can be latched.

(9) Executing the preset function/latch counter function with external

control signal Since the QD64D2 is independent of scan time of the programmable controller CPU, disparity in a span before executing the preset function/latch counter function can be lessen.

(10)Fuse blown at external output part is detectable.

The QD64D2 can detect fuse blown at external output part and notify it with the blown fuse detection flag (X1F) and LED display on it.

(11)Easy setting using GX Configurator-CT

The QD64D2 setting can be performed on screen by using GX Configurator-CT sold separately. Thus, the number of sequence programs results in decreasing and checking a setting status or operation status of modules easily.

1.1 Features 1 - 3

Page 16 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2 - 1 2.1 Applicable Systems
Page 16 · click to enlarge
Page 16

2 SYSTEM CONFIGURATION

CHAPTER2 SYSTEM CONFIGURATION

This chapter describes system configurations for the QD64D2.

2.1 Applicable Systems

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 QD64D2 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.

Table 2.1 Applicable modules and the number of mountable modules

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (1) Applicable modules and base units, and No. of modules diagram (page 16)
Fig. 5 · (1) Applicable modules and base units, and No. of mo…

CPU type CPU model Main base unit Extension base

Q00JCPU Up to 8 Q00CPU Up to 24 Q01CPU

2 - 1 2.1 Applicable Systems

Page 17 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2.1 Applicable Systems 2 - 2
Page 17 · click to enlarge
Page 17

2 SYSTEM CONFIGURATION

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 2 SYSTEM CONFIGURATION diagram (page 17)
Fig. 6

Table 2.1 Applicable modules and the number of mountable modules (Continued)

CPU type CPU model Main base unit Extension base

* 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 The coincidence detection interrupt function is not supported. * 5 Connection of extension base units is not available with any safety CPU.

For the use of the C Controller module, refer to C Controller Module User's Manual.

2.1 Applicable Systems 2 - 2

Page 18 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2 - 3 2.1 Applicable Systems
Page 18 · click to enlarge
Page 18

2 SYSTEM CONFIGURATION

(b) Mounting to a MELSECNET/H remote I/O station

The following table shows network modules that can be mounted to the QD64D2, the number of mountable network modules, and applicable base units.

The QD64D2 module can be mounted into any I/O slots*1 on the applicable base unit. However, the power capacity may be insufficient depending on the combination with the other mounted modules and the number of mounted modules. Be sure to check the power capacity when mounting the modules.

T

Table 2.2 Mountable network modules, No. of mountable modules, and mountable base unit

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — T diagram (page 18)
Fig. 7

* 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.

Remark

The Basic model QCPU or C Controller module cannot create the MELSECNET/ H remote I/O network.

2 - 3 2.1 Applicable Systems

Page 19 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2.1 Applicable Systems 2 - 4
Page 19 · click to enlarge
Page 19

2 SYSTEM CONFIGURATION

(2) Support of the multiple CPU system

The QD64D2 of first released version to function version B supports multiple CPU system. When using the QD64D2 in a multiple CPU system, refer to the following manual first.

QCPU User's Manual (Multiple CPU System)

(a) Intelligent function module parameters

Write intelligent function module parameters to only the control CPU of the QD64D2.

(3) Supported software packages

Relation between the system using the QD64D2 and software package is shown in the following table. GX Developer is necessary when using the QD64D2.

Table 2.3 Software package version

GX Developer GX Configurator-CT GX Works2

Q00J/Q00/Q01CPU Single CPU system Version 7 or later

Version 1.10N or later Multiple CPU system Version 8 or later Q02/Q02H/Q06H/

Single CPU system Version 4 or later Version 1.08J or later Multiple CPU system Version 6 or later

Q12H/Q25HCPU

Q02H/Q06HCPU Single CPU system Version 8.68W or later

Q12PH/Q25PHCPU Single CPU system Version 7.10L or later Multiple CPU system Q12PRH/

Q25PRHCPU Redundant system Version 8.45X or later

Q00UJ/Q00U/

Single CPU system Version 8.76E or later

Q01UCPU

Version 1.28AE or later

Q02U/Q03UD/

Q04UDH/

Version 8.48A or later Multiple CPU system

Q06UDHCPU

Q10UDH/

Single CPU system Version 8.76E or later Multiple CPU system

Q20UDHCPU

Version 1.08J or later

Q13UDH/

Single CPU system Version 8.62Q or later Multiple CPU system

Q26UDHCPU

Q03UDE/Q04UDEH/

Q06UDEH/Q13UDEH/

Version 8.68W or later Multiple CPU system

Q26UDEHCPU

Q10UDEH/

Single CPU system Version 8.76E or later Multiple CPU system

Q20UDEHCPU

Q50UDEH/

Single CPU system Use prohibited Use prohibited Version 1.31H or later Multiple CPU system

Q100UDEHCPU

When mounted to the MELSECNET/H remote I/

O station Version 6 or later Version 1.28AE or later Use prohibited

(4) Connector

The connector is not included with the QD64D2. Purchase it with reference to Section 4.3.

2.1 Applicable Systems 2 - 4

Show 6 more labels / short text on this page
Item Software version · Multiple CPU system · Use prohibited · Multiple CPU system · Single CPU system · Single CPU system
Page 20 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2 - 5 2.2 About Use of the QD64D2 with Redundant CPU
Page 20 · click to enlarge
Page 20

2 SYSTEM CONFIGURATION

2.2 About Use of the QD64D2 with Redundant CPU

This section explains how to use the QD64D2 with the Redundant CPU.

(1) GX Configurator-CT

GX Configurator-CT cannot be used when accessing the Redundant CPU via an intelligent function module on an extension base unit from GX Developer. Connect a personal computer with a communication path indicated below.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (1) GX Configurator-CT diagram (page 20)
Fig. 8 · (1) GX Configurator-CT

2 Connecting to a programmable controller CPU via an intelligent function module (Ethernet module, MELSECNET/H module, or CC-Link module) on the main base unit

Figure 2.1 Communication path which GX Configrator-CT can use

(2) Restrictions when using the Redundant CPUs

The coincidence detection interrupt function is not available.

2 - 5 2.2 About Use of the QD64D2 with Redundant CPU

Page 21 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (2) Limitations when using the remote I/O station
Page 21 · click to enlarge
Page 21

2 SYSTEM CONFIGURATION

2.3 About Use of the QD64D2 on the MELSECNET/H Remote I/O Station

This section explains how to use the QD64D2 on the MELSECNET/H remote I/O station.

(1) Number of QD64D2 that can be installed when the remote I/O station is

used Refer to Section 2.1 concerning the number of the QD64D2 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 QD64D2 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.3 About Use of the QD64D2 on the MELSECNET/H Remote I/O Station 2 - 6

Page 22 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2 - 7 2.4 How to Check the Function Version/Serial No./Software Version
Page 22 · click to enlarge
Page 22

2 SYSTEM CONFIGURATION

2.4 How to Check the Function Version/Serial No./Software Version

(1) Checking the rating plate on the module side

The rating plate is situated on the side face of the QD64D2.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (1) Checking the rating plate on the module side diagram (page 22)
Fig. 9 · (1) Checking the rating plate on the module side

Figure 2.2 Checking the serial No. and function version (rating plate)

(2) 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).

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Checking on the front of the module diagram (page 22)
Fig. 10 · (2) Checking on the front of the module

Figure 2.3 Display on the front of the module

Remark

The serial number is displayed on the front of the module from August 2008 production. Products manufactured during switching period may not have the serial number on the front of the module.

2 - 7 2.4 How to Check the Function Version/Serial No./Software Version

Page 23 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2.4 How to Check the Function Version/Serial No./Software Version 2 - 8
Page 23 · click to enlarge
Page 23

2 SYSTEM CONFIGURATION

(3) Confirming the serial number on the system monitor (Product

Information List) To display the screen for checking the serial number and function version, select

[Diagnostics] [System monitor] and click the Product Inf. List button in GX Developer.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (3) Confirming the serial number on the system monitor (Product diagram (page 23)
Fig. 11 · (3) Confirming the serial number on the system monit…

Figure 2.4 System monitor

(a) Production number display

Since the QD64D2 does not support the production number display, "-" is displayed.

POINT

The serial No. displayed in the Product Information List of GX Developer may be different from the one on the rating plate and the front of the module.

  • The serial No. on the rating plate and the front of the module indicates the

management information of the product. • The serial No. in the Product Information List of GX Developer indicates

the functional information on the product, which is updated when a new function is added.

2.4 How to Check the Function Version/Serial No./Software Version 2 - 8

Serial number · Function · version

Page 24 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 2 - 9 2.4 How to Check the Function Version/Serial No./Software Version
Page 24 · click to enlarge
Page 24

2 SYSTEM CONFIGURATION

(4) Checking the software version of GX Configurator-CT

The software version of GX Configurator-CT can be checked GX Developer's "Product information" screen.

GX Developer [Help] [Product information]

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (4) Checking the software version of GX Configurator-CT diagram (page 24)
Fig. 12 · (4) Checking the software version of GX Configurator…

(In the case of GX Developer Version 8)

Figure 2.5 [Product information] screen of GX Developer

2 - 9 2.4 How to Check the Function Version/Serial No./Software Version

[Operating procedure] · Software version

Page 25 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3.1 Performance Specifications 3 - 1
Page 25 · click to enlarge
Page 25

CHAPTER3 SPECIFICATIONS

This chapter describes the performance specifications of the QD64D2, I/O signals to the programmable controller CPU, specifications of the buffer memory. For general specifications of the QD64D2, refer to the User's Manual for the CPU module.

3.1 Performance Specifications

The following table shows the performance specifications of the QD64D2.

Table 3.1 Performance specifications of the QD64D2

Number of channels 2 channels

Phase 1-phase input, 2-phase input

EIA Standard RS-422-A Differential line driver level

Signal level ( A, B)

(AM26LS31 (manufactured by Texas Instruments Incorporated) or equivalent)

4 multiples of 2 phases4Mpps

Counting speed (max.)

2 multiples of 1 phase, 2 multiples of 2 phases: 2Mpps

1 multiple of 1 phase, 1 multiple of 2 phases, CW/CCW: 1Mpps

Counting range 32-bit signed binary (-2147483648 to 2147483647)

Addition method, subtraction method

linear counter format, ring counter format

preset counter function, latch counter function

0.5 0.5

(Duty ratio 50 %)

0.25 (Units)

(Minimum phase difference for 2-phase input: 0.25 s)

For details, refer to Section 3.1.1

Comparison range 32-bit signed binary

Setting value < Count value

Setting value = Count value

Setting value > Count value

Interrupt With coincidence detection interrupt function

24VDC 2 to 5mA Count value latch

Coincidence output Transistor (sinking type) output: 2 points/channel

12/24VDC 0.5 A/point 2 A/common

Derating Applied (refer to Section 3.1.2 )

Number of occupied I/O points 32 points (I/O assignment: Intelligent 32 points)

5VDC internal current consumption 0.53 A

Weight 0.16 kg

* 1 Note that counting a pulse whose phase difference between phase A and phase B is small may

result in a count error. For the relation of phase difference between phase A and phase B, refer to Section 3.3.1. * 2 The maximum counting speed is determined in the pulse input mode.

Counting speed cannot be changed.

3.1 Performance Specifications 3 - 1

Show 18 more labels / short text on this page
Item Specifications · Count · input · signal · *1 *2 · Type · Counter · Minimum count pulse · width · Coincide · nce · Comparison result · detection · External · Preset · input · External · output
Page 26 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — -0.1V 0.1V
Page 26 · click to enlarge
Page 26

3.1.1 Relation of phase difference between phase A and phase B

The relation indicated below is for each pulse input mode at the maximum counting speed. Pulse input waveform that does not reach to the maximum counting speed is also applicable.

(a) At 1-phase input

Pulse input waveform at 1-phase input input needs to satisfy the following conditions (duty ratio of 50%).

t (=tH+tL) = 1.0 s tH, tL = 0.5 s (= 0.5 t)

0.1V 0.1V -0.1V

tH tL

Figure 3.1 Pulse input waveform at 1-phase input

(b) At 2-phase input

Pulse input waveform at 2-phase input needs to satisfy both the condition at 1- phase input and the condition below. t1, t2, t3, t4 = 0.25 s (= 0.25 t)

A

0.1V -0.1V

L level Differential voltage

B

0.1V 0.1V -0.1V

Figure 3.2 Pulse input waveform at 2-phase input 1

A

0.1V -0.1V

L level Differential voltage

-0.1V 0.1V

B

Figure 3.3 Pulse input waveform at 2-phase input 2

3. 2 3.1 Performance Specifications 3.1.1 Relation of phase difference between phase A and phase B
Show 16 more labels / short text on this page
Differential voltage · t · H level · L level · Differential voltage · H level · t1 · t2 · H level · L level · Differential voltage · H level · t3 · t4 · H level · L level
Page 27 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3.1 Performance Specifications 3.1.2 Derating chart 3 - 3
Page 27 · click to enlarge
Page 27

3.1.2 Derating chart

0 10 20 30 40 50

Figure 3.4 Derating chart

This section explains conditions for each counter value comparison function selection.

(1) When all channels are the coincidence output function

Take care so that the ratio of the number of points that external coincidence output (ON) is executed to the number of external coincidence output points of the module (4 points) does not exceed the ON ratio in Figure 3.4.

The number of points that external coincidence output

100 [%] ON ratio [%]

(2) When all channels are the continuous comparison function

Take care so that the ratio of continuous comparison No. m ON time setting (Un\G52, Un\G102) (t1) to the time from start of coincidence output to the next coincidence output (t2) in Figure 3.5 may not exceed the ON ratio in Figure 3.4. (For interval of the continuous comparison No. m point n setting that decides t2, refer to Section 5.3.2.)

ON ratio [%] 100 [%] t1[ms]

ON

Coincidence output No. m terminal

OFF

Figure 3.5 Relationship between ON time setting in the case of the continuous comparison function (t1) and the time from start of

coincidence output to the next coincidence output (t2)

3.1 Performance Specifications 3.1.2 Derating chart 3 - 3

Show 8 more labels / short text on this page
ON ratio (%) · Ambient temperature( ) · (ON) is executed · 4 (point) · t2[ms] · t1 · t1 · t2
Page 28 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — t2[ms] (
Page 28 · click to enlarge
Page 28

(3) When (CH1 or CH2) is the coincidence output function and (CH2 or CH1)

is the continuous comparison function Take care so that the addition of the ratio of above (1) "When all channels are the coincidence output function" in the CH where the coincidence output function is set and a value when the ratio of above (2) "When all channels are the continuous comparison function" in the CH where the continuous comparison function is set is divided by 2 may not exceed the ON ratio in Figure 3.4

Ratio of above (2) "When all channels are the continuous comparison function" [%]

Ratio of above (1) "When all channels are the coincidence output function" [%]

The number of points that external coincidence output (ON) is executed

t2[ms] (

(

+ 100 [%] (

(

3 - 4 3.1 Performance Specifications 3.1.2 Derating chart

Show 4 more labels / short text on this page
+ · ON ratio [%] · 100 [%] t1[ms] · 4 (point)
Page 29 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3.2 Function List 3 - 5
Page 29 · click to enlarge
Page 29

3.2 Function List

The following table shows the functions of the QD64D2. I/O numbers (X/Y) and buffer memory addresses in Description describe only for channel 1. For I/O numbers (X/Y) of channel 2 and buffer memory addresses, refer to Section 3.3.1.

Table 3.2 Function list of the QD64D2

Function *1 Description Reference

Linear counter function Counts within the range from -2147483648 to 2147483647.

An overflow occurs when a count exceeds the count range. Section 5.2.1

Ring counter function Repeats a count between the ring counter upper limit value

and the lower limit value. Section 5.2.2

Compares preset coincidence detection point of an arbitrary

channel with the present counter value and outputs the

Section 5.3.1

counter value coincidence.

Compares any of preset coincidence detection points of an

arbitrary channel with the present counter value and

Section 5.3.2

outputs the counter value coincidence during the set time

after the coincidence.

Checks wiring of coincidence output.

This function can be used only when the continuous

Section 5.3.3

comparison function is selected.

Generates an interrupt signal to the programmable

controller CPU when a coincidence is detected, and starts

Section 5.3.4

an interrupt program.

Preset function Overwrites present value to an arbitrary value. Section 5.4

Latch counter function Latches the present value. Section 5.5

* 1 The functions can be used in combination.

  • However, as for the following functions, select either of them.
  • Linear counter function, ring counter function
  • Coincidence output function, continuous comparison function

3.2 Function List 3 - 5

Show 12 more labels / short text on this page
Coincidence output · function · Continuous comparison · Counter · function · value · comparison · function · Coincidence output · test function · Coincidence detection · interrupt function
Page 30 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 30 · click to enlarge
Page 30

3.3 I/O Signals to the Programmable Controller CPU

3.3.1 List of I/O signals

The following table shows the I/O signals from the QD64D2 to the programmable controller CPU. Note that I/O numbers (X/Y) mentioned in this and the subsequent chapters are assumed when the QD64D2 is mounted to the null I/O slot on the main base unit.

(1) List of input signals (Signal direction: QD64D2 Programmable controller CPU)

Table 3.3 List of input signals

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (1) List of input signals (Signal direction: QD64D2 Programmable controller CPU) diagram (page 30)
Fig. 13 · (1) List of input signals (Signal direction: QD64D2…

X02 Counter value coincidence No.1 X12 Counter value coincidence No.1

X03 Counter value small No.1 X13 Counter value small No.1

X04 Counter value large No.2 X14 Counter value large No.2

X05 Counter value coincidence No.2 X15 Counter value coincidence No.2

X06 Counter value small No.2 X16 Counter value small No.2

X08 External preset request detection X18 External preset request detection

* 1 The signals are used only for the continuous comparison function.

POINT

The reserved signals above are for system use, not for users. If used (turning ON/ OFF) by a user, the functions of the QD64D2 are not guaranteed.

3. 6 3.3 I/O Signals to the Programmable Controller CPU 3.3.1 List of I/O signals
Page 31 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 31 · click to enlarge
Page 31

(2) List of output signals (Signal direction: Programmable controller CPU QD64D2)

Table 3.4 List of output signals

number Signal name Operation

I/O

number Signal name Operation

I/O

Y00 Reserved --- Y10 Reserved ---

Coincidence signal No.1 reset

Coincidence signal No.1 reset

Y01

Coincidence signal No.2 reset

Coincidence signal No.2 reset

Y02

Y03

Y04 Preset command Y14 Preset command

Y05 Subtraction count command Y15 Subtraction count command

Y06 Count enable command Y16 Count enable command

Y07 Latch counter execution

command Y17 Latch counter execution

CH1

CH2

Y08 External preset request

detection reset command Y18 External preset request

Continuous comparison No.1

Continuous comparison No.1

Y09

execution command *2 Y19

Continuous comparison No.2

Continuous comparison No.2

Y0A

execution command *2 Y1A

Coincidence output No.1 test

Coincidence output No.1 test

Y0B

Coincidence output No.2 test

Coincidence output No.2 test

Y0C

Y0D Error reset command Y1D Error reset command

Y0E

Y1E

Reserved --- Y0F Y1F

* 1 The signal is only used for the coincidence output function. * 2 The signal is only used for the continuous comparison function.

POINT

(1) The reserved signals above are for system use, not for users. If used (turning

ON/OFF) by a user, the functions of the QD64D2 are not guaranteed. (2) Definitions of the expression in Operation timing are as follows.

  • :Enabled while the signal is ON. ON time should be 2ms or longer.
  • :Enabled when the signal is turned from OFF to ON. ON time and OFF time should be 2ms or longer.

3.3 I/O Signals to the Programmable Controller CPU 3.3.1 List of I/O signals 3 - 7

Show 19 more labels / short text on this page
timing · timing · command *1 Y11 · command *1 · command *1 Y12 · command *1 · Coincidence output enable · Coincidence output enable · command *1 Y13 · command *1 · command · detection reset command · execution command *2 · execution command *2 · command *2 Y1B · command *2 · command *2 Y1C · command *2 · Reserved ---
Page 32 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ON
Page 32 · click to enlarge
Page 32

3.3.2 Functions of I/O signals

The following indicates the details of I/O signals of the QD64D2.

In this section, I/O numbers (X/Y) and buffer memory addresses are listed only for channel 1. For I/O numbers and buffer memory addresses used for channel 2, refer to Section 3.3.1 and Section 3.4.1.

(1) Module READY(X00)

  • Turns ON at reset or power-on of the programmable controller CPU when the

QD64D2 is ready for counting, and the counting process is executed.

  • Turns OFF when a watchdog timer error or an error which affects the system

(Error code: 810 to 860) occurs.

  • When the module READY (X00) is OFF, the counting is not executed.
  • Use this signal for an interlock of a sequence program.

Operation by the QD64D2 Operation by the sequence program

In preparation Ready Watchdog timer error or an error that affects the system

ON

OFF

(X00)

Figure 3.6 Operation of the module READY (X00)

3. 8 3.3 I/O Signals to the Programmable Controller CPU 3.3.2 Functions of I/O signals

QD64D2 status · Module READY

Page 33 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — OFF
Page 33 · click to enlarge
Page 33

(2) Counter value large No.1 (X01), counter value coincidence No.1 (X02),

counter value small No.1 (X03) counter value large No.2 (X04), counter value coincidence No.2 (X05), counter value small No.2 (X06) The signals notify a comparison result in the counter value comparison function (coincidence output function, continuous comparison function). In (a) and (b) below, operations of the counter value large No.1 (X01), the counter value coincidence No.1 (X02) and the counter value small No.1 (X03) are explained. For the counter value large No.2 (X04), the counter value coincidence No.2 (X05), and the counter value small No.2 (X06), operations are the same except that I/O numbers (X/Y) and buffer memory addresses of the point used for comparison are different.

(a) Operation when used for the coincidence output function (Refer to Section 5.3.1.)

large No.1(X01)

small No.1(X03)

No.1(X02)

Coincidence output No.1 point

Present value (Un\G12 and 13)

setting (Un\G6 and 7)

OFF OFF ON

Present value (Un\G12 and 13) =

Coincidence output No.1 point

setting (Un\G6 and 7)

OFF ON* OFF

Coincidence output No.1 point

Present value (Un\G12 and 13) >

setting (Un\G6 and 7)

ON OFF OFF

* The counter value coincidence No.1 (X02) remains ON until the coincidence signal No.1 reset command (Y01) is turned ON.

Operation by the QD64D2 Operation by the sequence program

Immediately after power-on or reset of the programmable controller CPU

No.1 point setting

Present value (Un\G12 and 13)

100 101 102 99 98

ON

ON

No.1 (X01)

OFF

ON

OFF

No.1 (X02)

OFF

OFF

ON

No.1 (X03)

OFF

ON

ON

Coincidence signal No.1

OFF

OFF

(Y01)

Figure 3.7 Operation of the counter value large No.1 (X01), the counter value coincidence No.1 (X02) and the counter value small

No.1 (X03) when using the coincidence output function

3.3 I/O Signals to the Programmable Controller CPU 3.3.2 Functions of I/O signals 3 - 9

Show 13 more labels / short text on this page
Counter value · Counter value · Counter value · coincidence · Coincidence output · (Un\G6 and 7) · Counter value large · Counter value coincidence · Counter value small · reset command · t* · t* · * t 2ms
Page 34 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3.3.2 Functions of I/O signals
Page 34 · click to enlarge
Page 34

(b) Operation when used for the continuous comparison function (Refer to Section

5.3.2.)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 3.3.2 Functions of I/O signals diagram (page 34)
Fig. 14 · 3.3.2 Functions of I/O signals

* The counter value coincidence No.1 (X02) remains ON for the preset time of the continuous comparison No.1 ON time setting (Un\G52).

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 3.3.2 Functions of I/O signals diagram (page 34)
Fig. 15 · 3.3.2 Functions of I/O signals

Usage condition of the following operation diagram Continuous comparison No.1 start point setting (Un\G50): 1 (point 1) Continuous comparison No.1 repeat point setting (Un\G51): 3 (point 3) Continuous comparison No.1 point 1 setting (Un\G54 and 55): 100 Continuous comparison No.1 point 2 setting (Un\G56 and 57): 10000 Continuous comparison No.1 point 3 setting (Un\G58 and 59): 20000

Operation by the QD64D2 Operation by the sequence program

99 100 101 102 10000 10001 10002 19998 19999 20000 20001 20002

*1 t1 = Continuous comparison No.1 ON time setting (Un\G52)

Figure 3.8 Operation of the counter value large No.1 (X01), the counter value coincidence No.1 (X02) and the counter value small

No.1 (X03) when using the continuous comparison function

3. 10 3.3 I/O Signals to the Programmable Controller CPU 3.3.2 Functions of I/O signals
Page 35 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (X0E)
Page 35 · click to enlarge
Page 35

(3) External preset request detection (X08)

  • Turns ON when the preset input terminal (PRST) is turned ON.
  • To turn OFF the external preset request detection (X08), turn ON the external

preset request detection reset command (Y08). • The preset cannot be executed while the external preset request detection (X08)

is ON.

Operation by the QD64D2 Operation by the sequence program

ON

(PRST)

OFF

ON

External preset request detection

OFF

(X08)

ON

External preset request detection reset command

OFF

(Y08)

Present value (Un\G12 and 13)

Figure 3.9 Operation of the external preset request detection (X08)

(4) During continuous comparison No.1 execution (X09), during continuous

comparison No.2 execution (X0A)

  • Turns ON during execution of the continuous comparison function. (Refer to

Section 5.3.2.)

(5) Error occurrence (X0D)

  • Turns ON when an error occurs.
  • To turn OFF the error occurrence (X0D), fix the cause of the error and then turn

ON the error reset command (Y0D).

Operation by the QD64D2 Operation by the sequence program

ON

(Y0D)

OFF

ON

(X0D)

OFF

Figure 3.10 Operation of the error occurrence (X0D)

(6) Warning occurrence (X0E)

  • Turns ON when a warning occurs.
  • To turn OFF the warning occurrence (X0E), fix the cause of the warning and then

turn ON the error reset command (Y0D).

Operation by the QD64D2 Operation by the sequence program

ON

(Y0D)

OFF

ON

(X0E)

OFF

Figure 3.11 Operation of the warning occurrence (X0E)

3.3 I/O Signals to the Programmable Controller CPU 3.3.2 Functions of I/O signals 3 - 11

Show 16 more labels / short text on this page
Preset value setting · (Un\G4 and 5) · Preset input terminal · t* · *t 2ms · Error reset command · t* · Error code · (Un\G18) · 0 100 0 · Error occurrence · * t 2ms · Error reset command · t* · (Un\G19) · * t 2ms
Page 36 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (EQU2)
Page 36 · click to enlarge
Page 36

(7) Blown fuse detection flag (X1F)

  • Turns ON when a fuse blown of the external coincidence output part is detected.
  • Even if the fuse is blown, the signal does not turn ON unless a voltage is applied

to the external coincidence output power supply terminal.

  • For actions when a fuse is blown, refer to Section 8.1.4.

Operation by the QD64D2

ON

OFF

ON

Blown fuse detection flag

OFF

(X1F)

ON

(X0D)

Figure 3.12 Operation of the blown fuse detection flag (X1F)

(8) Coincidence signal No.1 reset command (Y01), coincidence signal No.2

reset command (Y02)

  • Use the signals for the coincidence output function. (Refer to Section 5.3.1.)
  • Turn ON the coincidence signal No.1 reset command (Y01) to reset the counter

value coincidence No.1 (X02).

  • Turn ON the coincidence signal No.2 reset command (Y02) to reset the counter

value coincidence No.2 (X05).

  • Turn OFF the signal after the resetting is completed.

(9) Coincidence output enable command (Y03)

  • Use the signal for the coincidence output function. (Refer to Section 5.3.1.)
  • Turn ON the coincidence output enable command (Y03) to enable output from

the coincidence output No.1 terminal (EQU1) and the coincidence output No.2 terminal (EQU2) of the external device connector when the count value coincides with the comparison point.

Operation by the QD64D2

Counter value coincidence No.1

ON

(X02)

ON

Counter value coincidence No.2

(X05)

ON

Coincidence output enable command

OFF

(Y03)

ON

Coincidence output No.1 terminal

(EQU1)

OFF

ON

Coincidence output No.2 terminal

(EQU2)

OFF

Figure 3.13 Operation of the coincidence output enable command (Y03)

3. 12 3.3 I/O Signals to the Programmable Controller CPU 3.3.2 Functions of I/O signals
Show 8 more labels / short text on this page
External coincidence output · power supply terminal · External coincidence output · Normal Fuse blown · part fuse status · Error code · (Un\G18) · Error occurrence
Page 37 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — A
Page 37 · click to enlarge
Page 37

(10)Preset command (Y04)

  • Turn ON the preset command (Y04) to execute the preset function (Refer to

Section 5.4).

  • Check that the present value (Un\G12 and 13) has been changed, then turn OFF

the preset command (Y04).

  • While the external preset request detection (X08) is ON, the preset cannot be

executed by the preset command (Y04).

Operation by the QD64D2

ON

(Y04)

OFF

Present value (Un\G12 and 13)

Figure 3.14 Operation of the preset command (Y04)

(11)Subtraction count command (Y05)

  • Turn ON to execute the subtraction count at 1-phase input mode.
  • In the 1-phase pulse input mode, the subtraction count is executed when the

phase B pulse or the subtraction count command (Y05) is turned ON.

  • When the pulse input mode is 1 multiple of 1 phase, counting is executed as

shown below.

  • For the addition count, check that the phase B pulse and the subtraction count

command (Y05) are turned OFF.

A

ON ON

B

OFF

ON

(Y05)

Present value (Un\G12 and 13)

99 98 97 100 99

Figure 3.15 Operation of the subtraction count command (Y05) (when the pulse input mode is 1 multiple of 1 phase)

(12)Count enable command (Y06)

  • Turn ON the count enable command (Y06) to start the count operation.
  • When the pulse input mode is 1 multiple of 1 phase, counting is executed as

shown below.

A

B

ON

(Y06)

Present value (Un\G12 and 13)

Figure 3.16 Operation of the count enable command (Y06) (when the pulse input mode is 1 multiple of 1 phase)

3.3 I/O Signals to the Programmable Controller CPU 3.3.2 Functions of I/O signals 3 - 13

Show 7 more labels / short text on this page
Preset value setting · (Un\G4 and 5) · Preset command · t * · * t 2ms · Subtraction count command · Count enable command
Page 38 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (17)Error reset command (Y0D)
Page 38 · click to enlarge
Page 38

(13)Latch counter execution command (Y07)

  • When the latch counter execution command (Y07) is turned from OFF to ON, the

present value (Un\G12 and 13) is stored in the latch count value (Un\G14 and 15).

  • Turn OFF the latch counter execution command (Y07) after the present value

(Un\G12 and 13) is stored in the latch count value (Un\G14 and 15).

Operation by the QD64D2

Present value (Un\G12 and 13)

0 4 1 2 3

ON

ON

Latch counter execution command

(Y07)

OFF

Figure 3.17 Operation of the latch counter execution command (Y07)

(14)External preset request detection reset command (Y08)

  • Turn ON to turn OFF the external preset request detection (X08).

(15)Continuous comparison No.1 execution command (Y09), continuous

comparison No.2 execution command (Y0A)

  • Turn ON to execute the continuous comparison function. (Refer to Section 5.3.2.)

(16)Coincidence output No.1 test command (Y0B), coincidence output No.2

test command (Y0C)

  • Turn ON to execute the coincidence output test function. (Refer to Section 5.3.3.)

(17)Error reset command (Y0D)

  • Turn ON to reset the error and warning.
  • After fixing the cause of the error, reset the error code so that the newly detected

errors can be checked.

3. 14 3.3 I/O Signals to the Programmable Controller CPU 3.3.2 Functions of I/O signals
Show 4 more labels / short text on this page
t* t* OFF · Latch count value · (Un\G14 and 15) · * t 2ms
Page 39 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (L)
Page 39 · click to enlarge
Page 39

3.4 Buffer Memory Assignment

3.4.1 List of buffer memory assignment

The following table shows the buffer memory assignment of the QD64D2. For details of each buffer memory, refer to Section 3.4.2.

Table 3.5 List of buffer memory assignment

CH1 CH2 0 200 Ring counter lower limit value *2

(L)

Only used for the ring counter function. 1 201 (H) 2 202 Ring counter upper limit value *2 (L) 3 203 (H) 4 204 Preset value setting *2 (L) 5 205 (H) 6 206 Coincidence output No.1 point setting *2 (L)

enabled.

7 207 (H) 8 208 Coincidence output No.2 point setting *2 (L) 9 209 (H) 10 210 Coincidence output No.1 point change request 11 211 Coincidence output No.2 point change request 12 212 Present value *2 (L)

Only used for the coincidence output

function.

13 213 (H) 14 214 Latch count value *2 (L) 15 215 (H)

16 216 Overflow detection flag Only used for the linear counter

function. 17 217 External I/O status monitor

18 218 Error code 19 219 Warning code 20 220 Reserved to to 49 249 50 250 Continuous comparison No.1 start point setting

comparison function. 51 251 Continuous comparison No.1 repeat point

Only used for the continuous

setting 52 252 Continuous comparison No.1 ON time setting 53 253 Reserved 54 254 Continuous comparison No.1 point 1

enabled.

(L)

55 255 (H)

56 256 Continuous comparison No.1 point 2

(L)

Only used for the continuous

57 257 (H)

comparison function.

enabled.

58 258 Continuous comparison No.1 point 3

(L)

59 259 (H)

* 1 Initial value which is set when the module is powered on or the programmable controller CPU is

reset. * 2 Read and write a value in 32-bit signed binary format. (Make sure to use a value in units of 2

words.)

3.4 Buffer Memory Assignment 3.4.1 List of buffer memory assignment 3 - 15

Show 18 more labels / short text on this page
Address · Initial · (decimal · Read/ · Setting contents · write Remarks · value · *1 · Read/write · are · Read only · Read/write · are · setting *2 · Read/write · are · setting *2 · setting *2
Page 40 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3.4 Buffer Memory Assignment
Page 40 · click to enlarge
Page 40

Table 3.5 List of buffer memory assignment (Continued)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 3.4 Buffer Memory Assignment diagram (page 40)
Fig. 16 · 3.4 Buffer Memory Assignment

CH1 CH2 60 260 Continuous comparison No.1 point 4

Reserved to to 99 299 100 300 Continuous comparison No.2 start point setting

comparison function. 101 301 Continuous comparison No.2 repeat point setting 102 302 Continuous comparison No.2 ON time setting 103 303 Reserved 104 304 Continuous comparison No.2 point 1

* 1 Initial value which is set when the module is powered on or the programmable controller CPU is

reset. * 2 Read and write a value in 32-bit signed binary format. (Make sure to use a value in units of 2

words.)

3. 16 3.4 Buffer Memory Assignment 3.4.1 List of buffer memory assignment
Page 41 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (L) 135 335 (H)
Page 41 · click to enlarge
Page 41

Table 3.5 List of buffer memory assignment (Continued)

CH1 CH2 108 308 Continuous comparison No.2 point 3

(L)

109 309 (H)

110 310 Continuous comparison No.2 point 4

(L)

111 311 (H)

112 312 Continuous comparison No.2 point 5 setting *2

(L) 113 313 (H) 114 314 Continuous comparison No.2 point 6 setting *2

(L) 115 315 (H) 116 316 Continuous comparison No.2 point 7 setting *2

(L) 117 317 (H) 118 318 Continuous comparison No.2 point 8 setting *2

(L) 119 319 (H) 120 320 Continuous comparison No.2 point 9 setting *2

(L) 121 321 (H) 122 322 Continuous comparison No.2 point 10 setting *2

are enabled. Only used for the continuous

(L) 123 323 (H) 124 324 Continuous comparison No.2 point 11 setting *2

comparison function.

(L) 125 325 (H) 126 326 Continuous comparison No.2 point 12 setting *2

(L) 127 327 (H) 128 328 Continuous comparison No.2 point 13 setting *2

(L) 129 329 (H) 130 330 Continuous comparison No.2 point 14 setting *2

(L) 131 331 (H) 132 332 Continuous comparison No.2 point 15 setting *2

(L) 133 333 (H) 134 334 Continuous comparison No.2 point 16 setting *2

(L) 135 335 (H)

136 336 Continuous comparison No.2 point monitor

137 337 Reserved to to 199 399

* 1 Initial value which is set when the module is powered on or the programmable controller CPU is

reset. * 2 Read and write a value in 32-bit signed binary format. (Make sure to use a value in units of 2

words.)

3.4 Buffer Memory Assignment 3.4.1 List of buffer memory assignment 3 - 17

Show 12 more labels / short text on this page
Address · Initial · (decimal · Setting contents · value · Read/write Remarks · *1 · setting *2 · setting *2 · Read/write · Read only · during comparison
Page 42 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 42 · click to enlarge
Page 42

POINT

  • The reserved areas in the above table and areas not mentioned in the

table are for system use, not for users. If written by a user, the functions of the QD64D2 are not guaranteed. • All data in the buffer memory of the QD64D2 are initialized when the

module is powered on or the programmable controller CPU is reset. To save the necessary data, use the FROM/DFRO/TO/DTO instructions in the sequence program or make setting with the utility package for writing/ reading of the buffer memory data. • Since the buffer memory contents are automatically updated by count

operation, the latest count value can be read from the buffer memory.

3. 18 3.4 Buffer Memory Assignment 3.4.1 List of buffer memory assignment
Page 43 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ON
Page 43 · click to enlarge
Page 43

3.4.2 Details of the buffer memory

This section describes details of the QD64D2 buffer memory. In this section, I/O numbers (X/Y) and buffer memory addresses are listed for channel 1 and coincidence output No.1. For I/O numbers and buffer memory addresses used for channel 2 and coincidence output No.2, refer to Section 3.3.1 and Section 3.4.1.

(1) Ring counter lower limit value (Un\G0 and 1)

Ring counter upper limit value (Un\G2 and 3)

  • This area is used for setting a count range for the ring counter. (Refer to Section
5.2.2.) • Setting range-2147483648 to 2147483647

Operation by the QD64D2

ON

(Y06)

Ring counter lower limit value

Ring counter upper limit value

*1 Setting value of the ring counter upper limit value (Un\G2 and 3) and the ring counter lower limit value (Un\G0 and 1) becomes effective when the count enable command (Y06) is turned from OFF to ON. *2 It does not become effective until the count enable command (Y06) is turned from OFF to ON.

Figure 3.18 Timing chart for the ring counter lower limit value (Un\G0 and 1) and ring counter upper limit value (Un\G2 and 3)

(2) Preset value setting (Un\G4 and 5)

  • This area is used for setting a preset value for the counter. (Refer to Section 5.4.)
  • Setting range: -2147483648 to 2147483647
  • The setting value becomes effective when the preset command (Y04) or the

preset input terminal (PRST) is turned from OFF to ON.

Operation by the QD64D2

ON

OFF

(Y04)

Present value (Un\G12 and 13)

Figure 3.19 Timing chart for the preset value setting (Un\G4 and 5)

3.4 Buffer Memory Assignment 3.4.2 Details of the buffer memory 3 - 19

Show 14 more labels / short text on this page
Count enable command · *1 · 200 100 0 · *2 · (Un\G0 and 1) · *1 · 200 100 0 · *2 · (Un\G2 and 3) · Preset value setting · (Un\G4 and 5) · Preset command · t* · * t 2ms
Page 44 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (3) Coincidence output No.1 point setting (Un\G6 and 7)
Page 44 · click to enlarge
Page 44

(3) Coincidence output No.1 point setting (Un\G6 and 7)

Coincidence output No.1 point change request (Un\G10) Coincidence output No.2 point setting (Un\G8 and 9) Coincidence output No.2 point change request (Un\G11)

  • This area is used for setting the comparison point (the value used to compare

with the present value) used for the coincidence output function.

  • Setting procedure
1. Write any comparison point to the coincidence output No.1 point setting (Un\G 6 and 7). Setting range: -2147483648 to 2147483647
2. Write "1" (Change request) to the coincidence output No.1 point change request (Un\G10).
3. The comparison point written to the coincidence output No.1 point setting (Un\G6 and 7) becomes effective, and the coincidence output No.1 point change request (Un\G10) changes from "1" to "0" (No change request).
4. The comparison between the set comparison point and the present value is executed.

change request, the comparison point written to the coincidence output No.1 point setting does not become effective. For the comparison point, a value previously set in the coincidence output No.1 point setting is used.

For example, the default value of the coincidence output No.1 point setting is "0". If "10000" is written to the coincidence output No.1 point setting, the default value of "0" is used for the comparison point unless "1" is written to the coincidence output No.1 point change request.

  • The above procedure is described as an example of the coincidence output No.1.

To set the coincidence output No.2, replace the coincidence output No.1 setting (Un\G6 and 7) and the coincidence output No.1 point change request (Un\G10) with the coincidence output No.2 point setting (Un\G8 and 9) and the coincidence output No.2 point change request (Un\G11).

Operation by the QD64D2

Coincidence output No.1 point change request

0 0 1 0

Coincidence output No.1 point 1 setting

*1 When the coincidence output No.1 point setting (Un\G6 and 7) becomes effective, the QD64D2 writes "0" to the coincidence output No.1 point change request (Un\G10).

Figure 3.20 Timing chart for the coincidence output No.1 point setting (Un\G6 and 7) and the coincidence output No.1 point change

request (Un\G10) • For details of the operation, refer to Section 5.3.1.

3. 20 3.4 Buffer Memory Assignment 3.4.2 Details of the buffer memory
Show 5 more labels / short text on this page
(Un\G10) · *1 · *1 · 200 100 · (Un\G6 and 7)
Page 45 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (Y07)
Page 45 · click to enlarge
Page 45

(4) Present value (Un\G12 and 13)

  • Present value of the counter is stored in this area.
  • Setting range: -2147483648 to 2147483647
  • An example when the pulse input mode is CW/CCW is shown below.

A

B

ON

(Y06)

Present value (Un\G12 and 13)

Figure 3.21 Timing chart of the present value (Un\G12 and 13)

(5) Latch count value (Un\G14 and 15)

  • The latched value of the present value (Un\G12 and 13) is stored in this area.

(Refer to Section 5.5.) • When one of the following conditions is satisfied, the present value (Un\G12 and

13. is stored in the latch count value (Un\G14 and 15).
1. When turning from OFF to ON the latch counter execution command (Y07)
2. When turning from OFF to ON the latch counter input terminal (LATCH) • Setting range: -2147483648 to 2147483647

Operation by the QD64D2

Present value (Un\G12 and 13)

0 4 1 2 3

Latch counter execution command

(Y07)

Figure 3.22 Timing chart for the latch count value (Un\G14 and 15)

3.4 Buffer Memory Assignment 3.4.2 Details of the buffer memory 3 - 21

Show 5 more labels / short text on this page
Count enable command · t* t* · Latch count value · (Un\G14 and 15) · * t 2ms
Page 46 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 0:OFF 1:ON
Page 46 · click to enlarge
Page 46

(6) Overflow detection flag (Un\G16)

  • Overflow occurrence status of the counter is stored in this area. (Refer to Section

5.2.1.) 0: No detection 1: Overflow occurred • Overflow occurs when the count value exceeds the range of -2147483648 to

2147483647. • The overflow detection flag (Un\G16) can be cleared by the preset command

(Y04) or the preset input terminal (PRST).

Operation by the QD64D2

A

B

Present value (Un\G12 and 13)

ON

(Y04)

Figure 3.23 Timing chart for the overflow detection flag (Un\G16) (when the pulse input mode is 1 multiple of 1 phase)

(7) External I/O status monitor (Un\G17)

  • The I/O status of the external device connector is stored in this area.
  • Storage contents is as follows.

b15 b8 b7 b0

0

ReservedFixed to 0 Storage item Definition

Latch counter input status

Phase A input status

0:OFF 1:ON

Phase B input status

Coincidence output No.1 output status *1

Coincidence output No.2 output status *1

0. During addition 1: During subtraction

Figure 3.24 Storage contents of the external I/O status monitor (Un\G17)

  • Storage item marked with "*1" turns to "1" (ON) regardless of applying a voltage

to the external coincidence output power supply terminal. • It takes up to 2ms until actual I/O status is reflected to the external I/O status

monitor (Un\G17).

3. 22 3.4 Buffer Memory Assignment 3.4.2 Details of the buffer memory
Show 10 more labels / short text on this page
2147483646 2147483647 0 · Overflow detection flag · (Un\G16) · Preset value setting · (Un\G4 and 5) · Preset command · Error code · (Un\G18) · Preset input status · Addition/subtraction status
Page 47 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (14)Continuous comparison No.1 point monitor during comparison (Un\G86)
Page 47 · click to enlarge
Page 47

(8) Error code (Un\G18)

  • Error code of the detected error is stored in this area.
  • For operations when multiple errors occur concurrently, refer to POINT in Section

8.11.1.

(9) Warning code (Un\G19)

  • Warning code of the detected error is stored in this area.
  • For operations when multiple warnings occur concurrently, refer to POINT in

Section 8.11.2.

(10)Continuous comparison No.1 start point setting (Un\G50)

Continuous comparison No.2 start point setting (Un\G100)

  • This area is used for setting a start point number of comparison for the
  • continuous comparison function.
  • Setting range: 1 to 16
  • For details of setting and operation, refer to Section 5.3.2.

(11)Continuous comparison No.1 repeat point setting (Un\G51)

Continuous comparison No.2 repeat point setting (Un\G101)

  • This area is used for setting a repeat point number of comparison for the
  • continuous comparison function.
  • Setting range: 1 to 16
  • For details of setting and operation, refer to Section 5.3.2.

(12)Continuous comparison No.1 ON time setting (Un\G52)

Continuous comparison No.2 ON time setting (Un\G102)

  • This area is used for setting ON time of the coincidence output terminal and the
  • counter value coincidence.
  • Setting range: 1 to 10 (Unit: ms)
  • For determination of ON time, refer to Section 5.3.2 (4).
  • For details of setting and operation, refer to Section 5.3.2.

(13)Continuous comparison No.1 point n setting (Un\G54 to 85)

Continuous comparison No.2 point n setting (Un\G104 to 135)

  • This area is used for setting a continuous comparison point for the continuous
  • comparison function.
  • Setting range: -2147483648 to 2147483647
  • For details of setting and operation, refer to Section 5.3.2.

(14)Continuous comparison No.1 point monitor during comparison (Un\G86)

Continuous comparison No.2 point monitor during comparison (Un\G136)

  • Point number (1 to 16) which is currently in comparison with the present value is

stored in this area. • For details of setting and operation, refer to Section 5.3.2.

3.4 Buffer Memory Assignment 3.4.2 Details of the buffer memory 3 - 23

Page 48 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ON OFF
Page 48 · click to enlarge
Page 48

3.5 Specifications of I/O Interfaces with External Device

3.5.1 Electrical specifications of I/O signals

(1) Input specifications

Table 3.6 Input specifications of the QD64D2

  • RS-422-A compliant differential receiver

Phase A pulse input

(AM26C32 (manufactured by Texas Instruments Incorporated) or equivalent)

VIT+ differential input ON voltage (H level threshold voltage) 0.1V

VIT- differential input OFF voltage (L level threshold voltage) -0.1V

Phase B pulse input

Vhys Hysteresis voltage (VIT+ - VIT-) 60mV

(A current type line driver cannot be used.)

OFF ON

0.5ms or

/5mA 21.6 to 26.4VDC 21.6 to 26.4VDC

Approx.

/0.1mA or less

ON OFF

1.0ms or

OFF ON

0.5ms or

Latch counter input 24VDC

/5mA 21.6 to 26.4VDC 21.6 to 26.4VDC

Approx.

/0.1mA or less

ON OFF

1.0ms or

Approx.

10.2 to 30VDC

3.9k

12/24V

(TYP 24VDC)

(2) Output specifications

Table 3.7 Output specifications of the QD64D2

Signal name Rated load

ON

OFF ON

0.05ms or

No.1

12/24VDC 10.2 to 30VDC 0.5A/point

2A/common 1.5VDC 0.1mA

ON OFF

0.1ms or

No.2

3. 24 3.5 Specifications of I/O Interfaces with External Device 3.5.1 Electrical specifications of I/O signals
Show 50 more labels / short text on this page
Rated input · Operating · ON voltage/ · OFF voltage/ · Input · Response · Signal name · voltage/ · voltage range · current · current · resistance · time · current · Preset input 24VDC · 5VDC or less · less · /2 to 5mA · 10k · less · 5VDC or less · less · /2 to 5mA · 10k · less · External coincidence · 12 or 24VDC · output power supply · /8mA · Response · Maximum load · Maximum · Leakage · time (rated · Operating load · current/rush · voltage drop at · current · load, · voltage · voltage range · current · at OFF · resistance · load) · Coincidence output · less · or less · Coincidence output · less
Page 49 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3.5.2 Signal layout for external device connector
Page 49 · click to enlarge
Page 49
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 3.5.2 Signal layout for external device connector diagram (page 49)
Fig. 17 · 3.5.2 Signal layout for external device connector

The specifications of the connector section, which is the I/O interface for the QD64D2 and external device, are shown below.

B20 B19 B18 B17 B16 B15 B14 B13 B12 B11 B10 B09 B08 B07 B06 B05 B04 B03 B02 B01

A20 A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A09 A08 A07 A06 A05 A04 A03 A02 A01

3.5 Specifications of I/O Interfaces with External Device 3.5.2 Signal layout for external device connector 3 - 25

Page 50 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — GND(0V)
Page 50 · click to enlarge
Page 50

3.5.3 List of I/O signal details

The details of each signal for the QD64D2 external device connector are shown below.

Table 3.9 Details of each signal for external device connector

number Symbol Signal details

CH1 CH2

  • Phase A pulse input + B19 A19 PULSE A +
  • Inputs + (plus) side of phase A pulse. Phase A pulse input - B18 A18 PULSE A -
  • Inputs - (minus) side of phase A pulse.
  • Phase B pulse input + B17 A17 PULSE B +
  • Inputs + (plus) side of phase B pulse. Phase B pulse input - B16 A16 PULSE B -
  • Inputs - (minus) side of phase B pulse.

Pulse input common B15 A15 PULSE

  • Common for pulse input

COM

  • It is common between channels.

Preset input common B13 A13 PRST

  • Common for preset input

COM

  • It is separated between channels.
  • Turn ON to execute the preset by the external signal.
  • When the preset input terminal (PRST) is turned ON, the present

Preset input 24V B12 A12 PRST

value (Un\G12 and 13) is changed to the preset value setting (Un\G4

and 5). Latch counter input

common B09 A09 LATCH

  • Common for latch counter input

COM

  • It is separated between channels.
  • Turn ON to latch the present value (Un\G12 and 13) by the external

signal.

24V B08 A08 LATCH

  • When the latch counter input terminal (LATCH) is turned ON, the

present value (Un\G12 and 13) is latched and stored in the latch

count value (Un\G14 and 15).

No.1 B05 A05 EQU1 Executes the coincidence output when a coincidence of the count

value is detected while using the coincidence output function or the

continuous comparison function. Coincidence output

No.2 B04 A04 EQU2

B03 A03 12V/24V •Supplies 12V or 24V when executing the external coincidence output.

  • It is common between channels.

12/24V

  • Inputs 0V when executing the external coincidence output.

B02 A02 0V

  • It is also used as a common for external coincidence output.

GND(0V)

  • It is common between channels.
3. 26 3.5 Specifications of I/O Interfaces with External Device 3.5.3 List of I/O signal details
Show 8 more labels / short text on this page
Terminal · Signal name · Latch counter input · Coincidence output · External coincidence · output power supply · External coincidence · output power supply
Page 51 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3.5.4 Interface for external device
Page 51 · click to enlarge
Page 51
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 3.5.4 Interface for external device diagram (page 51)
Fig. 18 · 3.5.4 Interface for external device

The following table shows the list of external device interface of the QD64D2.

Table 3.10 List of external device interface of the QD64D2

3.5 Specifications of I/O Interfaces with External Device 3.5.4 Interface for external device 3 - 27

Page 52 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 3 - 28 3.6 Connectable Encoders
Page 52 · click to enlarge
Page 52

3.6 Connectable Encoders

The encoders connectable to the QD64D2 are described below. • Line driver output type encoders (Check that the encoder output voltage meets the specifications of the QD64D2.)

3 - 28 3.6 Connectable Encoders

Page 53 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4.1 Handling Precautions 4 - 1
Page 53 · click to enlarge
Page 53

4 PROCEDURES AND SETTINGS BEFORE OPERATION

CHAPTER4 PROCEDURES AND SETTINGS BEFORE OPERATION

This chapter describes the operating procedures before operation, part names, settings, and wiring of the QD64D2.

4.1 Handling Precautions

This section describes precautions on handling the QD64D2.

(1) Do not drop the module case and/or connector or apply a strong impact

to it.

(2) Do not remove the printed-circuit board of the module from the case.

Doing so will cause a failure.

(3) Be careful to prevent foreign matter such as dust or wire chips from

entering the module. Failure to do may cause a fire, failure or malfunction.

(4) A protective film is attached to the module top to prevent foreign matter

such as wire chips from entering the module during wiring. Do not remove the film during wiring. Be sure to remove it for heat dissipation before system operation.

(5) Tighten the screws such as module fixing screws within the following

ranges.

Table 4.1 Tightening torque range of module fixing screw

Screw Tightening torque range

Module fixing screw (M3)*1 0.36 to 0.48 N•m

Connector screw of module (M2.6) 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) When mounting the module to the base unit, insert the module fixing

projection into the fixing hole in the base unit, and mount the module with using the hole as a supporting point. Incorrect module mounting may cause a malfunction, failure, or drop of the module.

4.1 Handling Precautions 4 - 1

Page 54 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4 - 2 4.2 Procedures before Operation
Page 54 · click to enlarge
Page 54

4 PROCEDURES AND SETTINGS BEFORE OPERATION

4.2 Procedures before Operation

The following flowchart shows the procedures for operating the QD64D2.

Module mounting Mount the QD64D2 to the specified slot.

Wiring Wire external devices to the QD64D2.

Intelligent function module switch setting Set the switches with GX Developer (refer to Section 4.5).

Section 4.5

Use GX Configurator-CT? Yes

Make the initial setting?

Make the initial setting?

Initial setting Create a sequence program for writing initial values with the FROM/TO instruction.

Initial setting Make initial settings with GX Configurator-CT (refer to Section 6.4).

Section 6.4

Make the auto refresh setting? No

Auto refresh setting Make the auto refresh setting with GX Configurator-CT (refer to Section 6.5).

Section 6.5

Programming Create and a program for counter processing with the FROM/TO instruction and check it.

Programming Create and a program for counter processing without the FROM/TO instruction and check it.

Figure 4.1 Procedures before operation

4 - 2 4.2 Procedures before Operation

Show 7 more labels / short text on this page
Start · No · No · No · Yes · Yes · Yes
Page 55 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4.3 Part Names 4 - 3
Page 55 · click to enlarge
Page 55

4 PROCEDURES AND SETTINGS BEFORE OPERATION

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 4 PROCEDURES AND SETTINGS BEFORE OPERATION diagram (page 55)
Fig. 19

The following explains the part names of the QD64D2.

2. External device connector (40 pins) A connector for connecting an encoder and controller
3. Serial number plate Indicates the serial No. of the QD64D2.

4.3 Part Names 4 - 3

Page 56 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — LIMITED
Page 56 · click to enlarge
Page 56

4 PROCEDURES AND SETTINGS BEFORE OPERATION

POINT

Even if the fuse of the external coincidence output part is blown, the FUSE LED does not turn ON unless a voltage is applied to the external coincidence output power supply terminal.

(1) Connectors for external wiring

Purchase the connector for the QD64D2 separately. The following tables show the recommended connector types and crimp tool.

Table 4.3 Connector types

Type Model Soldering type, straight out A6CON1

Crimp type, straight out A6CON2 Soldering type, usable for both straight out and

* The A6CON3 connector (pressure welding type, straight out) cannot be used for the QD64D2.

(b) Connector crimp tool

Table 4.4 Connector crimp tool

Type Model Applicable wire size Contact

Crimp tool FCN-363T-T005/H AWG28 to 24 FUJITSU COMPONENT

LIMITED

4 - 4 4.3 Part Names

(a) Connector types · diagonal out A6CON4

Page 57 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4.4 Wiring 4.4.1 Wiring precautions 4 - 5
Page 57 · click to enlarge
Page 57

4 PROCEDURES AND SETTINGS BEFORE OPERATION

4.4 Wiring

This section describes wiring an encoder and controller to the QD64D2.

4.4.1 Wiring precautions

One of the conditions to maximize the QD64D2 functions and make the system high- reliable, the external wiring has to be laid so that the QD64D2 becomes less subject to noise. This section describes the precautions on external wiring.

(1) Inputting a signal of different voltage may result in a 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 QD64D2 may miscount.

(4) Take the following measures against noise for high-speed pulse input.

(a) Always use a shielded twisted pair cable and ground it on the QD64D2 side.

(b) Wire the shielded twisted pair cables so as not to be in parallel with wires causing

much noise such as power lines or I/O wires while keeping a distance of at least 150 mm (5.91 inch) between such wires. Also install the shielded twisted pair cables as short as possible.

(5) The following diagram shows an example of wiring for measures against

noise.

QD64D2

Ground the shielded twisted pair cable on the QD64D2 side, and install the cable as short as possible.

Avoid using a solenoid valve and inductive load together in the same metallic pipe. If a sufficient distance cannot be secured with high voltage cable due to such as duct wiring, use CVVS or other shielded cable for the high voltage cable.

Install I/O wires at least 150 mm (5.91 inch) away from the high voltage equipment such as relay and inverter. (Apply this wiring in a control panel as well.)

Make the distance between the encoder and relay box as short as possible. If the distance is long, a voltage drop may occur. Therefore, check that the voltages while the encoder is in operation/stop are within the rated voltage at the terminal block of the relay box using the measure such as a synchronoscope.

Figure 4.3 Example of wiring for measures against noise

4.4 Wiring 4.4.1 Wiring precautions 4 - 5

Show 8 more labels / short text on this page
Programmable controller · Inverter · Terminal block · Terminal block · Relay box · AC motor · Cart · Encoder
Page 58 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4 - 6 4.4 Wiring 4.4.1 Wiring precautions
Page 58 · click to enlarge
Page 58

4 PROCEDURES AND SETTINGS BEFORE OPERATION

(6) Take the following measures to conform the wiring to the EMC and Low

Voltage Directives.

(a) Ground the shielded twisted pair cables to a control panel with the AD75CK cable

clamp (manufactured by Mitsubishi Electric Corporation)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 4 PROCEDURES AND SETTINGS BEFORE OPERATION diagram (page 58)
Fig. 20

Figure 4.4 AD75CK cable clamp

For the AD75CK, refer to the following manual.

AD75CK-type Cable Clamping Instruction Manual

(b) The power supply line connecting to the external coincidence output power supply

module should be 10m or less long.

(c) Keep the length of the cable connected to the external devices of the QD64D2 to

30m or less.

4 - 6 4.4 Wiring 4.4.1 Wiring precautions

Page 59 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (1) Example of wiring with a line driver (AM26LS31 equivalent) encoder
Page 59 · click to enlarge
Page 59

4 PROCEDURES AND SETTINGS BEFORE OPERATION

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 4 PROCEDURES AND SETTINGS BEFORE OPERATION diagram (page 59)
Fig. 21

4.4.2 Example of wiring the module and an encoder

Alphanumeric characters in parentheses of QD64D2 terminal parts indicate CH2 terminal numbers.

(1) Example of wiring with a line driver (AM26LS31 equivalent) encoder

Figure 4.5 Example of wiring with a line driver (AM26LS31 equivalent) encoder

4.4 Wiring 4.4.2 Example of wiring the module and an encoder 4 - 7

Page 60 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (2) Example of wiring with a controller (source loading type)
Page 60 · click to enlarge
Page 60

4 PROCEDURES AND SETTINGS BEFORE OPERATION

4.4.3 Example of wiring a controller and an external input terminal

Alphanumeric characters in parentheses of QD64D2 terminal parts indicate CH2 terminal numbers.

(1) Example of wiring with a controller (sink loading type)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (1) Example of wiring with a controller (sink loading type) diagram (page 60)
Fig. 22 · (1) Example of wiring with a controller (sink loadin…

Figure 4.6 Example of wiring with a controller (sink loading type)

(2) Example of wiring with a controller (source loading type)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Example of wiring with a controller (source loading type) diagram (page 60)
Fig. 23 · (2) Example of wiring with a controller (source load…

Figure 4.7 Example of wiring with a controller (source loading type)

4. 8 4.4 Wiring 4.4.3 Example of wiring a controller and an external input terminal
Page 61 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (1) Example of wiring with an external output terminal (sink output type)
Page 61 · click to enlarge
Page 61

4 PROCEDURES AND SETTINGS BEFORE OPERATION

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 4 PROCEDURES AND SETTINGS BEFORE OPERATION diagram (page 61)
Fig. 24

4.4.4 Example of wiring with an external output terminal

When using coincidence output No. 1 terminal (EQU1) and coincidence output No. 2 terminal (EQU2), external power supply of 10.2 to 30VDC is required. Figure 4.8 shows wiring example. Alphanumeric characters in parentheses of QD64D2 terminal parts indicate CH2 terminal numbers.

(1) Example of wiring with an external output terminal (sink output type)

Figure 4.8 Example of wiring with an external output terminal (sink output type)

4.4 Wiring 4.4.4 Example of wiring with an external output terminal 4 - 9

Page 62 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4 - 10 4.5 Intelligent Function Module Switch Setting
Page 62 · click to enlarge
Page 62

4 PROCEDURES AND SETTINGS BEFORE OPERATION

4.5 Intelligent Function Module Switch Setting

This section describes the intelligent function module switch setting. The switch setting is made on the [I/O assignment] screen of GX Developer.

(1) Intelligent function module switch setting

The switch has five switches and is set at 16-bit data. When the switch setting is not made, the default values of the switches from 1 to 5 are 0.

Table 4.5 Intelligent function module switches

Setting item Setting value Default

1. Pulse input mode
0 H1 multiple of 1 phase
1 H2 multiples of 1 phase

2 H : CW/CCW

3 H1 multiple of 2 phases
ReservedFixed to 0
4 H2 multiples of 2 phases
5 H4 multiples of 2 phases

0000H 2) Counter format

(CH1)

ReservedFixed to 0
0 HLinear counter
1 HRing counter
3. Counter value comparison
ReservedFixed to 0
0 HCoincidence output function
1 HContinuous comparison

(CH2) Same as for the switch 1 0000H

Switch 3 ReservedFixed to 0
Switch 4 ReservedFixed to 0 Switch 5 Reserved: Fixed to 0

4 - 10 4.5 Intelligent Function Module Switch Setting

Show 8 more labels / short text on this page
1) · b8 b11 · 2) · Switch 1 · b12 b15 · 3) · function election · function Switch 2
Page 63 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4.5 Intelligent Function Module Switch Setting 4 - 11
Page 63 · click to enlarge
Page 63

4 PROCEDURES AND SETTINGS BEFORE OPERATION

(Example) Target channel: channel 1, pulse input mode setting: 1 multiple of 2 phases, counter format: ring counter, and counter value comparison function selection: continuous comparison function

Set the switch 1 = 1103H.

POINT

The reserved bits in Table 4.5 are for system use, not for users. Therefore, always fix them to 0. If used (changed from 0 to 1) by a user, the functions of the QD64D2 are not guaranteed.

(2) Details of the intelligent function module switch setting

Table 4.6 Details of the intelligent function module switch setting

Setting item Description Reference

Set the pulse input mode for each channel.

When setting 6H to FH, a switch setting error (error code:

Section 5.1.1

810. occurs.

Counter format Set the counter format for each channel. Section 5.2.1

Section 5.2.2

Set the counter value comparison function for each

Section 5.3.1

channel.

Section 5.3.2

4.5 Intelligent Function Module Switch Setting 4 - 11

Pulse input mode · Counter value comparison · function selection

Page 64 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 4 - 12 4.5 Intelligent Function Module Switch Setting
Page 64 · click to enlarge
Page 64

4 PROCEDURES AND SETTINGS BEFORE OPERATION

(3) Operating procedure

Set the switches on the [I/O assignment] screen of GX Developer.

(a) [I/O assignment] screen

Make the following settings to the slot to which the QD64D2 is mounted. [Type]: Select [Intelli]. [Model name]: Input the model of the module. [Points]: Select [32points]. [Start XY]: Input the start I/O number of the QD64D2.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (3) Operating procedure diagram (page 64)
Fig. 25 · (3) Operating procedure

Figure 4.9 Setting example of [I/O assignment]

(b) [Switch setting for I/O and intelligent function module] screen

Click the on the [I/O assignment] screen to display the screen below and

set the switches from 1 to 5. Entering the values in hexadecimal make the setting easier. Change [Input format] to [HEX.] and enter values.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (3) Operating procedure diagram (page 64)
Fig. 26 · (3) Operating procedure

Figure 4.10 [Switch setting for I/O and intelligent function module] screen

POINT

Since [Error time output mode] and [H/W error time PLC operation mode] on the [Switch setting for I/O and intelligent function module] screen are disabled to the QD64D2, the settings are unnecessary.

4 - 12 4.5 Intelligent Function Module Switch Setting

Page 65 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — B
Page 65 · click to enlarge
Page 65

CHAPTER5 FUNCTIONS

This chapter describes functions of the QD64D2.

5.1 Pulse Input and Count Methods

5.1.1 Types of the pulse input method

The pulse input method has six types as shown on Table 5.1. This chapter describes I/O numbers (X/Y) of channel 1 only. For I/O numbers (X/Y) of channel 2, refer to Section 3.3.1. Set the count method with the intelligent function module switch setting of GX Developer (refer to Section 4.5).

Table 5.1 Types of the pulse input method

A

For addition count Counts on the rising edge ( ) of A.

B (and subtraction count

B and the subtraction count command (Y05) are OFF.

1 multiple of 1 phase

A

Counts on the falling edge ( ) of A.

B (or subtraction count

B or the subtraction count command (Y05) is ON.

A

For addition count Counts on the rising ( ) and falling ( ) edges of A.

B (and subtraction count

B and the subtraction count command (Y05) are OFF.

2 multiples of 1

A

Counts on the rising ( ) and falling ( ) edges of A.

B (or subtraction count

B or the subtraction count command (Y05) is ON.

For addition count Counts on the rising edge ( ) of A.

A

B is OFF.

B

CW/CCW

A

A is OFF.

Counts on the rising edge ( ) of B.

B

A

For addition count When B is OFF, counts on the rising edge ( ) of A.

1 multiple of 2

B

A

count When B is OFF, counts on the falling edge ( ) of A.

B

5.1 Pulse Input and Count Methods 5.1.1 Types of the pulse input method 5 - 1

Show 15 more labels / short text on this page
Pulse input · method Count timing · command (Y05)) · For subtraction · count · command (Y05)) · command (Y05)) · phase · For subtraction · count · command (Y05)) · For subtraction · count · phases · For subtraction
Page 66 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 66 · click to enlarge
Page 66

Table 5.1 Types of the pulse input method (continued)

For addition count When B is OFF, counts on the rising edge ( ) of A.

A

When B is ON, counts on the falling edge ( ) of A.

B

2 multiples of 2

A

When B is ON, counts on the rising edge ( ) of A.

When B is OFF, counts on the falling edge ( ) of A.

B

When B is OFF, counts on the rising edge ( ) of A.

A

When B is ON, counts on the falling edge ( ) of A.

B

When A is ON, counts on the rising edge ( ) of B.

4 multiples of 2

When A is OFF, counts on the falling edge ( ) of B.

When B is ON, counts on the rising edge ( ) of A.

A

When B is OFF, counts on the falling edge ( ) of A.

When A is OFF, counts on the rising edge ( ) of B.

B

When A is ON, counts on the falling edge ( ) of B.

POINT

When performing control with phase B pulse input or the subtraction count command (Y05) at 1-phase pulse input, always turn OFF the unused signals. If either of phase B pulse input or the subtraction count command (Y05) is ON, subtraction count is performed at phase A pulse input.

5. 2 5.1 Pulse Input and Count Methods 5.1.1 Types of the pulse input method
Show 9 more labels / short text on this page
Pulse input · method Count timing · phases · For subtraction · count · For addition count · phases · For subtraction · count
Page 67 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.2 Selecting a Counter Format
Page 67 · click to enlarge
Page 67

5.2 Selecting a Counter Format

The counter format has the following two types. Select a counter format using the intelligent function module switch setting of GX Developer. (Refer to Section 4.5.)

  • Linear counter
  • Ring counter

5.2 Selecting a Counter Format 5.1.1 Types of the pulse input method 5 - 3

Page 68 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (2) Overflow error
Page 68 · click to enlarge
Page 68

5.2.1 Selecting the linear counter

(1) Linear counter operation

(a) For the linear counter, the counting is executed within the range of -2147483648

to 2147483647.

Figure 5.1 Operation image of the linear counter

(b) The following functions can be used in combination.

  • Counter value comparison function (Coincidence output function, continuous
  • comparison function)
  • Coincidence detection interrupt function
  • Preset function
  • Latch counter function

(2) Overflow error

(a) If the present value (Un\G12 and 13) exceeds the range of -2147483648 to

2147483647, an overflow error occurs.

(b) The following are processed at the overflow error.

  • The counting stops. Even if a pulse is input at this status, the present value
  • (Un\G12 and 13) remains at -2147483648 or 2147483647.
  • "1" is stored in the overflow detection flag (Un\G16).
  • The error occurrence (X0D) turns ON, and the error code 100 is stored in the

error code (Un\G18).

(c) The overflow error can be cleared by setting the present value (Un\12 and 13)

within the range of -2147483648 to 2147483647 using the preset function. When the overflow error is cleared, "0" is stored in the overflow detection flag (Un\G16) and the counting can be restarted. However, the error occurrence (X0D) remains ON and the stored value of the error code (Un\G18) is held even after presetting. Turn ON the error reset command (Y0D) to reset the error.

5. 4 5.2 Selecting a Counter Format 5.2.1 Selecting the linear counter
Show 5 more labels / short text on this page
Present value Overflow · +2147483647 · Addition Subtraction · -2147483648 · Overflow
Page 69 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (1) Ring counter operation
Page 69 · click to enlarge
Page 69

5.2.2 Selecting the ring counter

(1) Ring counter operation

(a) For the ring counter, the counting is executed repeatedly within the range set by

the ring counter lower limit value (Un\G0 and 1) and the ring counter upper limit value (Un\G2 and 3). Overflow error does not occur.

Ring counter upper limit value (Un\G2 and 3)

Ring counter lower limit value (Un\G0 and 1)

Figure 5.2 Operation image of the ring counter

(b) The following functions can be used in combination.

  • Counter value comparison function (Coincidence output function, continuous
  • comparison function)
  • Coincidence detection interrupt function
  • Preset function
  • Latch counter function

5.2 Selecting a Counter Format 5.2.2 Selecting the ring counter 5 - 5

Show 4 more labels / short text on this page
Present value · +2147483647 · Addition Subtraction · -2147483648
Page 70 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ( )
Page 70 · click to enlarge
Page 70

(2) Count range of the ring counter

(a) Count range is the following three types shown in Table 5.2

  • Count range is determined by the ring counter lower limit value (Un\G0 and

1), the ring counter upper limit value (Un\G2 and 3) and the present value (Un\G12 and 13). • Range 1 and 2 in Table 5.2 are examples with the following setting.

Ring counter lower limit value (Un\G0 and 1) = -50000 Ring counter upper limit value (Un\G2 and 3) = 100000

Table 5.2 Count range of the ring counter

Count range Setting condition

( ) ( ) ( )

Present value (Un\G12 and 13)

limit value (Un\G0 and 1)

limit value (Un\G2 and 3)

( ( )

)

limit value (Un\G0 and 1)

limit value (Un\G2 and 3)

( )

( )

Present value (Un\G12 and 13)

limit value (Un\G0 and 1)

( ) ( )

Present value (Un\G12 and 13)

limit value (Un\G2 and 3)

-2147483648 to -50000 100001 to 2147483647

limit value Ring counter lower

( )

( )

limit value (Un\G0 and 1)

limit value (Un\G2 and 3)

The present value (Un\G12 and 13) is not included in the setting condition.

5. 6 5.2 Selecting a Counter Format 5.2.2 Selecting the ring counter
Show 40 more labels / short text on this page
Range 1 · + 2147483647 · Ring counter lower · Ring counter upper · Ring counter upper · limit value · Subtraction · and · Addition · Ring counter lower · limit value · Ring counter lower · Ring counter upper · - 2147483648 · Count range · -50000 to 99999 · Range 2 · + 2147483647 · Ring counter lower · Ring counter upper · limit value · Subtraction · or · Ring counter lower · Addition · limit value · Ring counter upper · - 2147483648 · Count range · Range 3 · + 2147483647 · Ring counter upper · limit value · Subtraction · Ring counter lower · Ring counter upper · Addition · - 2147483648 · Count range · -2147483648 to 2147483647
Page 71 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (Un\G2 and 3) ( )
Page 71 · click to enlarge
Page 71

(b) Setting method of the count range

1. Select a count range from range 1 to 3.
2. Preset the present value (Un\G12 and 13) in accordance with the setting condition. (Only when using a range 1 or 2)
  • Set the preset value setting (Un\G4 and 5).
  • Turn from OFF to ON the preset command (Y04), or turn ON the preset

input terminal (PRST) for external input.

3. Set a count range for the ring counter. • Set the ring counter lower limit value (Un\G0 and 1) and the ring counter

upper limit value (Un\G2 and 3). • Turn from OFF to ON the count enable command (Y06).

(c) When the ring counter lower limit value (Un\G0 and 1) and the ring counter upper

limit value (Un\G2 and 3) are set as shown below and turn from OFF to ON the count enable command (Y06), a ring counter upper/lower limit value setting error (Error code: 500) occurs.

Ring counter lower limit value

Ring counter upper limit value

(Un\G2 and 3) ( )

( )

POINT

  • The present value (Un\G12 and 13) can be preset during counting.

However, the changes for the ring counter lower limit value (Un\G0 and 1) and the ring counter upper limit value (Un\G2 and 3) become valid only after turning from OFF to ON the count enable command (Y06). • When changing the count range by the preset, to avoid miss-counting,

always turn OFF the count enable command (Y06) before changing it.

5.2 Selecting a Counter Format 5.2.2 Selecting the ring counter 5 - 7

(Un\G0 and 1)

Page 72 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5 - 8 5.3 Using the Counter Value Comparison Function
Page 72 · click to enlarge
Page 72

5.3 Using the Counter Value Comparison Function

The counter value comparison function compares the present value (Un\G12 and 13) to a comparison point, and outputs the comparison result by the input signal (X01 to X06) or the external output (EQU1 and EQU2).

The counter value comparison function has the following two types. Select a counter value comparison function using the intelligent function module switch setting. (Refer to Section 4.5.)

  • Coincidence output function
  • Continuous comparison function

5 - 8 5.3 Using the Counter Value Comparison Function

Page 73 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ON OFF
Page 73 · click to enlarge
Page 73

5.3.1 Using the coincidence output function

Each channel has No.1 and No.2 comparison points. Each point individually compares to the present value (Un\G12 and 13) and outputs the comparison result. (Refer to Table 5.3.) One comparison point can be set for each No.1 and No.2.

Table 5.3 Coincidence output function

Signal and external output terminal used to output the

Input signal (X) External output

  • Counter value large No.1 (X01)

No.1 Coincidence output No.1 point setting (Un\G6

  • Counter value coincidence

Coincidence output No.1

No.1 (X02)

  • Counter value small (X03)
  • Counter value large No.2 (X04)

No.2 Coincidence output No.1 point setting (Un\G8

  • Counter value coincidence

Coincidence output No.2

No.2 (X05)

  • Counter value small No.2 (X06)

In this section, I/O numbers (X/Y) and buffer memory addresses are listed for channel 1 and coincidence output No.1. For I/O numbers and buffer memory addresses used for channel 2 and coincidence output No.2, refer to Section 3.3.1 and Section 3.4.1.

(1) Operation of coincidence output function

ON OFF

(Y06)

ON OFF

(Y03)

At the point where the coincidence output No.1 point change request (Un\G10) changes from "1" (Change request) to "0" (No change request), the comparison between the value set in the coincidence output No.1 point setting (Un\G6 and 7) (1000) and the present value (Un\G12 and 13) starts.

Coincidence output No.1

No.1 point setting

Counter value small No.1

ON OFF

(X03)

Counter value coincidence No.1

ON OFF

(X02)

ON OFF

No.1 terminal

(EQU1)

Coincidence signal No.1 reset command

ON OFF

(Y01)

Counter value large No.1

ON OFF

(X01)

Present value (Un\G12 and 13)

1001 1000 999 1

Figure 5.3 Operation example of the coincidence output function

5.3 Using the Counter Value Comparison Function 5.3.1 Using the coincidence output function 5 - 9

Show 26 more labels / short text on this page
Comparison point · comparison result · to 7) · terminal (EQU1) · to 9) · terminal (EQU2) · Count enable command · Coincidence output · 3) · enable command · 1) · point change request · (Un\G10) · Coincidence output · 1)1000 · (Un\G6 and 7) · 4) · 2) · 4) · Coincidence output · 4) · 6) · t*1 · t*1 · 5) · *1 t 2ms
Page 74 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.3.1 Using the coincidence output function
Page 74 · click to enlarge
Page 74

Table 5.4 Details of operation example of the coincidence output function

With the following procedures, start the coincidence detection using the value

set in the coincidence output No.1 point setting (Un\G6 and 7).

(1) Write "1000" for the coincidence output No.1 point setting (Un\G6 and 7).

1. *1

(2) Write "1" (Change request) for the coincidence output No.1 point change

request (Un\G10).

(3) The setting value becomes valid when "1" (Change requet) turns to "0" (No

change request).

2. When the present value (Un\G12 and 13) is smaller than the coincidence output

No.1 point setting (Un\G6 and 7), the counter value small No.1 (X03) turns ON.

When outputting from the coincidence output No.1 terminal (EQU1) of external

device connector, turn ON the coincidence output enable command (Y03).

At the time, the coincidence output No.2 terminal (EQU2) is also enabled.

When the present value (Un\G12 and 13) is equal to the coincidence output

No.1 point setting (Un\G6 and 7), the counter value small No.1 (X03) turns OFF

and the counter value coincidence No.1 (X02) turns ON.

When the present value (Un\G12 and 13) is larger than the coincidence output

No.1 point setting (Un\G6 and 7), the counter value large No.1 (X01) turns ON.

The counter value coincidence No.1 (X02) remains ON until resetting it.

Turn ON the coincidence signal No.1 reset command (Y01) to reset the counter

value coincidence No.1 (X02). If the counter value coincidence No.1 (X02)

remains ON, the counter value coincidence No.1 (X02) cannot be output next

time.

* 1 If the operation in 1) is not executed, comparison with the values stored in the coincidence output

No.1 point setting (Un\G6 and 7) and the coincidence output No.2 point setting (Un\G8 and 9) is not executed.

5. 10 5.3 Using the Counter Value Comparison Function 5.3.1 Using the coincidence output function
Show 5 more labels / short text on this page
Number Description · 3) · 4) · 5) · 6)
Page 75 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 75 · click to enlarge
Page 75

POINT

(1) At immediately after the power-on or resetting the programmable controller

CPU, the relation of the present value and the coincidence output point setting is the following: "Present value = Coincidence output point setting = 0". Therefore, the counter value coincidence (X02, X05, X12, and X15) of channels that use the coincidence output function turns ON. For channels that use the coincidence output function, always execute the following procedures from 1 to 3. For the programming method of the following procedures, refer to Section 7.3 and Section 7.4.

Procedure 1: Set the following buffer memories and make sure that the coincidence output point settings are other than "0"

Buffer memory address to be set Setting value

CH1 coincidence output No.1 point setting (Un\G6 and 7)

Other than "0" CH1 coincidence output No.2 point setting (Un\G8 and 9)

CH2 coincidence output No.1 point setting (Un\G206 and 207)

CH2 coincidence output No.2 point setting (Un\G208 and 209)

CH1 coincidence output No.1 point change request (Un\G10)

1 CH1 coincidence output No.2 point change request (Un\G11)

CH2 coincidence output No.1 point change request (Un\G210)

CH2 coincidence output No.2 point change request (Un\G211)

Procedure 2: Turn from OFF to ON then OFF the following signals to turn OFF the counter value coincidence (X02, X05, X12, and X15).

Signals to be turned OFF ON OFF*1

CH1 coincidence signal No.1 reset command (Y01)

CH1 coincidence signal No.2 reset command (Y02)

CH2 coincidence signal No.1 reset command (Y11)

CH2 coincidence signal No.2 reset command (Y12)

*1 Make sure that ON time is longer than 2ms.

Procedure 3 (Only for external output): After checking that the counter value coincidence (X02, X05, X12, and X15) is OFF, turn ON the coincidence output enable (Y03 and Y13).

(2) Even if the coincidence signal No.1 reset command (Y01) is turned from ON

to OFF while the present value is equal to the coincidence output point setting, the counter value coincidence (X02) and the coincidence output No.1 terminal (EQU1) turn ON again.

(3) When the counter value coincidence No.1 (X02) is turned from OFF to ON by

the coincidence detection process of the QD64D2, there may be cases where the counter value large No.1 (X01) or the counter value small No.1 (X03) turns ON.

5.3 Using the Counter Value Comparison Function 5.3.1 Using the coincidence output function 5 - 11

Page 76 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (2) Wiring check for the coincidence output No.1 terminal (EQU1) and the
Page 76 · click to enlarge
Page 76

(2) Wiring check for the coincidence output No.1 terminal (EQU1) and the

coincidence output No.2 terminal (EQU2) For the coincidence output function, the wiring cannot be checked with the coincidence output test function (refer to Section 5.3.3). Check the wiring referring to the following procedures. Wiring check for the coincidence output No.1 terminal (EQU1) of channel 1 is indicated below.

1. Set the same value for the coincidence output No.1 point setting (Un\G6 and 7) and the present value (Un\G12 and 13).
2. Write "1" (Change request) for the coincidence output No.1 point change request (Un\G10). If the setting is other than "1", the value after changing the coincidence output No.1 point setting (Un\G6 and 7) is not reflected, and the comparison is performed with the value before change.
3. Turn ON or OFF the coincidence output enable command (Y03). Note that in the case where the coincidence output No.1 point setting (Un\G6 and 7) is equal to the coincidence output No.2 point setting (Un\G8 and 9), when the coincidence output enable command (Y03) is turned ON or OFF, the coincidence output No.2 terminal (EQU2) also turns ON.
5. 12 5.3 Using the Counter Value Comparison Function 5.3.1 Using the coincidence output function
Page 77 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 10 11 12 16 1 2 3
Page 77 · click to enlarge
Page 77

5.3.2 Using the continuous comparison function

Each channel has No.1 and No.2 comparison points. Each point individually compares to the present value (Un\G12 and 13) and outputs the comparison result (refer to Table 5.5). 16 comparison points can be set for each No.1 and No.2. Without rewriting the comparison point in the middle of the control, multiple coincidence detections can be executed easily.

Table 5.5 Continuous comparison function

Signal and external output terminal used to output the

Input signal (X) External output

Continuous comparison No.1 point 1 setting

(Un\G54 and 55) •Counter value large No.1 (X01)

  • Counter value coincidence

Coincidence output No.1

No.1

No.1 (X02)

Continuous comparison No.1 point 16 setting

  • Counter value small No.1 (X03)

Continuous comparison No.2 point 1 setting

(Un\G104 and 105) •Counter value large No.2 (X04)

  • Counter value coincidence

Coincidence output No.2

No.2

No.2 (X05)

Continuous comparison No.2 point 16 setting

  • Counter value small No.2 (X06)

In this section, I/O numbers (X/Y) and buffer memory addresses are listed for channel 1 and continuous comparison No.1. For I/O numbers and buffer memory addresses used for channel 2 and continuous comparison No.2, refer to Section 3.3.1 and Section 3.4.1.

(1) Usage sequence of the continuous comparison No.1 point n setting

(Un\G54 to 85) and the continuous comparison No.2 point n setting (Un\G104 to 135) By the magnitude correlation of the following buffer memories, an order and range of the continuous comparison points as comparison targets can be specified. A: Continuous comparison No.1 start point setting (Un\G50) B: Continuous comparison No.1 repeat point setting (Un\G51)

(a) When A < B

ExampleA = 5, B = 10

5 6 7 8 9 10

(b) When A > B

ExampleA = 10, B = 3

10 11 12 16 1 2 3

5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function 5 - 13

Show 6 more labels / short text on this page
Comparison point · comparison result · terminal (EQU1) to · (Un\G84 and 85) · terminal (EQU2) to · (Un\G134 and 135)
Page 78 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 78 · click to enlarge
Page 78

(c) When A = B

ExampleA = 5, B = 5

After coincidence detection with the continuous comparison No.1 point 16 setting (Un\G84 and 85) is completed, the comparison target returns to the continuous comparison No.1 point 1 setting (Un\G54 and 55) again. When temporarily stopping the continuous comparison, turn OFF the count enable command (Y06) and so on, so that the present value (Un\G12 and 13) does not change.

POINT

When restarting the continuous comparison function after stopping the function, the comparison starts from the point set by the continuous comparison No.1 start point setting (Un\G50).

5. 14 5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function
Page 79 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ON
Page 79 · click to enlarge
Page 79

(2) Operation of the continuous comparison function

Setting example for comparing between point 1 (1000) and point 2 (21000) repeatedly using the continuous comparison No.1 is indicated below.

Write the following values beforehand. *1 Continuous comparison No.1 start point setting (Un\G50) = 1 Continuous comparison No.1 repeat point setting (Un\G51) = 2 Continuous comparison No.1 ON time setting (Un\G52) = 1ms Continuous comparison No.1 point 1 setting (Un\G54 and 55) = 1000 Continuous comparison No.1 point 2 setting (Un\G56 and 57) = 21000

* 1 The continuous comparison point can be set up to 16 points each. Beforehand, set all points to be

used. (Refer to Section 3.4.1) If the settings of buffer memories for the continuous comparison No.1 start point setting (Un\G50) and so on are improper, an error (Error code 201 to 222) occurs and the continuous comparison cannot be started.

ON

(Y06)

OFF

Continuous comparison No.1 execution command

ON

(Y09) During continuous comparison No.1 execution

OFF

ON

OFF

(X09)

Continuous comparison No.1 point monitor during comparison

1 0 2 1

Counter value small No.1

ON

(X03)

OFF

ON

3. *1

Coincidence output No.1 terminal

(EQU1)

OFF

4. 5)

Counter value coincidence No.1

(X02)

OFF

Counter value large No.1

ON

(X01)

OFF

Present value (Un\G12 and 13)

999 1000 1001 20999 21000

*1 t1 = Continuous comparison No.1 ON time setting (Un\G52)

Figure 5.4 Operation example of the continuous comparison function

5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function 5 - 15

Show 12 more labels / short text on this page
(a) Initial setting · (b) Operation diagram · Count enable command · 6) · 1) · 2) · (Un\G86) · t1 t1 · *1 · t2 t2 · *1 *1 · *2 t1<t2< (t1+1ms)
Page 80 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.3.2 Using the continuous comparison function
Page 80 · click to enlarge
Page 80

Table 5.6 Details of operation example of the continuous comparison function

1. [Execution request]

Turn ON the continuous comparison No.1 execution command (Y09).

When the continuous comparison is ready, first comparison target will be the

continuous comparison No.1 point 1 setting (Un\G54 and 55) because "1" is set

in the continuous comparison No.1 start point setting (Un\G50).

When "1" is stored in the continuous comparison No.1 point monitor during

comparison (Un\G86), the during continuous comparison No.1 execution (X09)

turns ON and the continuous comparison starts.

[At counter value coincidence]

When the present value (Un\G12 and 13) is equal to the continuous comparison

No.1 point 1 setting, the following are processed.

1. The counter value small No.1 (X03) turns OFF and the counter value

coincidence No.1 (X02) and the coincidence output No.1 terminal (EQU1)

turn ON.

2. A coincidence detection interrupt to the programmable controller CPU is

generated.

[Process after the continuous comparison ON time setting]

After a set time of the continuous comparison No.1 ON time setting (Un\G52)

elapses, the coincidence output No.1 terminal (EQU1) turns OFF.

  • Comparison target will be the continuous comparison No.1 point 2 setting

(Un\G56 and 57).

  • "2" is stored in the continuous comparison No.1 point monitor during

comparison (Un\G86).

  • The counter value coincidence No.1 (X02) turns OFF.

When OFF of the coincidence output No.1 terminal (EQU1) is detected, the

following are processed.

(After that, the comparison is repeated with the continuous comparison No.1

point 2 setting (Un\G56 and 57) and the continuous comparison No.1 point 1

setting (Un\G54 and 55) until the continuous comparison No.1 execution

command (Y09) is turned OFF. )

  • Comparison target will be the continuous comparison No.1 point 1 setting

(Un\G54 and 55).

  • "1" is stored in the continuous comparison No.1 point monitor during

comparison (Un\G86).

  • The counter value coincidence No.1 (X02) turns OFF.

When the coninuous comparison No.1 execution command (Y09) is turned OFF,

the following are processed and the during continuous comparison No.1

execution (X09) turns OFF.

  • The counter value small No.1 (X03) turns OFF.
  • The counter value coincidence No.1 (X02) turns OFF.
  • The counter value large No.1 (X01) turns OFF.

The continuous comparison No.1 point monitor during comparison (Un\G86) is

held until the during continuous comparison No.1 execution (X09) turns ON.

5. 16 5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function
Show 8 more labels / short text on this page
Number Description · [Continuous comparison start] · 2) · 3) · 4) · 5) · [Complete process] · 6)
Page 81 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 81 · click to enlarge
Page 81

POINT

(1) When the count value coincides with the comparison point, an external output

is performed. Therefore, do not connect anything to the unused coincidence output terminal (EQU). (2) When the counter value coincidence No.1 (X02) is turned from OFF to ON by

the coincidence detection process of the QD64D2, there may be cases where the counter value large No.1 (X01) or the counter value small No.1 (X03) turns ON. (3) If the continuous comparison No.1 execution command (Y09) is turned OFF

while outputting from the coincidence output No.1 terminal (EQU1), the output stops regardless of the set time of the continuous comparison No.1 ON time setting (Un\G52).

5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function 5 - 17

Page 82 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 15 16 1 2
Page 82 · click to enlarge
Page 82

(3) When comparing with 17 points or more of the continuous comparison

point setting For the QD64D2, settable continuous comparison No.1 point n setting (Un\G54 to 85) is up to 16 points each. Therefore, when comparing with 17 points or more, execute the following procedures.

Set the following and turn from OFF to ON the continuous comparison No.1 execution command (Y09).

  • Continuous comparison No.1 start point setting (Un\G50) = 1 *1
  • Continuous comparison No.1 repeat point setting (Un\G51) = 16 *1
  • Set the continuous comparison points for point 1 through point 16 in the

following buffer memories. Continuous comparison No.1 point 1 setting (Un\G54 and 55) to Continuous comparison No.1 point 16 setting (Un\G84 and 85)

* 1 When starting from point 2 or later, set a value that is "Start point setting -1" for the repeat point

setting. Example) When start point = 6, repeat point = 5 When starting from point 16, set the following. Start point = 16, Repeat point = 1

(b) Rewriting data during comparison

Set the following when the continuous comparison No.1 point monitor during comparison (Un\G86) becomes "2".

  • Continuous comparison No.1 point setting (Un\G54 and 55) = Continuous

comparison point setting for the 17th point After that, rewrite the data at every point change.

No.1 point monitor during comparison

1 2 3 4

After that, repeat setting until the end point.

continuous comparison No.1 point 1 setting (Un\G54 and 55) to

continuous comparison No.1 point 2 setting (Un\G56 and 57) to

continuous comparison No.1 point 3 setting (Un\G58 and 59) to

the setting for the 17th point.

the setting for the

the setting for the 19th point.

18th point.

Figure 5.5 Rewriting data during comparison

When the point monitor is "1", rewrite the point 16 setting.

No.1 point monitor during comparison

15 16 1 2

continuous comparison No.1 point 14 setting

continuous comparison No.1 point 15 setting

continuous comparison No.1 point 16 setting

continuous comparison No.1 point 1 setting

(Un\G80 and 81).

(Un\G82 and 83).

(Un\G84 and 85).

(Un\G54 and 55).

Figure 5.6 When the point monitor is "1"

5. 18 5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function
Show 12 more labels / short text on this page
(a) Initial setting · Continuous comparison · (Un\G86) · Rewrite the · Rewrite the · Rewrite the · Continuous comparison · (Un\G86) · Rewrite the · Rewrite the · Rewrite the · Rewrite the
Page 83 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (Y09). *1
Page 83 · click to enlarge
Page 83

(c) Process after completion of comparison at end point

1. When repeatedly comparing from the 1st point Set the following after setting all continuous comparison point settings for the 17th point and later. • Continuous comparison No.1 point n setting (Un\G54 to 85) of

(Continuous comparison No.1 point monitor during comparison (Un\G86) -1) = Continuous comparison point setting of the 1st point and later Figure 5.7 is the example when comparing with 19 points.

No.1 point monitor during comparison

After that, repeat setting until the end point.

3 4 5 6

continuous comparison No.1 point 2 setting (Un\G56 and 57) to

continuous comparison No.1 point 3 setting (Un\G58 and 59) to

continuous comparison No.1 point 4 setting (Un\G60 and 61) to

continuous comparison No.1 point 5 setting (Un\G62 and 63) to

the setting for the

the setting for the

the setting for the

the setting for the

18th point.

19th point.

1st point.

2nd point.

Figure 5.7 When repeatedly comparing from the 1st point

2. When stopping the continuous comparison Turn from ON to OFF the continuous comparison No.1 execution command (Y09) under the following condition.
  • (Continuous comparison No.1 point monitor during comparison (Un\G86)

-1) = Comparison end point Figure 5.8 is the example when comparing with 19 points.

Comparison end point Comparison end point + 1

No.1 point monitor during comparison

continuous comparison No.1 point 2 setting (Un\G56 and 57) to

continuous comparison No.1 point 3 setting (Un\G58 and 59) to

Turn from OFF to ON

the continuous comparison No.1 execution command

the setting for the

the setting for the

(Y09). *1

18th point.

19th point.

*1 When the present value may coincide with the comparison point of the (comparison end point + 1) before stopping the continuous comparison, store a value which does not perform a coincidence output (for example: -1) to the (comparison end point + 1) before completing the coincidence detection at the comparison end point. *2 In the case of the comparison end point is 16, turn from ON to OFF the execution command when the point monitor changes to 1.

Figure 5.8 When stopping the continuous comparison

5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function 5 - 19

Show 11 more labels / short text on this page
Comparison end point · Continuous comparison · (Un\G86) · Rewrite the · Rewrite the · Rewrite the · Rewrite the · *2 Continuous comparison · (Un\G86) · Rewrite the · Rewrite the
Page 84 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.3.2 Using the continuous comparison function
Page 84 · click to enlarge
Page 84

Table 5.7 shows the example of continuous comparison point setting for 19 points.

Table 5.7 Example of continuous comparison point setting

Target continuous comparison No.1 point n setting

1 100 Continuous comparison No.1 point 1 setting

2 110 Continuous comparison No.1 point 2 setting 3 120 Continuous comparison No.1 point 3 setting

4 130 Continuous comparison No.1 point 4 setting 5 140 Continuous comparison No.1 point 5 setting

6 150 Continuous comparison No.1 point 6 setting 7 160 Continuous comparison No.1 point 7 setting

8 170 Continuous comparison No.1 point 8 setting 9 180 Continuous comparison No.1 point 9 setting

10 190 Continuous comparison No.1 point 10 setting 11 200 Continuous comparison No.1 point 11 setting

12 210 Continuous comparison No.1 point 12 setting 13 220 Continuous comparison No.1 point 13 setting

14 230 Continuous comparison No.1 point 14 setting 15 240 Continuous comparison No.1 point 15 setting

16 250 Continuous comparison No.1 point 16 setting 17 260 Continuous comparison No.1 point 1 setting

18 270 Continuous comparison No.1 point 2 setting 19 280 Continuous comparison No.1 point 3 setting

Continuous comparison No.1 point 4 setting

(Set "-1" so that the coincidence output is not performed

when the continuous comparison function is stopped. )

5. 20 5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function
Show 7 more labels / short text on this page
Continuous · Continuous · comparison · comparison · order · point setting · ---- -1
Page 85 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 85 · click to enlarge
Page 85

(4) Continuous comparison No.m point n setting interval

For the interval of the continuous comparison No.m point n setting, set the values to satisfy the following conditions 1 and 2.

(a) Condition 1:

Interval of (Continuous comparison

No.m point n setting)

Input pulse speed [pps]

(Continuous comparison No.m

( ) 1000 1[ms]

ON time setting [ms])

(b) Condition 2 (Applies only when the derating of external coincidence output is less

than 100% (Refer to Section 3.1.2)):

Interval of (Continuous comparison

No.m point n setting)

Input pulse speed [pps]

Continuous comparison No.m

( ) 1000

ON time setting [ms] ON ratio [%]

For example, when "Continuous comparison No.1 ON time setting" = 10[ms], "ON ratio" = 50[%], "Input pulse speed" = 4[Mpps] = 4000000[pps], interval of the continuous comparison No.1 point n setting (Un\G54 to 85) is the following.

Condition 1:

Interval of (Continuous comparison No.1 point n setting (Un\G54 to 85))

( )

Condition 2:

Interval of (Continuous comparison No.1 point n setting (Un\G54 to 85))

( )

(To satisfy the conditions 1 and 2, set the value of condition 2.)

Interval of the continuous comparison No.1 point n setting (Un\G54 to 85) 80000

POINT

"1ms" in the above condition 1 is a time for the comparison target change in the QD64D2. Always set the sequence program to satisfy the condition 1. When the count value is coincided within the time, the QD64D2 may not detect the coincidence depending on the timing of the count value coincidence and the comparison target change.

5.3 Using the Counter Value Comparison Function 5.3.2 Using the continuous comparison function 5 - 21

Show 6 more labels / short text on this page
100[%] · 4000000[pps] · 1000 10[ms] 1[ms] · 1000 10[ms] 100[%] · 4000000[pps] · 50[%]
Page 86 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (2) Execution condition of the coincidence output test function
Page 86 · click to enlarge
Page 86

5.3.3 Using the coincidence output test function

Use the coincidence output test function to check the wiring of the coincidence output No.1 terminal (EQU1) and the coincidence output No.2 terminal (EQU2) when selecting the continuous comparison function.

When using the continuous comparison function, the coincidence output No.1 terminal (EQU1) and the coincidence output No.2 terminal (EQU2) automatically turn OFF. Therefore, check the wiring using the coincidence output test function.

(1) Operation of coincidence output test function

1. 2)

Coincidence output No.1 test command

ON

(Y0B)

OFF

Coincidence output No.1 terminal

ON

(EQU1)

OFF

External I/O status monitor. b4

ON

OFF

Figure 5.9 Operation example of the coincidence output test function

Table 5.8 Details of operation example of coincidence output test function

When the coincidence output No.1 test command (Y0B) is turned ON, the

following are executed.

  • The coincidence output No.1 terminal (EQU1) turns ON.
  • Bit 4 (Coincidence output No.1 output status) of the external I/O status monitor

(Un\G17) turns ON.

When the coincidence output No.1 test command (Y0B) is turned OFF, the

following are executed.

  • The coincidence output No.1 terminal (EQU1) turns OFF.
  • Bit 4 (Coincidence output No.1 output status) of the external I/O status monitor

(Un\G17) turns OFF.

(2) Execution condition of the coincidence output test function

(a) Before executing the coincidence output test function, check that the following

signals are all OFF.

  • Count enable command (Y06)
  • Continuous comparison No.1 execution command (Y09)
  • During continuous comparison No.1 execution (X09)
  • Continuous comparison No.2 execution command (Y0A)
  • During continuous comparison No.2 execution (X0A) If the coincidence output test is attempted while any of the above signal is ON, the coincidence output No.m test output not possible warning (Warning code: 31 and 32) occurs.

(b) Counting cannot be started while the coincidence output test command is ON.

Do not turn ON the count enable command (Y06). If it is turned ON, a count enable execution not possible error (Error code: 300) occurs.

5. 22 5.3 Using the Counter Value Comparison Function 5.3.3 Using the coincidence output test function
Show 4 more labels / short text on this page
(Un\G17) · Number Description · 1) · 2)
Page 87 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 87 · click to enlarge
Page 87

(c) Do not turn ON the continuous comparison execution command while the

coincidence output test command is ON. If the continuous comparison execution command is turned ON while the test command is ON, a continuous comparison No.m execution not possible error (Error code: 311 and 312) occurs.

POINT

  • Even if the coincidence output No.1 test command (Y0B) and the

coincidence output No.2 test command (Y0C) are turned ON, the counter value coincidence No.1 (X02) and the counter value coincidence No.2 (X05) do not turn ON/OFF. (Coincidence detection interrupt also does not occur.) • The coincidence output test function cannot be used when selecting the

coincidence output function.

5.3 Using the Counter Value Comparison Function 5.3.3 Using the coincidence output test function 5 - 23

Page 88 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (Y01)
Page 88 · click to enlarge
Page 88

5.3.4 Coincidence detection interrupt function

Use the coincidence detection interrupt function to request an interrupt to the programmable controller CPU when a coincidence is detected, and start up the interrupt program.

(a) Up to 16-point interrupt factors (SI) are allowed for a single MELSEC-Q series

intelligent function module. As shown in Table 5.9, the QD64D2 has 4-point interrupt factors (SI) for coincidence detection.

Table 5.9 List of interrupt factors

SI No. Interrupt factor

0 Channel 1Coincidence detection of coincidence output No.1 point setting or continuous

comparison No.1 point m setting

1 Channel 1Coincidence detection of coincidence output No.2 point setting or continuous

comparison No.2 point m setting

2 Channel 2Coincidence detection of coincidence output No.1 point setting or continuous

comparison No.1 point m setting

3 Channel 2Coincidence detection of coincidence output No.2 point setting or continuous

comparison No.2 point m setting 4 to 15 Reserved

Timing of interrupt signal generation

Counter value coincidence No.1

(X02)

Coincidence signal No.1 reset command

(Y01)

Internal processing of the programmable

Program processing in the programmable controller CPU Interrupt program processing

*1 The coincidence signal No.1 reset command (Y01) is only used for the coincidence output function. For the continuous comparison function, the counter value coincidence No.1 (X02) automatically turns OFF after elapsing the set time of the continuous comparison No.1 ON time setting (Un\G52).

Figure 5.10 Timing of interrupt signal generation

(b) It takes approximately 150 s from when the QD64D2 detects a coincidence until

it requests an interrupt to the programmable controller CPU.

(c) Select [PLC parameter] - [PLC system] - [Intelligent function module setting] -

[Interrupt pointer settings] to set the interrupt factors (SI) of the QD64D2 and interrupt pointers of the programmable controller CPU.

1. [PLC side] [Interrupt pointer start No.] Set the start interrupt pointer number of the programmable controller CPU. Setting range: 50 to 255
5. 24 5.3 Using the Counter Value Comparison Function 5.3.4 Coincidence detection interrupt function
Show 5 more labels / short text on this page
*1 · I/O signals · Interrupt request · controller CPU · Interrupt request clear
Page 89 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.3.4 Coincidence detection interrupt function
Page 89 · click to enlarge
Page 89
2. [PLC side] [Interrupt pointer No. of module] Set the number of interrupt factors (SI). Setting range: 1 to 4
3. [Intelli. module side] [Start I/O No.] Set the start I/O number of the QD64D2. Setting range: 0000 to 0FE0( H )
4. [Intelli. module side] [Start SI No.] Set the start interrupt factor (SI) of the QD64D2. Setting range: 0 to 3 The following shows a setting example where SI 0 to 3 of the QD64D2 in the slot of start I/O No.20 are assigned to interrupt pointers I50 to I53.
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 5.3.4 Coincidence detection interrupt function diagram (page 89)
Fig. 27 · 5.3.4 Coincidence detection interrupt function

Figure 5.11 Interrupt pointer setting example (GX Developer screen)

(d) The following two methods are available for using particular SI numbers only.

1) Using the interrupt pointer setting with parameters According to the setting in the [Intelligent function module interrupt pointer setting] dialog box, only the interrupt factors starting from the [Start SI No.] and equivalent to the number set at [Interrupt pointer No. of module] are used. For example, if the [Start SI No.] and [Interrupt pointer No. of module] are set to 1 and 2 respectively, only SI 1 and 2 will be used. The interrupt function is not used if the interrupt pointer setting with parameters has not been made.

2. Using the IMASK instruction from the sequence program With the IMASK instruction, whether to enable or disable (interrupt mask) the interrupt program execution can be set to each interrupt pointer number. For details of the IMASK instruction, refer to the following manual.

MELSEC-Q/L Programming Manual (Common Instruction)

5.3 Using the Counter Value Comparison Function 5.3.4 Coincidence detection interrupt function 5 - 25

Page 90 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 90 · click to enlarge
Page 90

POINT

  • Coincidence detection interrupt occurs at the rising edge (OFF ON) of the counter value coincidence No.1 (X02) or the counter value coincidence No.2 (X05). Therefore, next interrupt request does not occur unless the counter value coincidence No.1 (X02) and the counter value coincidence No.2 (X05) are reset and turned OFF.
  • When using the coincidence output function, the counter value

coincidence No.1 (X02) and the counter value coincidence No.2 (X05) turns ON immediately after the power-on or resetting the programmable controller CPU; however, a coincidence detection interrupt does not occur. For resetting method of the counter value coincidence No.1 (X02) and the counter value coincidence No.2 (X05), refer to Section 5.3.1.

5. 26 5.3 Using the Counter Value Comparison Function 5.3.4 Coincidence detection interrupt function
Page 91 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.4 Using the Preset Function 5 - 27
Page 91 · click to enlarge
Page 91

5.4 Using the Preset Function

Use the preset function to rewrite the present value (Un\G12 and 13) to any value (preset value) and start counting pulses from the value.

The following two methods are available for presetting.

  • Turn ON the preset command (Y04) by the sequence program.
  • Turn ON the preset input terminal (PRST) of external input.

In (1) and (2) below, I/O numbers (X/Y) and buffer memory addresses are listed for channel 1. For I/O numbers and buffer memory addresses used for channel 2 , refer to Section 3.3.1 and Section 3.4.1.

(1) Operation when turning ON the preset command (Y04) by the sequence

program Turn ON the preset command (Y04) by the sequence program to execute preset.

ON OFF

(Y06)

1. 1)

ON OFF

2. 2)

(Y04)

Present value (Un\G12 and 13) to

2001 2000 0 1067 1066 1065 1002 1001 1000

2002 2003 2004 2005

Figure 5.12 Operation example of the preset function by the sequence program

Table 5.10 Details of operation example of the preset function by the sequence program

1. Write any value in the preset value setting (Un\G4 and 5) of the QD64D2 in 32-

bit binary format.

At the rising edge (OFF ON) of the preset command (Y04), the preset value

setting (Un\G4 and 5) is stored in the present value (Un\G12 and 13).

The preset can be executed regardless of the ON/OFF status of the count

enable command (Y06).

5.4 Using the Preset Function 5 - 27

Show 10 more labels / short text on this page
Count enable command · Counter input pulse · Preset value setting · 2000 1000 · (Un\G4 and 5) · t* t* · Preset command · *t 2ms · Number Description · 2)
Page 92 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5 - 28 5.4 Using the Preset Function
Page 92 · click to enlarge
Page 92

(2) Operation when presetting by the external control signal

Apply ON voltage to the preset input terminal (PRST) for external input to execute preset. Operation example is indicated in Figure 5.13.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Operation when presetting by the external control signal diagram (page 92)
Fig. 28 · (2) Operation when presetting by the external contro…

2001 2000 0 1067 1066 1065 1002 1001 1000

Figure 5.13 Operation example of the preset function by external control signal

Table 5.11 Details of operation example of the preset function by external control signal

1. Write any value in the preset value setting (Un\G4 and 5) of the QD64D2 in 32-

bit binary format.

When the preset input terminal (PRST) is turned from OFF to ON, the preset

value setting (Un\G4 and 5) is stored in the present value (Un\G12 and 13).

The preset can be executed regardless of ON/OFF status of the count enable

command (Y06).

While the external preset request detection (X08) is ON, the preset cannot be

executed by turning ON the preset command (Y04) or the preset input terminal

(PRST).

When the external preset request detection reset command (Y08) is turned ON

and the external preset request detection (X08) turns OFF, the preset can be

executed.

POINT

When the external preset request detection (X08) is OFF, both the preset command (Y04) and the preset input terminal (PRST) are valid.

5 - 28 5.4 Using the Preset Function

Show 4 more labels / short text on this page
Number Description · 2) · 3) · 4)
Page 93 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.5 Using the Latch Counter Function 5 - 29
Page 93 · click to enlarge
Page 93

5.5 Using the Latch Counter Function

The latch counter function latches the present value (Un\G12 and 13) to the latch count value (Un\G14 and 15).

The following two methods are available for latch operation.

  • Turn ON the latch counter execution command (Y07) by the sequence program.
  • Turn ON the latch counter input terminal (LATCH) of external input.

In (1) below, I/O numbers (X/Y) and buffer memory addresses are listed for channel 1. For I/O numbers and buffer memory addresses used for channel 2 , refer to Section 3.3.1 and Section 3.4.1.

(1) Operation of the latch counter function

ON OFF

(Y06)

Present value (Un\G12 and 13)

1. 3)

Latch counter execution command

ON OFF

(Y07)

Latch counter input terminal

ON OFF

(LATCH)

Figure 5.14 Operation example of the latch counter function

5.5 Using the Latch Counter Function 5 - 29

Show 11 more labels / short text on this page
Count enable command · 4) · 1) · 1) · t* t* t* · t* · 2) · 3) · Latch count value · (Un\G14 and 15) · *t 2ms
Page 94 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5 - 30 5.5 Using the Latch Counter Function
Page 94 · click to enlarge
Page 94

Table 5.12 Details of operation example of the latch counter function

When the latch counter execution command (Y07) is turned from OFF to ON,

the present value (Un\G12 and 13) is stored in the latch count value (Un\G14

and 15).

When the latch counter input terminal (LATCH) is turned from OFF to ON, the

present value (Un\G12 and 13) is stored in the latch count value (Un\G14 and

15).

3. While the latch counter execution command (Y07) or the latch counter input

terminal (LATCH) is ON, the latch counter function cannot be executed.

4. The latch counter function can be executed regardless of ON/OFF status of the

count enable command (Y06).

5 - 30 5.5 Using the Latch Counter Function

Number Description · 1) · 2)

Page 95 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5.6 Response Delay Time 5 - 31
Page 95 · click to enlarge
Page 95

5.6 Response Delay Time

In the QD64D2, a response delays due to the cause indicated in (a) and (b) below.

(a) Scan time of the sequence program

It affects the delay of I/O signal. Use the direct access input (DX) or the direct access output (DY) to minimize the delay.

(b) Control cycle (1ms) of the QD64D2

Up to 2ms (1 control cycle 2) of delay occurs until the QD64D2 reads out the output signal and buffer memory updated by the sequence program and completes processing. Update timing of the I/O signal and buffer memory varies within the range of a control cycle.

For example, the following is the maximum delay time until the QD64D2 executes the latch counter function and updates the latch count value after the latch counter execution command (Y07) is turned ON by the sequence program.

Maximum delay time [ms] = [Time of (a)] + [Maximum time of (b)]

= Sequence program scan time + 2 [ms]

5.6 Response Delay Time 5 - 31

Page 96 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6 - 1 6.1 Utility Package Functions
Page 96 · click to enlarge
Page 96

6 UTILITY PACKAGE (GX Configurator-CT)

CHAPTER6 UTILITY PACKAGE (GX Configurator-CT)

6.1 Utility Package Functions

Table 6.1 shows the functions of the utility package.

Table 6.1 Utility package (GX Configurator-CT) functions list

(1) Make the initial settings for each channel to operate the QD64D2.

  • Set the values of the items where initial settings are required.
  • CH Ring counter lower limit
  • CH Ring counter upper limit
  • CH Preset value setting
  • CH Coincidence output No.1 point setting
  • CH Coincidence output No.2 point setting
  • CH Coincidence output No.1 point change request
  • CH Coincidence output No.2 point change request
  • CH Continuous comparison No.1 start point setting
  • CH Continuous comparison No.1 repeat point setting
  • CH Continuous comparison No.1 ON time setting
  • CH Continuous comparison No.1 point n setting (n: 1 to 16)
  • CH Continuous comparison No.2 start point setting
  • CH Continuous comparison No.2 repeat point setting
  • CH Continuous comparison No.2 ON time setting
  • CH Continuous comparison No.2 point n setting (n: 1 to 16)

Section 6.4

(2) Data with initial settings are registered to programmable controller CPU parameters and are

automatically written to the QD64D2 when the programmable controller CPU is in RUN.

(1) Set the buffer memory of the QD64D2 to which auto refresh is to be performed for each

  • channel.
  • CH Present value
  • CH Latch count value
  • CH Overflow detection flag
  • CH External I/O status monitor
  • CH Error code
  • CH Warning code
  • CH Continuous comparison No.1 point monitor during comparison
  • CH Continuous comparison No.2 point monitor during comparison

Section 6.5

(2) The values stored in the QD64D2 buffer memory with auto refresh setting are automatically

read when the programmable controller CPU executes the END instruction.

6 - 1 6.1 Utility Package Functions

Function Description Reference · Initial setting · Auto refresh

Page 97 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.1 Utility Package Functions 6 - 2
Page 97 · click to enlarge
Page 97

6 UTILITY PACKAGE (GX Configurator-CT)

Table 6.1 Utility package (GX Configurator-CT) functions list

  • (1) Monitors/tests the following buffer memories and I/O signals of the QD64D2.
  • Y device
  • CH Ring counter lower limit
  • CH Ring counter upper limit
  • CH Preset value setting
  • CH Coincidence output No.1 point setting
  • CH Coincidence output No.2 point setting
  • CH Coincidence output No.1 point change request
  • CH Coincidence output No.2 point change request
  • CH Continuous comparison No.1 start point setting
  • CH Continuous comparison No.1 repeat point setting
  • CH Continuous comparison No.1 ON time setting
  • CH Continuous comparison No.1 point n setting (n: 1 to 16)
  • CH Continuous comparison No.2 start point setting
  • CH Continuous comparison No.2 repeat point setting
  • CH Continuous comparison No.2 ON time setting
  • CH Continuous comparison No.2 point n setting (n: 1 to 16)

Section 6.6

  • (2) Monitors the following buffer memories of the QD64D2.
  • X device
  • CH Present value
  • CH Latch count value
  • CH Overflow detection flag
  • CH External I/O status monitor
  • CH Error code
  • CH Warning code
  • CH Continuous comparison No.1 point monitor during comparison
  • CH Continuous comparison No.2 point monitor during comparison

6.1 Utility Package Functions 6 - 2

Function Description Reference · Monitor/Test

Page 98 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (6) Number of parameters that can be set in GX Configurator-CT
Page 98 · click to enlarge
Page 98

6 UTILITY PACKAGE (GX Configurator-CT)

6.2 Installing and Uninstalling the Utility Package

For how to install or uninstall the utility package, refer to "Method of installing the MELSOFT Series" included in the utility package.

6.2.1 Handling precautions

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) Screen error of [Intelligent function module utility]

Insufficient system resource may cause the screen 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 other than "QCPU (Q mode)" is selected for [PLC series], or if no project is specified, the [Intelligent function module utility] will not start.

(b) Multiple [Intelligent function module utility] can be started.

However, [Open parameters] and [Save parameters] 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 screens cannot be displayed side by side, select a screen to be displayed on the top of others using the task bar.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (5) Switching between two or more Intelligent function module utilities diagram (page 98)
Fig. 29 · (5) Switching between two or more Intelligent functi…

(6) Number of parameters that can be set in GX Configurator-CT

When multiple intelligent function modules are mounted, set the parameters within the maximum number of settable parameters shown on the next page.

6. 3 6.2 Installing and Uninstalling the Utility Package 6.2.1 Handling precautions
Page 99 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — Q00J/Q00/Q01CPU 512 256 Q02/Q02H/Q06H/Q12H/Q25HCPU 512 256
Page 99 · click to enlarge
Page 99

6 UTILITY PACKAGE (GX Configurator-CT)

Table 6.2 Maximum number of settable parameters using GX Configurator

When intelligent function modules

Maximum number of parameter settings

are mounted 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/Q04UDEH/Q06UDEH/

Q10UDEH/Q13UDEH/Q20UDEH/

Q26UDEHCPU

Q50UDEH/Q100UDEHCPU Use prohibited Use prohibited MELSECNET/H remote I/O station 512 256

For example, if multiple intelligent function modules are mounted to the remote I/O station, configure the settings in GX Configurator so that the number of parameters set for all the intelligent function modules does not exceed the limit of the 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.

Table 6.3 Number of settable parameters per module

Target module Initial setting Auto refresh setting

QD64D2 6 (fixed) 16 (Max.)

Example) Counting the number of parameter settings in Auto refresh setting

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — Q00J/Q00/Q01CPU 512 256 Q02/Q02H/Q06H/Q12H/Q25HCPU 512 256 diagram (page 99)
Fig. 30

This one row is counted as one setting. Blank rows are not counted. Count up all the setting items on this screen, and add the total to the number of settings for other intelligent function modules to get a grand total.

Figure 6.1 Numeration for the number of parameters set in Auto refresh setting

6.2 Installing and Uninstalling the Utility Package 6.2.1 Handling precautions 6 - 4

4096 2048

Page 100 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.2.2 Operating environment
Page 100 · click to enlarge
Page 100

6 UTILITY PACKAGE (GX Configurator-CT)

6.2.2 Operating environment

This section explains the operating environment of the personal computer that runs GX Configurator-CT.

Table 6.4 Operating environment of the personal computer

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.2.2 Operating environment diagram (page 100)
Fig. 31 · 6.2.2 Operating environment

Installation (Add-in) target*1 Add-in to GX Developer Version 4 (English version) or later.*2

CPU Refer to Table 6.5 "Operating system and performance required for personal

Microsoft Windows NT Workstation Operating System Version 4.0 (English

Microsoft Windows XP Home Edition Operating System (English version)

Microsoft Windows Vista Home Basic Operating System (English version)

Microsoft Windows Vista Home Premium Operating System (English version)

* 1 Install GX Configurator-CT in GX Developer Version 4 or higher in the same language.

GX Developer (English version) and GX Configurator-CT (Japanese version) cannot be used in combination, and GX Developer (Japanese version) and GX Configurator-CT (English version) cannot be used in combination. * 2 GX Configurator-CT is not applicable to GX Developer Version 3 or earlier.

* 3 At least 15GB is required for Windows Vista .

* 4 Resolution of 1024 X 768 dots or more is recommended for Windows Vista .

6. 5 6.2 Installing and Uninstalling the Utility Package 6.2.2 Operating environment
Page 101 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 101 · click to enlarge
Page 101

6 UTILITY PACKAGE (GX Configurator-CT)

Table 6.5 Operating system and performance required for personal computer

Operating system Performance required for personal computer

Windows 95 Pentium 133 MHz or more 32 MB or more

Windows 98 Pentium 133 MHz or more 32 MB or more

Windows Me Pentium 150 MHz or more 32 MB or more

Windows NT Workstation 4.0 Pentium 133 MHz or more 32 MB or more

Windows 2000 Professional Pentium 133 MHz or more 64 MB or more

Windows XP Professional (Service Pack1 or later) Pentium 300 MHz or more 128 MB or more

Windows XP Home Edition (Service Pack1 or later) Pentium 300 MHz or more 128 MB or more

Windows Vista Home Basic Pentium 1GHz or more 1GB or more

Windows Vista Home Premium Pentium 1GHz or more 1GB or more

Windows Vista Business Pentium 1GHz or more 1GB or more

Windows Vista Ultimate Pentium 1GHz or more 1GB or more

Windows Vista Enterprise Pentium 1GHz or more 1GB or more

POINT

(1) The functions shown below are not available for Windows XP and Windows

Vista . If any of the following functions is attempted, this product may not operate normally.

  • Start of application in Windows compatible mode
  • Fast user switching
  • Remote desktop
  • Large fonts (Details setting of Display Properties)

Also, 64-bit version Windows XP and Windows Vista are not supported.

(2) Use a USER authorization or higher in Windows Vista .

6.2 Installing and Uninstalling the Utility Package 6.2.2 Operating environment 6 - 6

CPU Memory

Page 102 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6 - 7 6.3 Utility Package Operation 6.3.1 Common utility package operations
Page 102 · click to enlarge
Page 102

6 UTILITY PACKAGE (GX Configurator-CT)

6.3 Utility Package Operation

6.3.1 Common utility package operations

(1) Control keys

Table 6.6 shows the special keys that can be used in operations of the utility package and their applications.

Table 6.6 Control keys

Cancels the current entry in a cell.

ESC

Closes the window.

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 6.3 shows respective data or files are handled in which operation.

(3) 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.

Intelligent function module parameter

Figure 6.2 Project structure

6 - 7 6.3 Utility Package Operation 6.3.1 Common utility package operations

Show 14 more labels / short text on this page
Key Application · Tab · Ctrl · Delete · Back Space · Page · Up · Page Down · Enter · Project · Program · Parameter · PLC parameter · Network parameter
Page 103 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.3 Utility Package Operation 6.3.1 Common utility package operations 6 - 8
Page 103 · click to enlarge
Page 103

6 UTILITY PACKAGE (GX Configurator-CT)

(b) Steps 1) to 3) shown in Figure 6.3 are performed as follows:

1. From GX Developer, select:

[Project] [Open project]/[Save]/[Save as].

2. From the module selection screen of the utility, select:

[Intelligent function module parameter] [Open parameters]/[Save parameters].

3. From GX Developer, select:

[Online] [Read from PLC]/[Write to PLC] "Intelligent function module parameters". Or, from the module selection screen of the utility, select:

[Online] [Read from PLC]/[Write to PLC].

(4) Text file

(a) A text file can be created by clicking the button on the initial setting, Auto refresh setting, or Monitor/Test screen. 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 operation of . Therefore, create the

folder beforehand using Windows Explorer.

GX Developer/ GX Configurator-CT

A

A

B

QCPU

A: Intelligent function module parameters B: Data saved by "Make text file"

A

Figure 6.3 Correlation chart for data created with the utility package

6.3 Utility Package Operation 6.3.1 Common utility package operations 6 - 8

Show 7 more labels / short text on this page
Disk · Project · Project · 1) · 2) · Personal computer · 3)
Page 104 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6 - 9 6.3 Utility Package Operation 6.3.2 Operation overview
Page 104 · click to enlarge
Page 104

6 UTILITY PACKAGE (GX Configurator-CT)

6.3.2 Operation overview

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.3.2 Operation overview diagram (page 104)
Fig. 32 · 6.3.2 Operation overview

[Tools] - [Intelligent function utility] - [Start]

Screen for selecting a target

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.3.2 Operation overview diagram (page 104)
Fig. 33 · 6.3.2 Operation overview

Section 6.3.3.

Enter "Start I/O No.", and select "Module type" and "Module model name".

Initial setting Auto refresh

[Auto refresh setting] screen

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.3.2 Operation overview diagram (page 104)
Fig. 34 · 6.3.2 Operation overview

Refer to Refer to

Section 6.4. Section 6.5.

Figure 6.4 General operation

6 - 9 6.3 Utility Package Operation 6.3.2 Operation overview

Show 5 more labels / short text on this page
GX Developer screen · intelligent function module · Refer to · 1) · [Initial setting] screen
Page 105 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.3 Utility Package Operation 6.3.2 Operation overview 6 - 10
Page 105 · click to enlarge
Page 105

6 UTILITY PACKAGE (GX Configurator-CT)

[Select monitor/test module] screen

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 105)
Fig. 35 · 6 UTILITY PACKAGE (GX Configurator-CT)

Select a module to be monitored/tested.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 105)
Fig. 36 · 6 UTILITY PACKAGE (GX Configurator-CT)

Section 6.6.

Figure 6.4 General operation (continued)

6.3 Utility Package Operation 6.3.2 Operation overview 6 - 10

Show 5 more labels / short text on this page
1) · [Online] - [Monitor/Test] · Monitor/Test · [Monitor/Test] screen · Refer to
Page 106 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (1) Activation of other screens
Page 106 · click to enlarge
Page 106

6 UTILITY PACKAGE (GX Configurator-CT)

6.3.3 Starting the Intelligent function module utility

Start the utility from GX Developer to display the [Intelligent function module utility] screen. From this screen, [Initial setting], [Auto refresh setting], and [Select monitor/test module] (selection of the module which performs monitor/test) screens for the QD64D2 can be started. [Operating procedure]

[Tools] [Intelligent function utility] [Start] [Setting screen]

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.3.3 Starting the Intelligent function module utility diagram (page 106)
Fig. 37 · 6.3.3 Starting the Intelligent function module utili…

Figure 6.5 [Intelligent function module utility] screen

(1) Activation of other screens

(a) [Initial setting] screen

[Start I/O No.*] [Module type] [Module model name]

(b) [Auto refresh setting] screen

[Start I/O No.*] [Module type] [Module model name]

(c) Monitor/test module selection screen

* Enter the [Start I/O No.] in hexadecimal.

6. 11 6.3 Utility Package Operation 6.3.3 Starting the Intelligent function module utility

[Purpose] · [Explanation of items] · [Online] [Monitor/Test]

Page 107 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (3) Menu bar
Page 107 · click to enlarge
Page 107

6 UTILITY PACKAGE (GX Configurator-CT)

(2) Command buttons

Deletes the [Initial setting] and [Auto refresh setting] of the selected module.

Closes this screen.

(3) Menu bar

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (3) Menu bar diagram (page 107)
Fig. 38 · (3) Menu bar

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 dialog asking for file saving will appear.

[Save parameters] : Saves the parameter file.

[Delete parameters] : Deletes the parameter file.

[Open FB support parameter...] : Opens a FB support parameter file.

[Save as FB support parameter...] : Saves a FB support parameter.

[Exit] : Exits the [Intelligent function module utility].

[Monitor/Test]Activates the [Select monitor/test module]

screen.

[Read from PLC]Reads intelligent function module

parameters from the CPU module.

[Write to PLC]Writes intelligent function module

parameters to the CPU module.

6.3 Utility Package Operation 6.3.3 Starting the Intelligent function module utility 6 - 12

(a) File menu · (b) Online menu

Page 108 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6 UTILITY PACKAGE (GX Configurator-CT)
Page 108 · click to enlarge
Page 108

6 UTILITY PACKAGE (GX Configurator-CT)

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. (2) Reading/writing intelligent function module parameters from/to a

programmable controller using GX Developer

  • Intelligent function module parameters can be read from and written into

a programmable controller after having been saved in a file. • Set a target programmable controller CPU in GX Developer:

[Online] - [Transfer setup]. • When mounting the QD64D2 to the remote I/O station, use [Read from

PLC]/[Write to PLC] of GX Developer. (3) Checking the required utility

While the start I/O is displayed on the Intelligent function module utility setting screen, " * " may be displayed for the model name. 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] - [Intelligent function utility] - [Utility list...] in GX Developer.

6. 13 6.3 Utility Package Operation 6.3.3 Starting the Intelligent function module utility
Page 109 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.4 Initial Setting 6 - 14
Page 109 · click to enlarge
Page 109

6 UTILITY PACKAGE (GX Configurator-CT)

6.4 Initial Setting

Make [Initial setting] for each channel to operate the QD64D2. For parameter types of [Initial setting], refer to Section 6.1. This setting allows skipping sequence program setting. By making the initial settings, the sequence program settings become unnecessary. [Operating procedure]

"Start I/O No.*" "Module type" "Module model name"

* Enter the [Start I/O No.] in hexadecimal. [Setting screen]

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 109)
Fig. 39 · 6 UTILITY PACKAGE (GX Configurator-CT)
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 109)
Fig. 40 · 6 UTILITY PACKAGE (GX Configurator-CT)

Figure 6.6 [Initial setting] screen

6.4 Initial Setting 6 - 14

[Purpose] · Channel 1 · Channel 2

Page 110 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6 - 15 6.4 Initial Setting
Page 110 · click to enlarge
Page 110

6 UTILITY PACKAGE (GX Configurator-CT)

(1) Command buttons

Creates a file containing the screen data in text file format.

Saves the set data and ends the operation.

Cancels the setting and ends the operation.

POINT

Initial settings are stored to the intelligent function module parameters. The initial settings become effective after writing them to the CPU module and executing (1) or (2). (1) Change RUN/STOP switch on the CPU module STOP, RUN, STOP, and RUN

again. (2) After changing the switch to RUN, power OFF and then ON the CPU module

or reset it. When the initial setting contents are written with the sequence program, the initial settings are executed when the RUN/STOP switch is changed to STOP and RUN again, and initial setting values are written. When the CPU module is switched to STOP and RUN again, execute the initial settings with the sequence program again.

6 - 15 6.4 Initial Setting

[Explanation of items]

Page 111 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.5 Auto Refresh 6 - 16
Page 111 · click to enlarge
Page 111

6 UTILITY PACKAGE (GX Configurator-CT)

6.5 Auto Refresh

Set the buffer memory of the QD64D2 to which auto refresh is to be performed for each channel. For parameter types of [Auto refresh setting], refer to Section 6.1. This auto refresh setting eliminates the need for reading by sequence programs. [Operating procedure]

"Start I/O No.*" "Module type" "Module model name"

* Enter the [Start I/O No.] in hexadecimal. [Setting screen]

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 111)
Fig. 41 · 6 UTILITY PACKAGE (GX Configurator-CT)

Figure 6.7 [Auto refresh setting] screen

6.5 Auto Refresh 6 - 16

[Purpose]

Page 112 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6 - 17 6.5 Auto Refresh
Page 112 · click to enlarge
Page 112

6 UTILITY PACKAGE (GX Configurator-CT)

(1) Items

Module side Buffer size : Displays the buffer memory size of the setting item.

Module side Transfer word count

: Displays the number of words to be transferred.

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.

(2) Command buttons

Creates a file containing the screen data in text file format.

Saves the set data and ends the operation.

Cancels the setting and ends the operation.

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.

6 - 17 6.5 Auto Refresh

[Explanation of items]

Page 113 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.6 Monitoring/Test 6.6.1 Monitoring/test 6 - 18
Page 113 · click to enlarge
Page 113

6 UTILITY PACKAGE (GX Configurator-CT)

6.6 Monitoring/Test

6.6.1 Monitoring/test

Start buffer memory monitor/test and I/O signal monitor/test from this screen. [Operating procedure]

"Select monitor/test module" screen "Start I/O No.*" "Module type" "Module

model name" .

* 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]

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.6.1 Monitoring/test diagram (page 113)
Fig. 42 · 6.6.1 Monitoring/test

Selecting these buttons displays the following screens.

Preset function X/Y Monitor/Test

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.6.1 Monitoring/test diagram (page 113)
Fig. 43 · 6.6.1 Monitoring/test
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6.6.1 Monitoring/test diagram (page 113)
Fig. 44 · 6.6.1 Monitoring/test

Figure 6.8 [Monitor/Test] screen

6.6 Monitoring/Test 6.6.1 Monitoring/test 6 - 18

[Purpose] · 1)

Page 114 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6 - 19 6.6 Monitoring/Test 6.6.1 Monitoring/test
Page 114 · click to enlarge
Page 114

6 UTILITY PACKAGE (GX Configurator-CT)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 114)
Fig. 45 · 6 UTILITY PACKAGE (GX Configurator-CT)
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 114)
Fig. 46 · 6 UTILITY PACKAGE (GX Configurator-CT)

Coincidence output function 1)

Ring counter function Latch counter function

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 114)
Fig. 47 · 6 UTILITY PACKAGE (GX Configurator-CT)
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 6 UTILITY PACKAGE (GX Configurator-CT) diagram (page 114)
Fig. 48 · 6 UTILITY PACKAGE (GX Configurator-CT)

Figure 6.8 [Monitor/Test] screen (continued)

6 - 19 6.6 Monitoring/Test 6.6.1 Monitoring/test

Continuous comparison function

Page 115 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 6.6 Monitoring/Test 6.6.1 Monitoring/test 6 - 20
Page 115 · click to enlarge
Page 115

6 UTILITY PACKAGE (GX Configurator-CT)

(1) Items

Setting item : Displays I/O signals and buffer memory names.

Current value : Monitors the I/O signal status and present buffer memory values. Setting value : Enter or select values to be written into the buffer memory for test

(2) Command buttons

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 screen data in text file format. / Selects whether or not to monitor current values.

Performs a test on the selected items. To select more than one item, select them while holding down the

key. Closes the screen that is currently open and returns to the previous screen.

Remark

The following describes a method for using [Execute test] by an example when setting "3000" at [CH1 Preset value setting] and writing it to the QD64D2. (1) Click the [Preset function] button in [Setting value] field to display the [Preset

function] screen. (2) Click [Setting value] field on [CH1 Preset value setting], enter "3000", and

press the key.

At this point, the value has not been written to the QD64D2 yet. (3) Click [Setting value] field on [CH1 Preset command (Y04)] and select [ON].

At this point, the value has not been written to the QD64D2 yet. (4) Select [Setting value] fields entered by operations (2) and (3) while pressing

the key. Multiple items can be selected by dragging operation.

(Selected [Setting value] fields are inverted.)

(5) Click the button and write setting values of the items selected at

(4) to the QD64D2. After writing, the values entered at (2) and (3) are displayed at [Current value] fields.

6.6 Monitoring/Test 6.6.1 Monitoring/test 6 - 20

Show 4 more labels / short text on this page
[Explanation of items] · Ctrl · Enter · Ctrl
Page 116 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7 - 1 7.1 Programming Procedure
Page 116 · click to enlarge
Page 116

CHAPTER7 PROGRAMMING

This chapter describes the programs of the QD64D2. When applying any of the program examples introduced in this chapter to the actual system, verify the applicability and confirm that no problems will occur in the system control. 7.1 Programming Procedure

Create a program activating a count by the QD64D2 by the following procedures.

with sequence program.

with GX Configurator-CT.

Ring counter setting program

Preset value setting program

Coincidence output function setting program

Continuous comparison function setting program

*1: Created according to the functions used.

Turn OFF the counter value coincidence

NO

No.m when using the

YES

*2: Turn OFF the coincidence signal No. m reset command with coincidence output function program.

Coincidence signal No. m

Turn ON the initial setting

*3: If unnecessary on a program, the signal needs not to be created.

complete signal (any given device). *3

To the next page

Figure 7.1 Program creation procedures

7 - 1 7.1 Programming Procedure

Show 10 more labels / short text on this page
Program creation start · Initial setting program · Set buffer memory · *1 · *1 · *1 · coincidence output · function? · reset command ON · *2
Page 117 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.1 Programming Procedure 7 - 2
Page 117 · click to enlarge
Page 117

From the previous page

(1) Count control program

(a) Count operation program

(b) Preset execution program

NO

Use the latch counter function?

YES

(c) Latch counter function

(2) Counter value comparison program

*4: Required to use the counter value comparison function.

Setting of the counter value comparison function selection is

(a) Coincidence output function

*5: Added according to contents of the control (created when necessary).

Counter format setting is

(a) Overflow detection processing

Figure 7.1 Program creation procedures (continued)

7.1 Programming Procedure 7 - 2

Show 15 more labels / short text on this page
program · *4 · Continuous comparison function · Coincidence output function · (b) Continuous comparison · program · function program · (3) Auxiliary program · *5 · Ring counter · Linear counter · program · (b) Error/warning reset · program · Program creation end
Page 118 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7 - 3 7.2 For Use in Normal System Configuration
Page 118 · click to enlarge
Page 118

7.2 For Use in Normal System Configuration

This section describes a program example under the following system configuration and use conditions.

(1) System configuration

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (1) System configuration diagram (page 118)
Fig. 49 · (1) System configuration

Figure 7.2 System configuration

(2) Conditions for the intelligent function module switch setting

Table 7.1 Conditions for the intelligent function module switch setting

Channel Pulse input mode Counter format Counter value comparison function selection

CH1 CW/CCW Linear counter Coincidence output function

CH2 CW/CCW Ring counter Continuous comparison function

(3) Program conditions (intial setting)

(a) Preset the following values to each channel.

  • CH1: 0
  • CH2: - 50000

(b) CH1 uses the coincidence output function (refer to Section 5.3.1).*1

  • Coincidence output No.1 point setting: 10000
  • Coincidence output No.1 point change request: Change request
* 1This program example does not use the coincidence output No.2. CH1 counter value coincidence

No.2 (X05) turns ON at default.

(c) CH2 uses the continuous comparison function (refer to Section 5.3.2).*2

  • Continuous comparison No.1 start point setting: 1
  • Continuous comparison No.1 repeat point setting: 2
  • Continuous comparison No.1 ON time setting: 10ms
  • Continuous comparison No.1 point 1 setting: 20000
  • Continuous comparison No.1 point 2 setting: 40000

* 2: This program example does not use the continuous comparison No.2.

(d) CH2 uses the ring counter function (refer to Section 5.2.2).

  • Ring counter lower limit value: - 50000
  • Ring counter upper limit value: 50000

7 - 3 7.2 For Use in Normal System Configuration

Page 119 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.2.1 Before creating a program
Page 119 · click to enlarge
Page 119
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 7.2.1 Before creating a program diagram (page 119)
Fig. 50 · 7.2.1 Before creating a program

Mount the QD64D2 on the base unit and connect the external devices.

  • Wire encoders to all CH1 and CH2 (refer to Section 4.4.2).

7.2 For Use in Normal System Configuration 7.2.1 Before creating a program 7 - 4

Page 120 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — H
Page 120 · click to enlarge
Page 120

(2) Intelligent function module switch setting

Based on the setting conditions given in Section 7.2 (2), make the intelligent function module switch settings.

(a) Each switch setting

1. Switch 1: CH1 setting
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Intelligent function module switch setting diagram (page 120)
Fig. 51 · (2) Intelligent function module switch setting

Counter value comparison function selection CH1: 0 (Coincidence output function)

2. Switch 2: CH2 setting
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Intelligent function module switch setting diagram (page 120)
Fig. 52 · (2) Intelligent function module switch setting

Counter value comparison function selection CH2: 1 (Continuous comparison function)

3. Switch 3, switch 4, switch 5: Use prohibited (0: fixed)

0

H

* If any other than 0 is set to the switches from 1 to 5 where 0 is fixed, the functions of the QD64D2 are not guaranteed.

(b) Write the settings in (a) to the QD64D2.

On GX Developer's "Parameter setting" screen, select the "I/O assignment" tab, click "Switch setting", and make settings of Switch 1 to 5 on the screen shown below.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — H diagram (page 120)
Fig. 53
7. 5 7.2 For Use in Normal System Configuration 7.2.1 Before creating a program

Fixed at 0

Page 121 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.3 Programming Example when GX Configurator-CT is Used 7 - 6
Page 121 · click to enlarge
Page 121
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 7.3 Programming Example when GX Configurator-CT is Used diagram (page 121)
Fig. 54 · 7.3 Programming Example when GX Configurator-CT is U…

X02 CH1 counter value coincidence No.1 X0D CH1 error occurrence

Y06 CH1 count enable command Y07 CH1 latch counter execution command

Y0D CH1 error reset command X12 CH2 counter value coincidence No.1

Y14 CH2 preset command Y16 CH2 count enable command

X28 CH1 error/warning reset command signal X2A CH2 count operation start signal

X2B CH2 count operation stop signal X2D CH2 preset command signal

7.3 Programming Example when GX Configurator-CT is Used 7 - 6

Page 122 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7 - 7 7.3 Programming Example when GX Configurator-CT is Used
Page 122 · click to enlarge
Page 122

Table 7.2 List of devices (continued)

Device Function Y30 CH1 coincidence confirmation LED signal

QY40P (Y30 to Y3F) Y31*2 CH1 overflow occurrence confirmation LED signal

Y32 CH2 coincidence confirmation LED signal

* 1 Set this only when using the latch counter function. * 2 Set this only when using the linear counter function. * 3 Stores last occurred error and holds it even after error reset. * 4 Stores last occurred warning and holds it even after error reset. * 5 Set this only when using the coincidence output function. * 6 Set this only when using the continuous comparison function.

(2) Operating the GX Configurator-CT

Set the initial settings of CH1 and 2. Refer to Section 7.2 for the settings. For Initial setting in GX Configurator-CT, refer to Section 6.4.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Operating the GX Configurator-CT diagram (page 122)
Fig. 55 · (2) Operating the GX Configurator-CT

Figure 7.4 [Initial setting] screen

7 - 7 7.3 Programming Example when GX Configurator-CT is Used

(a) Initial setting

Page 123 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.3 Programming Example when GX Configurator-CT is Used 7 - 8
Page 123 · click to enlarge
Page 123

Table 7.3 Item on the [Initial setting] screen

Setting item Description Setting

Preset value setting Set preset value. 0

Set these only when

No.1 point setting

No.1 point change

Section 4.5) is the

function.

Ring counter lower limit

Set these only when

using the ring counter

Ring counter upper limit

function.

Preset value setting Set preset value. -50000

No.1 start point setting

Set these only when

No.1 repeat point

comparison No.1 setting

No.1 ON time setting 10

Section 4.5) is the

No.1 point 1 setting 20000

function.

No.1 point 2 setting 40000

(b) Auto refresh setting

Set devices storing the present values, latch count values, overflow detection flags, error codes, and warning codes of CH1 and CH2. For Auto refresh setting in GX Configurator-CT, refer to Section 6.5.

Figure 7.5 Auto refresh setting screen

7.3 Programming Example when GX Configurator-CT is Used 7 - 8

Show 23 more labels / short text on this page
Coincidence output · the counter value · comparison function · CH1 Initial setting · Coincidence output · selection (refer to · Change request · request · coincidence output · value · CH2 Initial setting · value 50000 · Continuous comparison · Continuous comparison · the counter value · setting · comparison function · CH2 continuous · Continuous comparison · selection (refer to · Continuous comparison · continuous comparison · Continuous comparison
Page 124 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7 - 9 7.3 Programming Example when GX Configurator-CT is Used
Page 124 · click to enlarge
Page 124

Table 7.4 Auto refresh setting

Description Setting value CH1 Present value D0

CH1 Latch count value*1 D2

CH1 Overflow detection flag*2 D4

CH2 Present value D8 CH1 Error code D118

CH1 Warning code D119 CH2 Error code D120

CH2 Warning code D121

* 1 Set this only when using the latch counter function. * 2 Set this only when using the linear counter function.

(c) Writing the intelligent function module parameters

Write the intelligent function module parameters to the CPU module. This operation is performed using the parameter setting module selection screen. For writing of intelligent function module parameters with GX Configurator-CT, refer to Section 6.3.3.

7 - 9 7.3 Programming Example when GX Configurator-CT is Used

Page 125 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.3 Programming Example when GX Configurator-CT is Used 7 - 10
Page 125 · click to enlarge
Page 125

(3) Programming example

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (3) Programming example diagram (page 125)
Fig. 56 · (3) Programming example

CH1 coincidence signal No.1 reset command (Y01) ON

CH1 count enable command (Y06) ON

CH1 count enable command (Y06) OFF

CH1 preset command (Y04) ON

CH1 latch counter execution command (Y07) ON

CH1 coincidence output enable command (Y03) ON

CH1 coincidence confirmation LED signal ON

CH1 counter value coincidence No.1 (X02) OFF

CH1 overflow occurrence confirmation LED signal ON

Stores CH1 error code to D5.

Stores CH1 warning code to D6.

CH1 error reset command (YD0) ON

7.3 Programming Example when GX Configurator-CT is Used 7 - 10

Page 126 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7 - 11 7.3 Programming Example when GX Configurator-CT is Used
Page 126 · click to enlarge
Page 126
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 7.3 Programming Example when GX Configurator-CT is Used diagram (page 126)
Fig. 57 · 7.3 Programming Example when GX Configurator-CT is U…

CH2 count enable command (Y16) ON

CH2 count enable command (Y16) OFF

CH2 preset command (Y14) ON

CH2 continuous comparison No.1 execution command (Y19) ON CH2 coincidence confirmation LED signal ON

Stores CH2 error code to D10.

Stores CH2 warning code to D11.

CH2 error reset command (Y1D) ON

7 - 11 7.3 Programming Example when GX Configurator-CT is Used

Page 127 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.4 Programming Example when GX Configurator-CT is not Used 7 - 12
Page 127 · click to enlarge
Page 127
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 7.4 Programming Example when GX Configurator-CT is not Used diagram (page 127)
Fig. 58 · 7.4 Programming Example when GX Configurator-CT is n…

7.4 Programming Example when GX Configurator-CT is not Used

D119 CH1 warning code D8,D9 CH2 present value storage

X02 CH1 counter value coincidence No.1 X0D CH1 error occurrence

Y06 CH1 count enable command Y07 CH1 latch counter execution command

Y0D CH1 error reset command X12 CH2 counter value coincidence No.1

Y14 CH2 preset command Y16 CH2 count enable command

7.4 Programming Example when GX Configurator-CT is not Used 7 - 12

Page 128 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7 - 13 7.4 Programming Example when GX Configurator-CT is not Used
Page 128 · click to enlarge
Page 128

Table 7.5 List of devices (continued)

X20 CH1 count operation start signal

X21 CH1 count operation stop signal

X22 CH1 present value read signal X23 CH1 preset command signal

X24*1 CH1 latch execution command signal

X25*1 CH1 latch count data read signal

X26*5 CH1 coincidence output enable signal

QX40 (X20 to X2F)

X27*5 CH1 coincidence LED clear signal

X28 CH1 error/warning reset command signal X2A CH2 count operation start signal

X2B CH2 count operation stop signal X2C CH2 present value read signal

X2D CH2 preset command signal

X2E*6 CH2 continuous comparison execution signal

X2F CH2 error/warning reset command signal Y30 CH1 coincidence confirmation LED signal

QY40P (Y30 to Y3F) Y31*2 CH1 overflow occurrence confirmation LED signal

Y32 CH2 coincidence confirmation LED signal

* 1 Set this only when using the latch counter function. * 2 Set this only when using the linear counter function. * 3 Stores last occurred error and holds it even after error reset. * 4 Stores last occurred warning and holds it even after error reset. * 5 Set this only when using the coincidence output function. * 6 Set this only when using the continuous comparison function.

7 - 13 7.4 Programming Example when GX Configurator-CT is not Used

Device Function

Page 129 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.4 Programming Example when GX Configurator-CT is not Used 7 - 14
Page 129 · click to enlarge
Page 129

(2) Program example

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Program example diagram (page 129)
Fig. 59 · (2) Program example

CH1 preset value setting

CH1 coincidence output No.1 point setting

CH1 coincidence output No.1 point change request

CH1 coincidence signal No.1 reset command (Y01) ON

CH2 ring counter lower limit value setting

CH2 ring counter upper/lower limit value setting

CH2 preset value setting

CH2 continuous comparison No.1 start point setting

CH2 continuous comparison No.1 repeat point setting

CH2 continuous comparison No.1 ON time setting

CH2 continuous comparison No.1 point 1 setting

CH2 continuous comparison No.1 point 2 setting

CH1 count enable command (Y06) ON

CH1 count enable command (Y06) OFF

Stores CH1 present value to D0.

CH1 preset command (Y04) ON

CH1 latch counter execution command (Y07) ON

Stores CH1 latch count value to D2.

7.4 Programming Example when GX Configurator-CT is not Used 7 - 14

Page 130 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7 - 15 7.4 Programming Example when GX Configurator-CT is not Used
Page 130 · click to enlarge
Page 130
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 7.4 Programming Example when GX Configurator-CT is not Used diagram (page 130)
Fig. 60 · 7.4 Programming Example when GX Configurator-CT is n…

CH1 coincidence output enable command (Y03) ON

CH1 coincidence confirmation LED signal ON

CH1 counter value coincidence No.1 (X02) OFF

Stores CH1 overflow status to D4.

CH1 overflow occurrence confirmation LED signal ON

Stores CH1 error code to D118.

Stores a value of D118 to D5 when error code is stored in D118. Stores CH1 warning code to D119. Stores a value of D119 to D6 when warning code is stored in D119. CH1 error reset command (YD0) ON

CH2 count enable command (Y16) ON

CH2 count enable command (Y16) OFF

Stores CH2 present value to D8.

CH2 preset command (Y14) ON

CH2 continuous comparison No.1 execution command (Y19) ON

CH2 coincidence confirmation LED signal ON

7 - 15 7.4 Programming Example when GX Configurator-CT is not Used

Page 131 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 7.4 Programming Example when GX Configurator-CT is not Used 7 - 16
Page 131 · click to enlarge
Page 131
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 7.4 Programming Example when GX Configurator-CT is not Used diagram (page 131)
Fig. 61 · 7.4 Programming Example when GX Configurator-CT is n…

Stores CH2 error code to D120.

Stores a value of D120 to D10 when error code is stored in D120. Stores CH2 warning code to D121. Stores a value of D121 to D11 when warning code is stored in D121. CH2 error reset command (Y1D) ON

7.4 Programming Example when GX Configurator-CT is not Used 7 - 16

Page 132 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (2) Program conditions
Page 132 · click to enlarge
Page 132

7.5 Program Example when the Coincidence Detection Interrupt Function is Used

This section describes a program example to start an interrupt program upon detecting coincidence of comparison point of channel 1.

(1) System configuration

QD64D2 (X/Y00 to X/Y1F)

Figure 7.6 System configuration when the coincidence detection interrupt function is used

(2) Program conditions

(a) Interrupt pointer setting

Set the values at [PLC parameter] - [PLC system] - [Intelligent function module setting] - [Interrupt pointer setting] in the [Project data list] on GX Developer. Set the values for this program example as shown below.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Program conditions diagram (page 132)
Fig. 62 · (2) Program conditions

Figure 7.7 Intelligent function module interrupt pointer setting

(b) Devices used by users

Table 7.6 Devices used by users

Interrupt enabled flag storage for the IMASK instruction D20 to D35

7. 17 7.5 Program Example when the Coincidence Detection Interrupt Function is Used

Description Setting value

Page 133 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 133 · click to enlarge
Page 133

(3) Program example

An interrupt must be enabled using the IMASK instruction before using an interrupt pointer.

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (3) Program example diagram (page 133)
Fig. 63 · (3) Program example

POINT

  • When the above described program is executed, only I50 interrupt

program is execution-enabled and other interrupt programs are execution-disabled. When executing interrupt programs other than I50, set the corresponding bit for interrupt program to be executed to 1 (enabled). • For details of the IMASK instruction, refer to the following manual.

MELSEC-Q/L Programming Manual (Common Instruction)

7.5 Program Example when the Coincidence Detection Interrupt Function is Used 7 - 18

QD64D2 program · Interrupt program

Page 134 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (2) Checking error codes
Page 134 · click to enlarge
Page 134

CHAPTER8 TROUBLESHOOTING

This chapter describes the troubleshooting, error code and warning code of the QD64D2. Before performing a troubleshooting for the QD64D2, check that the CPU module does not have any errors. For error details of the CPU module, refer to the following manual.

QCPU User's Manual(Hardware Design, Maintenance and Inspection)

8.1 Error Processing and Recovery Methods

8.1.1 Checking error description using System Monitor of GX Developer

Error codes can be checked by selecting [Module's Detailed Information...] on the [System Monitor] screen of GX Developer.

(1) GX Developer operation

Select [Diagnostics] [System Monitor] [QD64D2]

(2) Checking error codes

Error code that is stored in the error code (Un\G18) is displayed in the [Present Error] field.(Either one of channels 1 and 2)

(By clicking the button, error code of the present error on each channel

is displayed in order of channel 1 to 2. Note that this is not a history.)

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (2) Checking error codes diagram (page 134)
Fig. 64 · (2) Checking error codes

The error codes in Section 8.11.1 "Error code list" are shown in decimal notation. Select [DEC] because the initial value is set to [HEX].

Section 8.11.1

Indicates error code 500 "ring counter upper/lower limit value setting error".

Error code of the channel

Channel number that has an error

[2500] indicates that the error code 500 is occurring on CH2.

Figure 8.1 [Module's Detailed Information] screen

8. 1 8.1 Error Processing and Recovery Methods 8.1.1 Checking error description using System Monitor of GX Developer

[Display format] · [Display contents] · [Present Error]

Page 135 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — (3) Checking Module's Detailed Information
Page 135 · click to enlarge
Page 135

(3) Checking Module's Detailed Information

Check the status of LEDs and intelligent function module switch setting, and module information in [H/W status] on the [Module's Detailed Information] screen which can be displayed from [System Monitor] of GX Developer.

Select [Diagnostics] [System monitor...] [QD64D2]

[Module's Detailed Information...]

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — (3) Checking Module's Detailed Information diagram (page 135)
Fig. 65 · (3) Checking Module's Detailed Information

Figure 8.2 [H/W Information] screen

[H/W LED Information] The following information is displayed on the [H/W LED Information] screen.

Table 8.1 H/W LED Information

Item Signal Value RUN "RUN" LED on the QD64D2 0: The LED is OFF.

1. The LED is ON. ERR "ERR." LED on the QD64D2 FUSE "FUSE" LED on the QD64D2

[H/W SW Information] The setting status of the intelligent function module switches is displayed.

Table 8.2 H/W SW Information

CH1 CH1 setting Switch 1

CH2 CH2 setting Switch 2 NOP1 Switch 3

For details, refer to Section 4.5

Intelligent Function Module Switch

NOP2 Switch 4 NOP3 Switch 5

Setting.

8.1 Error Processing and Recovery Methods 8.1.1 Checking error description using System Monitor of GX Developer 8 - 2

[Setting procedure] · Item Signal Corresponding · switch Value

Page 136 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 136 · click to enlarge
Page 136

8.1.2 When the RUN LED turns OFF

Table 8.3 When the RUN LED turns OFF

Check item Action Reference

Is the power supplied? Check if the service voltage of the power supply

module is within the rated range.

Calculate the consumption current of the modules

Is the capacity of the power supply module

mounted to the base unit such as CPU module, I/O

module, and intelligent function module, and check

that the current capacity is sufficient.

Reset the programmable controller CPU and check

that the RUN LED turns ON. If the RUN LED

remains OFF even doing so, the QD64D2 is at

Is there a watchdog timer error?

Section 4.3

fault. Please consult your local Mitsubishi

representative, explaining a detailed description of

the problem.

Are the modules correctly mounted to the base

unit? Check the module mounting status. Section 4.1

8.1.3 When the RUN LED and ERR.LED turn ON

Table 8.4 When the RUN LED and ERR.LED turn ON

Check item Action Reference

Is there any errors? Check the error code (Un\G18) of channels in use

and take action described in Error Code List. Section 8.11.1

8.1.4 When the RUN LED and FUSE LED turn ON

Table 8.5 When the RUN LED and FUSE LED turn ON

Check item Action Reference

Please consult your local Mitsubishi

Is the fuse of the external coincidence output part

representative, explaining a detailed description of

Section 4.3

the problem.

POINT

Even if the fuse of the external coincidence output part is blown, the FUSE LED does not turn ON unless a voltage is applied to the external coincidence output power supply terminal.

8. 3 8.1 Error Processing and Recovery Methods 8.1.2 When the RUN LED turns OFF

sufficient? · blown?

Page 137 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 8.2 When the QD64D2 does not Start Counting 8 - 4
Page 137 · click to enlarge
Page 137
Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — 8.2 When the QD64D2 does not Start Counting diagram (page 137)
Fig. 66 · 8.2 When the QD64D2 does not Start Counting

Table 8.6 When the QD64D2 does not start counting

If they turn ON, check the external wiring, encoder

Do the LEDs of A and B turn ON by directly

applying a voltage to the pulse input terminals of

If they remain OFF, it is a hardware failure. Please

A and B using such as a voltage stabilizer?

Is the external wiring of A and B correct? Check the external wiring and correct the error.

Is the count enable command (Y06) turned ON? Turn ON the count enable command (Y06) by the

Are the pulse input method and pulse input mode

Match the pulse input method with the pulse input

Table 8.7 When the QD64D2 does not normally count

When the count value that is same with another

If they differ, it is a hardware failure. Please consult

Use the shielded twisted pair cables for pulse input

Bundle the pulse input lines and put them in a

single tube, and keep a distance of 150mm (5.91

inch) or more with the power line even inside the

Separate the ground cable of the QD64D2 from the

If the QD64D2 case touches to the ground part,

Are the count value data treated in 32-bit binary in

Is the preset performed out of the count range of

Perform the preset within the count range of the

8.2 When the QD64D2 does not Start Counting 8 - 4

Page 138 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — CHAPTER 7
Page 138 · click to enlarge
Page 138

8.4 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) does not Turn ON/OFF

8.4.1 When selecting the coincidence output function

(1) When the counter value coincidence does not turn ON

Table 8.8 When the counter value coincidence does not turn ON (when selecting the coincidence output function)

Check item Action Reference

After changing the coincidence output No.m point

Has the coincidence output No.m point change

setting (Un\G6 and 7, and Un\G8 and 9), set the

request (Un\G10 and 11) been set to "1" (Change

Section 3.4

coincidence output No.m point change request to

"1".

Is the coincidence signal No.m reset command

Turn OFF the coincidence signal No.m reset

command. Section 3.3

(Y01 and Y02) ON?

Has the coincidence output No.m point setting

(Un\G6 and 7, and Un\G8 and 9) been set to out

Set the coincidence output No.m point setting

value to within the count range of the ring counter. Section 3.4

of the count range of the ring counter?

(Only for the ring counter)

"m" indicates the coincidence output number.

(2) When the counter value coincidence does not turn OFF

Table 8.9 When the counter value coincidence does not turn OFF (when selecting the coincidence output function)

Check item Action Reference Is the ON time of the coincidence signal No.m

Set the ON time of the coincidence signal No.m

reset command to 2ms or longer. Section 3.3

reset command (Y01 and Y02) 2ms or longer?

"m" indicates the coincidence output number.

8.4.2 When selecting the continuous comparison function

Table 8.10 When the counter value coincidence does not turn ON/OFF (when selecting the continuous comparison function)

Check item Action Reference Does the present value (Un\G12 and 13) coincide

Change the setting so that the present value

with the continuous comparison No.m point n

coincides with the continuous comparison No.m

setting (Un\G54 to 85, and 104 to 135) after an

Section 5.3.2

point n setting after an elapse of (continuous

elapse of (continuous comparison No.m ON time

comparison No.m ON time setting + 1ms).

setting (Un\G52 and 102) + 1ms)?

Has the continuous comparison No.m point n

Set the continuous comparison No.m point n

setting been set to out of the count range of the

Section 5.2.1

setting value to within the count range of the ring

Section 5.3.2

counter.

(Only for the ring counter function)

Does the relation of the scan time in the

Use the direct access input (DX) and so on to read

sequence program fall under the following

out the counter value coincidence No.m (X02 and

Section 5.3.2

X05) within the time set by the continuous

CHAPTER 7

Scan time > continuous comparison No.m ON

comparison No.m ON time setting (Un\G52 and

time setting (Un\G52 and 102)

102).

"m" indicates the continuous comparison number.

8. 5 8.4 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) does not Turn ON/OFF

request)? · ring counter? · condition?

Page 139 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — CHAPTER 7
Page 139 · click to enlarge
Page 139

8.5 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) are Turned ON, but the Coincidence Output No.1 Terminal (EQU1) and Coincidence Output No.2 Terminal (EQU2) do not Turn ON

Table 8.11 When the counter value coincidence No.1 (X02) or counter value coincidence No.2 (X05) are turned ON but the

coincidence output No.1 terminal (EQU1) and coincidence output No.2 terminal (EQU2) do not turn ON

Check item Action Reference

Is the coincidence output enable command (Y03)

Turn ON the coincidence output enable command

Section 3.3

(Y03).

CHAPTER 7

(Only for the coincidence output function)

Is a voltage applied to the external coincidence

Apply a voltage to the external coincidence output

output power supply terminal.

power supply terminal.

If the FUSE LED is ON, the fuse is blown.

Please consult your local Mitsubishi

Is the fuse blown?

Section 3.5

representative, explaining a detailed description of

Section 4.4

the problem. Is the external wiring of the coincidence output

No.1 terminal (EQU1) and coincidence output

Check the external wiring and correct the error.

No.2 terminal (EQU2) correct?

8.6 When the Coincidence Detection Interrupt does not Occur

Table 8.12 When the coincidence detection interrupt does not occur

Check item Action Reference

Change the CPU module to the one which

Does the CPU module support the coincidence

supports the intelligent function module event

Section 2.1 (1)

interrupt.

If the setting made on [Interrupt pointer setting] of

Check the intelligent function module interrupt

[Intelligent function module setting ] in [PLC

pointer setting. Section 5.3

Is the way to use the program execution control

instruction, such as IMASK, correct? Check the sequence program. Section 5.3

CHAPTER 7

Reset (OFF) the counter value coincidence No.m

Is the counter value coincidence (X02 and X05)

(X02 and X05) by the coincidence signal No.m

Section 3.3.2

reset command (Y01 and Y02) for the

(Only for the coincidence output function)

corresponding number.

8.5 When the Counter Value Coincidence No.1 (X02) or Counter Value Coincidence No.2 (X05) are Turned ON, but the Coincidence Output No.1 Terminal (EQU1) and Coincidence Output No.2 Terminal (EQU2) do 8 - 6

Show 4 more labels / short text on this page
turned ON? · detection interrupt function? · parameter] correct? · still ON?
Page 140 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 8.7 When the Coincidence Output Test Function Cannot be Executed
Page 140 · click to enlarge
Page 140

8.7 When the Coincidence Output Test Function Cannot be Executed

Table 8.13 When the coincidence output function cannot be executed

Check item Action Reference

While selecting the coincidence output function,

Has the counter value comparison function

the coincidence output test function cannot be

selection been set to the coincidence output

used. To perform wiring check while selecting a

Section 5.3.1 (2)

coincidence output function, refer to procedure in

Section 5.3.1 (2).

8. 7 8.7 When the Coincidence Output Test Function Cannot be Executed

function?

Page 141 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ON?
Page 141 · click to enlarge
Page 141

8.8 When the Preset Cannot be Executed

8.8.1 When the preset cannot be executed by the preset command (Y04)

Table 8.14 When the preset cannot be executed by the preset command (Y04)

Check item Action Reference

Is the ON and OFF time of the preset command

(Y04) 2ms or longer? Set the ON and OFF time 2ms or longer.

Turn ON the external preset request detection

reset command (Y08), and reset (OFF) the

Section 3.3 Is the external preset request detection (X08)

external preset request detection (X08).

ON?

At the time, set the ON and OFF time of the

external preset request detection reset command

(Y08) 2ms or longer.

8.8.2 When the preset cannot be executed by the preset input terminal (PRST)

Table 8.15 When the preset cannot be executed by the preset input terminal (PRST)

Check item Action Reference

Is the external wiring of the preset input terminal

(PRST) correct? Check the external wiring and correct the error. Section 3.5

Is the interval after changing the preset value

setting (Un\G4 and 5) until turning ON the preset

Set the interval 2ms or longer. Section 3.4

input terminal (PRST) 2ms or longer?

Turn ON the external preset request detection

reset command (Y08), and reset (OFF) the

Is the external preset request detection (X08)

external preset request detection (X08).

Section 3.3

ON?

At the time, set the ON and OFF time of the

external preset request detection reset command

(Y08) longer than 2ms.

8.8 When the Preset Cannot be Executed 8.8.1 When the preset cannot be executed by the preset command (Y04) 8 - 8

Page 142 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — ON?
Page 142 · click to enlarge
Page 142

8.9 When the Latch Counter Function Cannot be Executed

8.9.1 When the latch counter function cannot be executed by the latch counter execution command (Y07)

Table 8.16 When the latch counter function cannot be executed by the latch counter execution command (Y07)

Check item Action Reference

Is the ON and OFF time of the latch counter

execution command (Y07) longer than 2ms? Set the ON and OFF time 2ms or longer. Section 3.3

Is the latch counter input terminal (LATCH) ON? Turn OFF the latch counter input terminal

(LATCH). Section 5.5

8.9.2 When the latch counter function cannot be executed by the latch counter input terminal (LATCH)

Table 8.17 When the latch counter function cannot be executed by the latch counter input terminal (LATCH)

Check item Action Reference

Is the external wiring of the latch counter input

terminal (LATCH) correct? Check the external wiring and correct the error. Section 3.5

Is the latch counter execution command (Y07)

Turn OFF the latch counter execution command

(Y07). Section 5.5

ON?

8.10 When the Error Code (Un\G18)/Warning Code (Un\G19) Cannot be Reset

Table 8.18 When the error code (Un\G18)/warning code (Un\G19) cannot be reset

Check item Action Reference

Is the cause of the error/warning fixed? Refer to the description and action columns in error

code and warning code list, and fix the cause. Section 8.11

Is the ON and OFF time of the error reset

command (Y0D) 2ms or longer. Set the ON and OFF time 2ms or longer. Section 3.3

8. 9 8.9 When the Latch Counter Function Cannot be Executed 8.9.1 When the latch counter function cannot be executed by the latch counter execution command (Y07)
Page 143 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 8.11.1 Error code list
Page 143 · click to enlarge
Page 143

8.11 Action and Handling of Errors

8.11.1 Error code list

This section describes the descriptions and corrective actions for the errors detected by the QD64D2.

Table 8.19 Error code list

code Description Action Operation at error

Error channel Other channels

0 (Normal)

The present value (Un\G12 and 13) exceeded the

Perform the preset.

following range.

(Refer to Section 5.4.)

counting.

(Only for the linear counter function)

[Continuous comparison No.m start point setting error]

The continuous comparison No.m start point setting

Set a value from 1 to 16.

(Un\G50 and 100) is set to other than 1 to 16.

"m" indicates the continuous comparison number

where the error occurred.

[Continuous comparison No.m repeat point setting

be started. (The

Set a value from 1 to 16. The continuous comparison No.m repeat point setting

(Un\G51 and 101) is set to other than 1 to 16.

channels.

"m" indicates the continuous comparison number

where the error occurred.

[Continuous comparison No.m ON time setting error]

number.)

Set a value from 1 to 10. The continuous comparison No.m ON time setting

(Un\G52 and 102) is set to other than 1 to 10.

"m" indicates the continuous comparison number

where the error occurred.

[Count enable execution not possible error]

The count enable command (Y06) is turned ON while

Turn OFF the coincidence

one of the following is ON.

output test command which is

  • Coincidence output No.1 test command (Y0B)

ON.

  • Coincidence output No.2 test command (Y0C)

counting.

8.11 Action and Handling of Errors 8.11.1 Error code list 8 - 10

Show 21 more labels / short text on this page
Error · [Overflow error] · The linear counter · function stops · -2147483648 to 2147483647 · 20m · The continuous · comparison cannot · error] · The error does · error does not · 21m · not affect other · affect the other · continuous · comparison · 22m · The linear counter · function and ring · counter function · does not start
Page 144 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — CPU]
Page 144 · click to enlarge
Page 144

Table 8.19 Error code list (continued)

code Description Action Operation at error

Error channel Other channels

[Continuous comparison No.m execution not possible

The continuous comparison No.m execution

Turn OFF the coincidence

be started. (The

command (Y09 and Y0A) is turned ON while one of

output test command, then turn

the following is ON.

ON the continuous comparison

  • Coincidence output No.1 test command (Y0B)

execution command.

  • Coincidence output No.2 test command (Y0C)

"m" indicates the continuous comparison number

number.)

where the error occurred.

channels.

[Ring counter upper/lower limit value setting error]

The count enable command (Y06) is turned ON

Set a value as follows.

under the following condition.

(Lower limit value Upper limit

(Ring counter lower limit value (Un\G0 and 1)) >

start counting.

(Ring counter upper limit value (Un\G2 and 3))

(Only for the ring counter function)

Set a correct value in GX

Developer and perform [Write to

An invalid value is set in the switch setting for

PLC]. After that, power OFF

intelligent function module in GX Developer.

then ON the programmable

controller CPU or reset it. (Refer

to Section 4.5.)

[Programmable controller CPU error]

An error occurred in the programmable controller

CPU.

Power OFF then ON the

[Watchdog timer error of programmable controller

programmable controller CPU or

CPU]

reset it.

A watchdog timer error occurred in the programmable

controller CPU.

  • All functions and counting are

Power OFF then ON the

stopped.

programmable controller CPU or

  • Updating the external I/O status

An error occurred in the module.

reset it.

monitor is stopped.

If an error occurs again, replace

  • The module READY (X00) turns

the module.

OFF.

850 [Hardware error] Replace the module. A hardware error occurred.

  • For replacement of fuse, please

consult your local Mitsubishi

representative.

  • When temporarily using the

The fuse of the external coincidence output part is

module with a blown fuse, do

blown.

not apply a voltage to the

power supply terminal and

power OFF then ON or reset

CPU.

8. 11 8.11 Action and Handling of Errors 8.11.1 Error code list
Show 19 more labels / short text on this page
Error · The continuous · error] · comparison cannot · error does not · 31m · affect the other · continuous · The error does · comparison · not affect other · The ring counter · function does not · value) · [Switch setting error] · [Module error] · [Blown fuse error] · external coincidence output · the programmable controller
Page 145 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 145 · click to enlarge
Page 145

POINT

(1) When another error occurs during error occurrence, take the following action.

  • When an error code from 100 to 500 occurs, the latest error code is

ignored and the error code stored before the latest error code is held. • When an error code from 810 to 860 occurs, the error code is overwritten

as the latest one. (2) The error code 810 is stored for each channel, and the error code from 820 to

860 is stored for all channels. (3) After fixing the cause of the error, reset the error by the error reset command

(Y0D). If the cause of the error is not fixed, the error is detected again.

8.11 Action and Handling of Errors 8.11.1 Error code list 8 - 12

Page 146 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — POINT
Page 146 · click to enlarge
Page 146

8.11.2 Warning code list

This section describes the descriptions and corrective actions for the warnings detected by the QD64D2.

Table 8.20 Warning code list

code Description Action Operation at warning

0 (Normal)

[Coincidence output No.m test output not possible]

The coincidence output No.m test command (Y0B

and Y0C) is turned ON while one of the following is

ON.

  • Count enable command (Y06)
  • Continuous comparison No.1 execution command

be started.

Turn OFF the all signals listed

(Y09)

on the left.

  • During continuous comparison No.1 execution (X09)

not affect the other

other channels.

  • Continuous comparison No.2 execution command

(Y0A)

number.)

  • During continuous comparison No.2 execution (X0A)

"m" indicates the continuous comparison number

where the warning occurred.

POINT

  • When another warning occurs during warning occurrence, the warning

code is overwritten as the latest one. • After fixing the cause of the warning, reset the warning by the error reset

command (Y0D). If the cause of the warning is not fixed, the warning is detected again.

8. 13 8.11 Action and Handling of Errors 8.11.2 Warning code list
Show 7 more labels / short text on this page
The coincidence · output test cannot · The warning · 3m · (The warning does · does not affect · coincidence output
Page 147 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — Appendix 1 External Dimensions App - 1
Page 147 · click to enlarge
Page 147

APPENDICES

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) — APPENDICES diagram (page 147)
Fig. 67

Appendix 1 External Dimensions App - 1

Page 148 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — APPENDICES
Page 148 · click to enlarge
Page 148

APPENDICES

Memo

App - 2 Appendix 2 Difference with the QD62D

Page 151 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — 5. Changes in product specifications
Page 151 · click to enlarge
Page 151

Warranty

Please confirm the following product warranty details before using this product.

1. Gratis Warranty Term and Gratis Warranty Range

If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company. However, if repairs are required onsite at domestic or overseas location, expenses to send an engineer will be solely at the customer's discretion. Mitsubishi shall not be held responsible for any re-commissioning, maintenance, or testing on-site that involves replacement of the failed module. [Gratis Warranty Term] The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place. Note that after manufacture and shipment from Mitsubishi, the maximum distribution period shall be six (6) months, and the longest gratis warranty term after manufacturing shall be eighteen (18) months. The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs. [Gratis Warranty Range] (1) The range shall be limited to normal use within the usage state, usage methods and usage environment, etc.,

which follow the conditions and precautions, etc., given in the instruction manual, user's manual and caution labels on the product. (2) Even within the gratis warranty term, repairs shall be charged for in the following cases. 1. Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused by the user's hardware or software design. 2. Failure caused by unapproved modifications, etc., to the product by the user. 3. When the Mitsubishi product is assembled into a user's device, Failure that could have been avoided if functions or structures, judged as necessary in the legal safety measures the user's device is subject to or as necessary by industry standards, had been provided. 4. Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced. 5. Failure caused by external irresistible forces such as fires or abnormal voltages, and Failure caused by force majeure such as earthquakes, lightning, wind and water damage. 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user.

2. Onerous repair term after discontinuation of production

(1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is

discontinued. Discontinuation of production shall be notified with Mitsubishi Technical Bulletins, etc. (2) Product supply (including repair parts) is not available after production is discontinued.

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.

4. Exclusion of loss in opportunity and secondary loss from warranty liability

Regardless of the gratis warranty term, Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi, loss in opportunity, lost profits incurred to the user by Failures of Mitsubishi products, special damages and secondary damages whether foreseeable or not , compensation for accidents, and compensation for damages to products other than Mitsubishi products, replacement by the user, maintenance of on-site equipment, start-up test run and other tasks.

5. Changes in product specifications

The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice.

Page 152 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — SH(NA)-080726ENG-B
Page 152 · click to enlarge
Page 152

Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium is a trademark of Intel Corporation in the United States and other countries. Ethernet is a trademark of Xerox Corporation. All other company names and product names used in this manual are trademarks or registered trademarks of their respective companies. SPREAD Copyright (C) 1996 Farpoint Technologies, Inc.

SH(NA)-080726ENG-B

Page 153 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — Warranty
Page 153 · click to enlarge
Page 153
Page 153 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — Warranty
Page 154 of the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) user manual — SH(NA)-080726ENG-B(1004)MEE MODEL: QD64D2-U-SY-E MODEL CODE: 13JZ07
Page 154 · click to enlarge
Page 154

SH(NA)-080726ENG-B(1004)MEE MODEL: QD64D2-U-SY-E MODEL CODE: 13JZ07

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.

Specifications subject to change without notice.

Display codes

Error codes

What the fault codes shown on the display mean and how to clear them.

CodeMeaningFix
X05within the time set by the continuous p.138
0(Normal)---- p.143
100[Overflow error] The present value (Un\G12 and 13) exceeded the following range. -2147483648 to 2147483647 (Only for the linear counter function)Perform the preset. (Refer to Section 5.4.) p.143
20m[Continuous comparison No.m start point setting error] The continuous comparison No.m start point setting (Un\G50 and 100) is set to other than 1 to 16. "m" indicates the continuous comparison number where the error occurred.Set a value from 1 to 16. p.143
21m[Continuous comparison No.m repeat point setting error] The continuous comparison No.m repeat point setting (Un\G51 and 101) is set to other than 1 to 16. "m" indicates the continuous comparison number where the error occurred.Set a value from 1 to 16. p.143
22m[Continuous comparison No.m ON time setting error] The continuous comparison No.m ON time setting (Un\G52 and 102) is set to other than 1 to 10. "m" indicates the continuous comparison number where the error occurred.Set a value from 1 to 10. p.143
300[Count enable execution not possible error] The count enable command (Y06) is turned ON while one of the following is ON. •Coincidence output No.1 test command (Y0B) •Coincidence output No.2 test command (Y0C)Turn OFF the coincidence output test command which is ON. p.143
31m[Continuous comparison No.m execution not possible error] The continuous comparison No.m execution command (Y09 and Y0A) is turned ON while one of the following is ON. •Coincidence output No.1 test command (Y0B) •Coincidence output No.2 test command (Y0C) "m" indicates the continuous comparison number where the error occurred.Turn OFF the coincidence output test command, then turn ON the continuous comparison execution command. p.144
500[Ring counter upper/lower limit value setting error] The count enable command (Y06) is turned ON under the following condition. (Ring counter lower limit value (Un\G0 and 1)) > (Ring counter upper limit value (Un\G2 and 3)) (Only for the ring counter function)Set a value as follows. (Lower limit value Upper limit value) p.144
810[Switch setting error] An invalid value is set in the switch setting for intelligent function module in GX Developer.Set a correct value in GX Developer and perform [Write to PLC]. After that, power OFF then ON the programmable controller CPU or reset it. (Refer to Section 4.5.) p.144
820[Programmable controller CPU error] An error occurred in the programmable controller CPU.Power OFF then ON the programmable controller CPU or reset it. p.144
830[Watchdog timer error of programmable controller CPU] A watchdog timer error occurred in the programmable controller CPU. p.144
840[Module error] An error occurred in the module.Power OFF then ON the programmable controller CPU or reset it. If an error occurs again, replace the module. p.144
850[Hardware error] A hardware error occurred.Replace the module. p.144
860[Blown fuse error] The fuse of the external coincidence output part is blown.•For replacement of fuse, please consult your local Mitsubishi representative. •When temporarily using the module with a blown fuse, do not apply a voltage to the external coincidence output power supply terminal and power OFF then ON or reset the programmable controller CPU. p.144

Ask about the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2)

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2)

Be the first to ask — other owners or our team will answer.

Original document

Mitsubishi Electronics MELSEC-Q Counter Module (QD64D2) manual PDF

154 pages·3.3 MB·Drums·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…