4Mpps Capable High-Speed Counter Module User's Manual -QD64D2 -GX Configurator-CT (SW0D5C-QCTU-E)
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: " Note WARNING" and " CAUTION".
[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.
[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.
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.
REVISIONS * The manual number is given on the bottom left of the back cover. Print date *Manual number Revision Dec., 2008 SH(NA)-080726ENG-A First edition Apr., 2010 SH(NA)-080726ENG-B Correction 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.
INTRODUCTION Thank you for purchasing the Mitsubishi programmable controller MELSEC-Q series. Before using the product, please read this manual carefully to develop full familiarity with the functions and performance of the Q series programmable controller to ensure correct use.
CHAPTER4 PROCEDURES AND SETTINGS BEFORE OPERATION 4 - 1 to 4 - 12 4.1 Handling Precautions •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 4 - 1 4.2 Procedures before Operation•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••4 - 2 4.3 Part Names ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••4 - 3 4.
7.2 For Use in Normal System Configuration ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••7 - 3 7.2.1 Before creating a program•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••7 - 4 7.3 Programming Example when GX Configurator-CT is Used ••••••••••••••••••••••••••••••••••••••••••••••••7 - 6 7.4 Programming Example when GX Configurator-CT is not Used•••••••••••••••••••••••••••••••••••••••••• 7 - 12 7.
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).
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 Description abbreviation QD64D2 Abbreviation for the type QD64D2 4Mpps capable high-speed counter module CH Generic term for CH1 and CH2 Coincidence signal No. m Generic term for the coincidence signal No. 1 and the coincidence signal No. 2 Coincidence output No.
OVERVIEW 1 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 input •1 multiple of 2 phases pulse input •2 multiples of 2 phases pulse •4 multiples of 2 phases pulse input input input SPECIFICATIONS Figure 1.
1 1.1 OVERVIEW 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.
OVERVIEW (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.
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.
2 SYSTEM CONFIGURATION 1 Table 2.1 Applicable modules and the number of mountable modules (Continued) CPU type No.
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.
2 SYSTEM CONFIGURATION 1 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. 2 QCPU User's Manual (Multiple CPU System) SYSTEM CONFIGURATION (a) Intelligent function module parameters Write intelligent function module parameters to only the control CPU of the QD64D2. Table 2.
2 2.2 SYSTEM CONFIGURATION 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. 1 2 Main base unit Extension base unit (GX Configurator-CT cannot be used.
1 (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 2 SYSTEM CONFIGURATION This section explains how to use the QD64D2 on the MELSECNET/H remote I/O station.
2 2.4 SYSTEM CONFIGURATION 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. Serial No. (Upper 6 digits) function version 100812 Relevant regulation standards 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).
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 [System monitor] and click the Product Inf. List button in GX Serial number 2 Function version SYSTEM CONFIGURATION [Diagnostics] Developer. OVERVIEW 1 SPECIFICATIONS 3 Figure 2.4 System monitor (a) Production number display Since the QD64D2 does not support the production number display, "-" is displayed.
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. [Operating procedure] GX Developer [Help] [Product information] Software version (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.
3 SPECIFICATIONS 1 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. Performance Specifications The following table shows the performance specifications of the QD64D2. Table 3.
3 SPECIFICATIONS 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 Differential voltage H level t) t 0.1V L level 0.1V -0.1V tH tL Figure 3.
SPECIFICATIONS 1 3.1.2 Derating chart OVERVIEW 3 100 2 80 70 SYSTEM CONFIGURATION ON ratio (%) 90 60 50 40 0 10 20 30 40 50 55 Ambient temperature( ) 3 Figure 3.4 Derating chart (1) When all channels are the coincidence output function (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.
3 SPECIFICATIONS (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.
SPECIFICATIONS Table 3.2 Function list of the QD64D2 Function *1 Description Counts within the range from -2147483648 to 2147483647. Linear counter function An overflow occurs when a count exceeds the count range. Repeats a count between the ring counter upper limit value Ring counter function Coincidence output function Counter value Reference and the lower limit value. Compares preset coincidence detection point of an arbitrary channel with the present counter value and outputs the Section 5.2.
3 SPECIFICATIONS 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 controller CPU) Programmable Table 3.
SPECIFICATIONS (2) List of output signals (Signal direction: Programmable controller CPU QD64D2) Table 3.4 List of output signals Y10 Coincidence signal No.1 reset Y01 Y11 command *1 Coincidence signal No.
3 SPECIFICATIONS 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.
SPECIFICATIONS (a) Operation when used for the coincidence output function (Refer to Section 5.3.1.) Counter value large No.1(X01) Counter value coincidence No.1(X02) Counter value small No.1(X03) Present value (Un\G12 and 13) < Coincidence output No.1 point 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 Present value (Un\G12 and 13) > Coincidence output No.1 point setting (Un\G6 and 7) ON OFF OFF PROCEDU
3 SPECIFICATIONS (b) Operation when used for the continuous comparison function (Refer to Section 5.3.2.) Counter value large No.1(X01) Counter value coincidence No.1(X02) Counter value small No.1(X03) Present value (Un\G12 and 13) < Continuous comparison No.1 point n setting (Un\G54 to 85) OFF OFF ON Present value (Un\G12 and 13) = Continuous comparison No.1 point n setting (Un\G54 to 85) OFF ON* OFF Present value (Un\G12 and 13) > Continuous comparison No.1 point n setting (Un\G54 to 85
SPECIFICATIONS 1 Operation by the QD64D2 Operation by the sequence program Preset value setting (Un\G4 and 5) 100 ON Preset input terminal (PRST) OFF 3 ON External preset request detection (X08) OFF ON SPECIFICATIONS OFF t* 100 *t 2ms Figure 3.9 Operation of the external preset request detection (X08) 4 (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.
3 SPECIFICATIONS (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. .
3 SPECIFICATIONS 1 • 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 Preset value setting (Un\G4 and 5) 100 3 ON Preset command (Y04) OFF 100 * t 2ms Figure 3.14 Operation of the preset command (Y04) • Turn ON to execute the subtraction count at 1-phase input mode.
3 SPECIFICATIONS (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 1 2 ON Latch counter execution command (Y07) Latch count value (Un\G14 and 15) 3 4
3.4 SPECIFICATIONS 1 Buffer Memory Assignment 3.4.1 OVERVIEW 3 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. 2 Initial value *1 (L) (H) (L) Ring counter upper limit value *2 (H) (L) Preset value setting *2 (H) (L) Coincidence output No.1 point setting *2 (H) (L) Coincidence output No.2 point setting *2 (H) Coincidence output No.1 point change request Coincidence output No.
3 SPECIFICATIONS Table 3.5 List of buffer memory assignment (Continued) Address Initial (decimal Setting contents notation) CH1 CH2 60 260 Continuous comparison No.
3 SPECIFICATIONS 1 Table 3.5 List of buffer memory assignment (Continued) Address Initial 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 136 336 137 to 199 337 to 399 setting Continuous comparison No.2 point 5 setting *2 Continuous comparison No.2 point 6 setting *2 Continuous comparison No.2 point 7 setting *2 Continuous comparison No.
3 SPECIFICATIONS 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.
SPECIFICATIONS 1 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
3 SPECIFICATIONS (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).
SPECIFICATIONS 1 (4) Present value (Un\G12 and 13) OVERVIEW • 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. 2 SYSTEM CONFIGURATION A B ON Count enable command (Y06) Present value (Un\G12 and 13) 0 1 3 2 • 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
3 SPECIFICATIONS (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) 2147483646 Overflow detection flag (Un\G16) 0 214748364
SPECIFICATIONS 1 • 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. OVERVIEW (8) Error code (Un\G18) • 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) 3 SPECIFICATIONS • This area is
3 SPECIFICATIONS 3.5 Specifications of I/O Interfaces with External Device 3.5.1 Electrical specifications of I/O signals (1) Input specifications Table 3.
SPECIFICATIONS 1 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. OVERVIEW 3.5.2 SYSTEM CONFIGURATION 2 SPECIFICATIONS 3 PROCEDURES AND SETTINGS BEFORE OPERATION 4 Figure 3.25 Appearance of the QD64D2 Table 3.
3 SPECIFICATIONS 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 Terminal Signal name number CH1 CH2 Symbol Signal details Phase A pulse input + Phase A pulse input - B19 B18 A19 A18 PULSE A + PULSE A - •Inputs + (plus) side of phase A pulse. •Inputs - (minus) side of phase A pulse.
3 SPECIFICATIONS 1 Interface for external device OVERVIEW The following table shows the list of external device interface of the QD64D2. Table 3.10 List of external device interface of the QD64D2 2 Terminal +5V CH1 CH2 B19 A19 Signal name +5V 27k 1/10W 4.7k 1/10W Isolator (Isolating element) 3 100 1/2W Line receiver 4.
3 3.6 SPECIFICATIONS 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.
PROCEDURES AND SETTINGS BEFORE OPERATION This chapter describes the operating procedures before operation, part names, settings, and wiring of the QD64D2. SYSTEM CONFIGURATION Handling Precautions (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.
4 PROCEDURES AND SETTINGS BEFORE OPERATION 4.2 Procedures before Operation The following flowchart shows the procedures for operating the QD64D2. Start 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 4.5).
4.3 1 Part Names OVERVIEW 4 PROCEDURES AND SETTINGS BEFORE OPERATION The following explains the part names of the QD64D2. 2 SYSTEM CONFIGURATION 1) 2) (Connector terminal number) (Connector terminal number) B20 3 SPECIFICATIONS A20 B01 PROCEDURES AND SETTINGS BEFORE OPERATION 4 A01 3) 5 Figure 4.2 Appearance of the QD64D2 Table 4.2 Part names Description FUNCTIONS Name Indicates operating status of the QD64D2.
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. (a) Connector types Table 4.
4 PROCEDURES AND SETTINGS BEFORE OPERATION 1 OVERVIEW Wiring This section describes wiring an encoder and controller to the QD64D2. Wiring precautions (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. (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.
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) In a control panel QD64D2 20cm (7.87inch) to 30cm (11.81inch) AD75CK Figure 4.4 AD75CK cable clamp For the AD75CK, refer to the following manual.
1 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 QD64D2 27k 1/10W 4.7k 1/10W Digital isolator 100 1/2W 27k 1/10W 27k 1/10W 4.7k 1/10W Digital isolator Shield E PULSE B+ B17(A17) Shielded twisted pair cable 100 1/2W Line receiver 4.
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 (1) Example of wiring with an external output terminal (sink output type) QD64D2 B05(A05) EQU2 B04(A04) 3 Load SPECIFICATIONS EQU1 2 SYSTEM CONFIGURATION 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.
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.
(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. OVERVIEW 1 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. Description Reference Set the pulse input mode for each channel.
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. Figure 4.
FUNCTIONS 1 OVERVIEW FUNCTIONS This chapter describes functions of the QD64D2. 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.
5 FUNCTIONS Table 5.1 Types of the pulse input method (continued) Pulse input Count timing method For addition count A B 2 multiples of 2 When B is OFF, counts on the rising edge ( ) of A. When B is ON, counts on the falling edge ( ) of A. When B is ON, counts on the rising edge ( ) of A. When B is OFF, counts on the falling edge ( When B is OFF, counts on the rising edge ( ) of A. When B is ON, counts on the falling edge ( ) of A.
1 OVERVIEW 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.) 2 SYSTEM CONFIGURATION • Linear counter • Ring counter SPECIFICATIONS 3 PROCEDURES AND SETTINGS BEFORE OPERATION 4 FUNCTIONS 5 UTILITY PACKAGE (GX Configurator-CT) 6 7 PROGRAMMING 5.2 FUNCTIONS 8 TROUBLESHOOTING 5 5.2 Selecting a Counter Format 5.1.
5 FUNCTIONS 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. Present value Overflow +2147483647 0 Subtraction Addition -2147483648 Overflow Figure 5.1 Operation image of the linear counter (b) The following functions can be used in combination.
FUNCTIONS 1 (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. Present value +2147483647 Ring counter upper limit value (Un\G2 and 3) 3 0 Subtraction 2 SYSTEM CONFIGURATION (1) Ring counter operation OVERVIEW Selecting the ring counter Addition Figure 5.
5 FUNCTIONS (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.
FUNCTIONS 1 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.
5 5.3 FUNCTIONS 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.
FUNCTIONS 1 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. OVERVIEW 5 2 Signal and external output terminal used to output the comparison result Comparison point Input signal (X) External output •Counter value large No.1 (X01) No.1 Coincidence output No.
5 FUNCTIONS Table 5.4 Details of operation example of the coincidence output function Number Description 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).
FUNCTIONS 1 Buffer memory address to be set Setting value Other than "0" 4 CH1 coincidence output No.1 point setting (Un\G6 and 7) CH1 coincidence output No.2 point setting (Un\G8 and 9) CH2 coincidence output No.1 point setting (Un\G206 and 207) 3 SPECIFICATIONS Procedure 1: Set the following buffer memories and make sure that the coincidence output point settings are other than "0" 2 SYSTEM CONFIGURATION (1) At immediately after the power-on or resetting the programmable controller CPU, the relat
5 FUNCTIONS (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 val
FUNCTIONS 1 Table 5.5 Continuous comparison function Signal and external output terminal used to output the comparison result Input signal (X) (Un\G54 and 55) No.1 Continuous comparison No.1 point 16 setting (Un\G84 and 85) Continuous comparison No.2 point 1 setting (Un\G104 and 105) No.1 (X02) Continuous comparison No.2 point 16 setting (Un\G134 and 135) Coincidence output No.1 terminal (EQU1) •Counter value small No.1 (X03) •Counter value large No.
5 FUNCTIONS (c) When A = B Example: A = 5, B = 5 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.
FUNCTIONS (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. (b) Operation diagram 2) OFF 0 2 1 1 5 ON OFF 3) t1 *1 t1 *1 4) Counter value coincidence No.1 (X02) OFF ON Counter value large No.1 (X01) OFF t2 *1 0 1 999 1000 1001 5) t2 *1 FUNCTIONS Coincidence output No.1 terminal ON (EQU1) OFF Present value (Un\G12 and 13) PROCEDURES AND SETTINGS BE
5 FUNCTIONS Table 5.6 Details of operation example of the continuous comparison function Number 1) Description [Execution request] Turn ON the continuous comparison No.1 execution command (Y09). [Continuous comparison start] 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 2) in the continuous comparison No.1 start point setting (Un\G50). When "1" is stored in the continuous comparison No.
FUNCTIONS 1 SYSTEM CONFIGURATION 2 3 SPECIFICATIONS (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.
5 FUNCTIONS (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. (a) Initial setting 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.
5 FUNCTIONS 1 Comparison end point 4 5 6 Rewrite the continuous comparison No.1 point 2 setting (Un\G56 and 57) to the setting for the 18th point. Rewrite the continuous comparison No.1 point 3 setting (Un\G58 and 59) to the setting for the 19th point. Rewrite the continuous comparison No.1 point 4 setting (Un\G60 and 61) to the setting for the 1st point. Rewrite the continuous comparison No.1 point 5 setting (Un\G62 and 63) to the setting for the 2nd point. 4 Figure 5.
5 FUNCTIONS Table 5.7 shows the example of continuous comparison point setting for 19 points. Table 5.7 Example of continuous comparison point setting Continuous Continuous comparison comparison order 1 point setting 100 Target continuous comparison No.1 point n setting Continuous comparison No.1 point 1 setting 2 3 110 120 Continuous comparison No.1 point 2 setting Continuous comparison No.1 point 3 setting 4 5 130 140 Continuous comparison No.1 point 4 setting Continuous comparison No.
FUNCTIONS 1 For the interval of the continuous comparison No.m point n setting, set the values to satisfy the following conditions 1 and 2. 2 (a) Condition 1: Input pulse speed [pps] 1000 3 (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) 100[%] ON ratio [%] 4 Input pulse speed [pps] ) 1000 For example, when "Continuous comparison No.
5 FUNCTIONS 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.
FUNCTIONS • 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 FUNCTIONS 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.
FUNCTIONS 1 OVERVIEW 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) 3 SPECIFICATIONS 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.
5 FUNCTIONS 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.
1 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. (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. Count enable command ON (Y06) OFF 4 1) 0 1) 1000 2000 t* Present value (Un\G12 and 13) t* 2) ON OFF PROCEDURES AND SETTINGS BEFORE OPERATION Counter input pulse Preset command (Y04) 3 SPECIFICATIONS In
5 FUNCTIONS (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. Count enable command ON OFF (Y06) Counter input pulse 1) 1) Preset value setting (Un\G4 and 5) 0 2000 1000 t* Preset command (Y04) ON OFF Preset input terminal (PRST) ON OFF External preset request detection (X08) ON OFF t* t* 3) 2) 2) 2) 3) 4) External preset request ON detectio
1 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.
5 FUNCTIONS Table 5.12 Details of operation example of the latch counter function Number Description When the latch counter execution command (Y07) is turned from OFF to ON, 1) 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 2) 3) 4) 5 - 30 present value (Un\G12 and 13) is stored in the latch count value (Un\G14 and 15).
1 (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.
6 UTILITY PACKAGE (GX Configurator-CT) CHAPTER6 6.1 UTILITY PACKAGE (GX Configurator-CT) Utility Package Functions Table 6.1 shows the functions of the utility package. Table 6.1 Utility package (GX Configurator-CT) functions list Function Description Reference (1) Make the initial settings for each channel to operate the QD64D2. Set the values of the items where initial settings are required.
6 UTILITY PACKAGE (GX Configurator-CT) 1 Table 6.1 Utility package (GX Configurator-CT) functions list Function Description Reference SYSTEM CONFIGURATION 2 Section 6.6 SPECIFICATIONS 3 4 (2) Monitors the following buffer memories of the QD64D2. PROCEDURES AND SETTINGS BEFORE OPERATION • 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.
6 6.2 UTILITY PACKAGE (GX Configurator-CT) 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.
UTILITY PACKAGE (GX Configurator-CT) 1 Table 6.
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 Item Installation (Add-in) Description target*1 Add-in to GX Developer Version 4 (English version) or later.*2 Computer Windows CPU Required -based personal computer Refer to Table 6.5 "Operating system and performance required for personal computer".
6 UTILITY PACKAGE (GX Configurator-CT) 1 Table 6.5 Operating system and performance required for personal computer Memory 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 Pentium 133 MHz or more 32 MB or more Windows NT Workstation 4.
6 6.3 UTILITY PACKAGE (GX Configurator-CT) 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 Key Application Cancels the current entry in a cell. ESC Closes the window. Tab Moves between controls in the window. Used in combination with the mouse operation to select Ctrl multiple cells for test execution.
UTILITY PACKAGE (GX Configurator-CT) 1 (b) Steps 1) to 3) shown in Figure 6.3 are performed as follows: [Open project]/[Save]/[Save as]. 2) From the module selection screen of the utility, select: 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] 3 [Read from PLC]/[Write to PLC].
6 UTILITY PACKAGE (GX Configurator-CT) 6.3.2 Operation overview GX Developer screen [Tools] - [Intelligent function utility] - [Start] Screen for selecting a target intelligent function module Refer to Section 6.3.3. Enter "Start I/O No.", and select "Module type" and "Module model name". 1) Initial setting [Initial setting] screen Auto refresh [Auto refresh setting] screen Refer to Section 6.5. Refer to Section 6.4. Figure 6.4 General operation 6-9 6.3 Utility Package Operation 6.3.
UTILITY PACKAGE (GX Configurator-CT) 1 OVERVIEW 6 SYSTEM CONFIGURATION 2 SPECIFICATIONS 3 1) [Online] - [Monitor/Test] [Select monitor/test module] screen PROCEDURES AND SETTINGS BEFORE OPERATION 4 Monitor/Test FUNCTIONS 5 Select a module to be monitored/tested. 6 UTILITY PACKAGE (GX Configurator-CT) [Monitor/Test] screen PROGRAMMING 7 8 TROUBLESHOOTING Refer to Section 6.6. Figure 6.4 General operation (continued) 6.3 Utility Package Operation 6.3.
6 UTILITY PACKAGE (GX Configurator-CT) 6.3.3 Starting the Intelligent function module utility [Purpose] 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] [Setting screen] [Start] Figure 6.
UTILITY PACKAGE (GX Configurator-CT) 1 Deletes the [Initial setting] and [Auto refresh setting] of the selected module. Closes this screen. OVERVIEW (2) Command buttons 2 [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.
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.
1 "Start I/O No.*" * "Module type" "Module model name" Enter the [Start I/O No.] in hexadecimal. [Setting screen] 2 SYSTEM CONFIGURATION [Purpose] 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.
6 UTILITY PACKAGE (GX Configurator-CT) [Explanation of items] (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.
1 "Start I/O No.*" * "Module type" "Module model name" Enter the [Start I/O No.] in hexadecimal. [Setting screen] 2 SYSTEM CONFIGURATION [Purpose] 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.
6 UTILITY PACKAGE (GX Configurator-CT) [Explanation of items] (1) Items Module side Buffer size : Displays the buffer memory size of the setting item. Module side Transfer word : Displays the number of words to be transferred. count Transfer direction : " " indicates that data are written from the programmable controller CPU to the buffer memory. PLC side Device " " indicates that data are loaded from the buffer memory to the programmable controller CPU.
1 Monitoring/test [Purpose] Start buffer memory monitor/test and I/O signal monitor/test from this screen. [Operating procedure] model name" * "Start I/O No.*" "Module type" SYSTEM CONFIGURATION "Select monitor/test module" screen 2 "Module . 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.
6 UTILITY PACKAGE (GX Configurator-CT) Coincidence output function Continuous comparison function Ring counter function Latch counter function 1) Figure 6.8 [Monitor/Test] screen (continued) 6 - 19 6.6 Monitoring/Test 6.6.
UTILITY PACKAGE (GX Configurator-CT) 1 [Explanation of items] / Performs a test on the selected items. To select more than one item, select them while holding down the Ctrl 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.
7 PROGRAMMING 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. Program creation start Initial setting program Set buffer memory with sequence program. with GX Configurator-CT.
PROGRAMMING 1 OVERVIEW From the previous page (1) Count control program (a) Count operation program SYSTEM CONFIGURATION 2 (b) Preset execution program Use the latch counter function? 3 NO SPECIFICATIONS YES (c) Latch counter function program 4 PROCEDURES AND SETTINGS BEFORE OPERATION (2) Counter value comparison program *4 *4: Required to use the counter value comparison function.
7 PROGRAMMING 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 QCPU QD64D2(X/Y00 to X/Y1F) CH1 encoder CH2 encoder QY40P(Y30 to Y3F) QX40(X20 to X2F) Figure 7.2 System configuration (2) Conditions for the intelligent function module switch setting Table 7.
PROGRAMMING 1 7.2.1 Before creating a program OVERVIEW Perform the following steps before creating a program. (1) Wiring of external devices 2 SYSTEM CONFIGURATION 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 PROGRAMMING (2) Intelligent function module switch setting Based on the setting conditions given in Section 7.2 (2), make the intelligent function module switch settings.
1 OVERVIEW Programming Example when GX Configurator-CT is Used (1) List of devices Table 7.
7 PROGRAMMING Table 7.2 List of devices (continued) Device Function CH1 coincidence confirmation LED signal Y30 Y31*2 Y32 CH1 overflow occurrence confirmation LED signal QY40P (Y30 to Y3F) CH2 coincidence confirmation LED signal *1 *2 *3 *4 *5 *6 Set this only when using the latch counter function. Set this only when using the linear counter function. Stores last occurred error and holds it even after error reset. Stores last occurred warning and holds it even after error reset.
PROGRAMMING 1 Table 7.3 Item on the [Initial setting] screen Coincidence output Set these only when No.1 point setting the counter value Setting 0 OVERVIEW Description Set preset value. 10000 2 comparison function Coincidence output selection (refer to No.1 point change Section 4.5) is the request coincidence output Change request SYSTEM CONFIGURATION CH1 Initial setting function. value Ring counter upper limit value function. Preset value setting Set preset value.
7 PROGRAMMING Table 7.4 Auto refresh setting Description CH1 Present value CH1 Latch count value*1 CH1 Overflow detection flag Setting value D0 D2 *2 D4 CH2 Present value CH1 Error code D8 D118 CH1 Warning code CH2 Error code D119 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.
PROGRAMMING 1 CH1 count enable command (Y06) OFF CH1 preset command (Y04) ON CH1 latch counter execution command (Y07) ON SYSTEM CONFIGURATION CH1 count enable command (Y06) ON 2 3 SPECIFICATIONS CH1 coincidence signal No.1 reset command (Y01) ON OVERVIEW (3) Programming example CH1 coincidence output enable command (Y03) ON CH1 coincidence confirmation LED signal ON CH1 counter value coincidence No.1 (X02) OFF PROCEDURES AND SETTINGS BEFORE OPERATION 4 Stores CH1 error code to D5.
7 PROGRAMMING 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.
1 OVERVIEW Programming Example when GX Configurator-CT is not Used (1) List of devices Table 7.5 List of devices D2,D3*1 CH1 latch count value storage D4 *2 CH1 overflow status storage D5 *3 CH1 error code storage CH1 warning code storage D119 D8,D9 CH1 warning code CH2 present value storage D10*3 CH2 error code storage D11*4 CH2 warning code storage D120 D121 CH2 error code CH2 warning code M10 X00 Initial setting complete signal Module READY X02 X0D CH1 counter value coincidence No.
7 PROGRAMMING Table 7.
PROGRAMMING 1 CH1 preset value setting CH1 coincidence output No.1 point setting OVERVIEW (2) Program example 2 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 3 CH2 continuous comparison No.1 point 1 setting 4 CH2 continuous comparison No.1 repeat point setting CH2 continuous comparison No.
7 PROGRAMMING 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.
PROGRAMMING 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 2 SYSTEM CONFIGURATION Stores CH2 error code to D120. OVERVIEW 1 SPECIFICATIONS 3 PROCEDURES AND SETTINGS BEFORE OPERATION 4 FUNCTIONS 5 UTILITY PACKAGE (GX Configurator-CT) 6 PROGRAMMING 7 8 TROUBLESHOOTING 7 7.
7 7.5 PROGRAMMING 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.
PROGRAMMING 1 An interrupt must be enabled using the IMASK instruction before using an interrupt pointer. OVERVIEW (3) Program example SYSTEM CONFIGURATION 2 SPECIFICATIONS 3 QD64D2 program 4 PROCEDURES AND SETTINGS BEFORE OPERATION Interrupt program 5 MELSEC-Q/L Programming Manual (Common Instruction) 6 UTILITY PACKAGE (GX Configurator-CT) • When the above described program is executed, only I50 interrupt program is execution-enabled and other interrupt programs are execution-disabled.
8 TROUBLESHOOTING 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.
TROUBLESHOOTING 1 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. 2 [Setting procedure] [System monitor...] [QD64D2] SYSTEM CONFIGURATION Select [Diagnostics] OVERVIEW (3) Checking Module's Detailed Information [Module's Detailed Information...
8 TROUBLESHOOTING 8.1.2 When the RUN LED turns OFF Table 8.3 When the RUN LED turns OFF Check item Action Check if the service voltage of the power supply Is the power supplied? module is within the rated range. Reference ---- 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 sufficient? module, and intelligent function module, and check ---- that the current capacity is sufficient.
8 TROUBLESHOOTING 1 Table 8.6 When the QD64D2 does not start counting Check item Action Reference If they turn ON, check the external wiring, encoder applying a voltage to the pulse input terminals of A and B using such as a voltage stabilizer? If they remain OFF, it is a hardware failure. Please Section 4.3 consult your local Mitsubishi representative, Section 4.4 explaining a detailed description of the problem.
8 TROUBLESHOOTING 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 Has the coincidence output No.m point change request (Un\G10 and 11) been set to "1" (Change request)? Action Reference After changing the coin
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.
8 8.7 TROUBLESHOOTING 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 function? coincidence output function, refer to procedure in Section 5.3.1 (2). 8-7 8.
TROUBLESHOOTING 1 8.8 When the Preset Cannot be Executed 8.8.1 OVERVIEW 8 When the preset cannot be executed by the preset command (Y04) 2 (Y04) 2ms or longer? Reference Set the ON and OFF time 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). ON? At the time, set the ON and OFF time of the Section 3.
8 TROUBLESHOOTING 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 Is the ON and OFF time of the latch counter execution command (Y07) longer than 2ms? Is the latch counter input terminal (LATCH) ON? 8.9.2 Action Set the ON and OFF time 2ms or longer.
TROUBLESHOOTING 1 8.11.1 OVERVIEW Action and Handling of Errors Error code list This section describes the descriptions and corrective actions for the errors detected by the QD64D2. Table 8.19 Error code list Error code 0 Description Action (Normal) ---- Operation at error Error channel Other channels ---- ---- [Overflow error] 100 following range. -2147483648 to 2147483647 Perform the preset. (Refer to Section 5.4.) 3 The linear counter function stops counting.
8 TROUBLESHOOTING Table 8.19 Error code list (continued) Error Description code Operation at error Action Error channel [Continuous comparison No.m execution not possible The continuous error] The continuous comparison No.m execution command (Y09 and Y0A) is turned ON while one of 31m the following is ON. •Coincidence output No.1 test command (Y0B) •Coincidence output No.2 test command (Y0C) Other channels comparison cannot Turn OFF the coincidence be started.
TROUBLESHOOTING 1 2 SYSTEM CONFIGURATION (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.
8 TROUBLESHOOTING 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 Warning code 0 Description Action (Normal) ---- Operation at warning Warning channel Other channels ---- ---- [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.
APPENDICES APPENDICES APPENDICES 90 (3.54) 47 (1.85) 137 (5.39) 4 (0.16) 98 (3.86) INDEX Appendix 1 External Dimensions 23 (0.92) 27.4 (1.08) (unit: mm (inch)) Appendix 2 Difference with the QD62D Note that I/O signals, buffer memory assignment and external device interface (terminal layout) of this module is not compatible with the QD62D. The terminal block conversion module (A6TBXY36) cannot be used with the QD64D2.
APPENDICES Memo App - 2 Appendix 2 Difference with the QD62D
Applicable systems•••••••••••••••••••••••••••••••••••••• 2-1 Auto refresh•••••••••••••••••••••••••••••••••••••••••••••• 6-16 A6CON1••••••••••••••••••••••••••••••••••••••••••••••••••• 4-4 A6CON2••••••••••••••••••••••••••••••••••••••••••••••••••• 4-4 A6CON3••••••••••••••••••••••••••••••••••••••••••••••••••• 4-4 A6CON4••••••••••••••••••••••••••••••••••••••••••••••••••• 4-4 [B] Blown fuse detection flag (X1F) ••••••••••••••••••••• 3-12 Buffer memory •••••••••••••••••••••••••••••••••••••••••• 3-15 [C] Checking e
Programming ••••••••••••••••••••••••••••••••••••••••••••• 7-1 Pulse input method•••••••••••••••••••••••••••••••••••••• 5-1 Pulse input mode ••••••••••••••••••••••••••••••••••••••• 4-11 [R] Ring counter •••••••••••••••••••••••••••••••••••••••••••••• 5-5 Ring counter lower limit value (Un\G0 and 1) ••••• 3-19 Ring counter upper limit value (Un\G2 and 3) •••• 3-19 RUN •••••••••••••••••••••••••••••••••••••••••••••••••••••••• 4-3 [S] SI •••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 5-24 Subtraction
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.
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(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.