MELSEC-Q Multi Function Counter/Timer Module User's Manual -QD65PD2
SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable controller system, refer to the user's manual for the CPU module used.
[Installation Precautions] CAUTION ● Use the programmable controller in an environment that meets the general specifications in the user's manual for the CPU module used. Failure to do so may result in electric shock, fire, malfunction, or damage to or deterioration of the product.
CAUTION ● Mitsubishi programmable controllers must be installed in control panels. Connect the main power supply to the power supply module in the control panel through a relay terminal block. Wiring and replacement of a power supply module must be performed by qualified maintenance personnel with knowledge of protection against electric shock. For wiring methods, refer to the QCPU User's Manual (Hardware Design, Maintenance and Inspection).
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.
INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC-Q series programmable controllers. This manual describes the operating procedure, system configuration, parameter setting, functions, programming, and troubleshooting of the Q series multi function counter/timer module QD65PD2 (hereafter abbreviated as QD65PD2).
RELEVANT MANUALS (1) CPU module user's manual Manual name Description QCPU User's Manual Specifications of the hardware (CPU modules, power supply modules, (Hardware Design, Maintenance and Inspection) base units, extension cables, and memory cards), system maintenance and inspection, troubleshooting, and error codes QnUCPU User's Manual (Function Explanation, Program Fundamentals) Qn(H)/QnPH/QnPRHCPU User's Manual Functions,
Memo 7
CONTENTS CONTENTS SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 CONDITIONS OF USE FOR THE PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 COMPLIANCE WITH EMC AND LOW VOLTAGE DIRECTIVES . . . . . . . . . . . . .
4.3.1 Overview of the coincidence output function and the cam switch function . . . . . . . . . . . . . 107 4.3.2 Coincidence output function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 4.3.3 Preset/replace (at coincidence output) function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 4.3.4 Cam switch function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CHAPTER 7 PROGRAMMING 7.1 7.2 7.3 191 Using the Module in a Standard System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 7.1.1 Program example when the parameters of the intelligent function module are used . . . . . 195 7.1.2 Program example when the parameters of the intelligent function module are not used . . 204 When Using the QD65PD2 in a MELSECNET/H Remote I/O net . . . . . . . . . . . . . . . . . . . . . 213 7.2.
MANUAL PAGE ORGANIZATION In this manual, pages are organized and the symbols are used as shown below. The following page illustration is for explanation purpose only, and is different from the actual pages. "" is used for screen names and items. The chapter of the current page is shown. shows operating procedures. shows mouse operations.*1 [ ] is used for items in the menu bar and the project window. The section of the current page is shown. Ex. shows setting or operating examples.
Pages describing instructions are organized as shown below. The following page illustrations are for explanation purpose only, and are different from the actual pages.
• Instructions can be executed under the following conditions. Execution condition Any time Symbol No symbol On the rising During on edge During off On the falling edge • The following devices can be used.
TERMS Unless otherwise specified, this manual uses the following terms.
PACKING LIST The following items are included in the package of this product.
CHAPTER 1 OVERVIEW The QD65PD2 is a multi function counter/timer module whose maximum counting speed of input pulse is 8Mpps (with differential input and 4 multiples of 2 phases). The QD65PD2 has two channels and functions including the preset/replace function by external input or input from a CPU module, the latch counter function, counter function selection, external coincidence output by coincidence detection, and general-purpose input/output.
CHAPTER 1 OVERVIEW 1.1 Features 1 (1) Multiple functions The QD65PD2 has the following functions. • Counter function • Frequency measurement function • Rotation speed measurement function • Pulse measurement function • PWM output function • Cam switch function • General-purpose input/output Use of the functions above reduces application creation work by the user.
(6) Coincidence detection The coincidence detection compares the count value with any point or range set by the user. The comparison result can be notified by an input signal, or an interrupt program can be started when the both values match. The 8 points assigned to external coincidence output make it possible to work along with a complicated application. The coincidence output function or the cam switch function can be selected depending on a purpose.
CHAPTER 1 OVERVIEW 1 (8) The preset/replace function and the latch counter function with an external control signal Variation in time until the preset/replace function or the latch counter function is performed is reduced without depending on the scan time of the CPU module. (9) Easy setting by GX Works2 Sequence program can be reduced by managing default setting or auto refresh setting on the screen. Also, setting condition or operation condition of the module can be checked easily. 1.
CHAPTER 2 SYSTEM CONFIGURATION This chapter explains the QD65PD2 system configuration. 2.1 Applicable Systems This section describes the applicable systems. (1) Applicable modules and base units, and number of modules For the applicable CPU modules and base units, and the number of mountable modules, refer to the user’s manual for the CPU module used. Note the following when mounting modules with the CPU module.
CHAPTER 2 SYSTEM CONFIGURATION (2) Application to the multiple CPU system The QD65PD2 is function version B compatible, and applicable to a multiple CPU system. When using the QD65PD2 in a multiple CPU system, refer to the following manual first. 2 QCPU User's Manual (Multiple CPU System) (a) Intelligent function module parameters Write intelligent function module parameters to only the control CPU of the QD65PD2.
2.2 When Using the QD65PD2 with Redundant CPU This section lists restrictions when using the QD65PD2 with redundant CPU. (1) Restrictions • The coincidence detection interrupt function and the periodic interrupt function cannot be used. • The dedicated instruction cannot be used. 2.3 When Using the QD65PD2 at a MELSECNET/H Remote I/O Station This section describes the use of the QD65PD2 at a MELSECNET/H remote I/O station.
CHAPTER 2 SYSTEM CONFIGURATION 2.4 How to Check the Function Version/Serial No. The function version and the serial No. of the QD65PD2 can be checked by the following methods. 2 (1) On the rating plate The rating plate is put on the side of the QD65PD2. Serial number (first six digits) Function version 140213000000000-B Relevant regulation standards 2.4 How to Check the Function Version/Serial No. (2) On the front of the module The serial No.
(3) On the system monitor (Product Information List) To display the system monitor, select [Diagnostics][System Monitor] Product Information List of the programming tool. (a) Production number Production number indication is not available for the QD65PD2; "-" is shown. The serial No. on the rating plate and the front of the module may be different from the serial No. displayed on the product information list of the programming tool. ● The serial No.
CHAPTER 3 SPECIFICATIONS CHAPTER 3 SPECIFICATIONS This chapter describes the performance specifications of the QD65PD2, I/O signals to the CPU module, and buffer memories. 3 For the general specifications of the QD65PD2, refer to the following: QCPU User's Manual (Hardware Design, Maintenance and Inspection) The I/O numbers (X/Y), buffer memory addresses, and external input terminals described in this chapter are for CH1.
Specifications Item Counting speed (Maximum)*2*3 Differential input DC input 8Mpps (4 multiples of 2 phases) 200kpps Counting range 32-bit signed binary (-2147483648 to 2147483647) Count, subtraction count Format Linear counter format, ring counter format Preset/replace function, latch counter function 1-phase input (1 multiple/2 multiples), 1-phase input (1 multiple/2 multiples), CW/CCW CW/CCW 0.5 s 5 s 0.25 s 0.25 s Counter 2.
CHAPTER 3 SPECIFICATIONS Specifications Item External output Differential input Coincidence output (high Transistor (sink type) output: 2 points speed) 12/24VDC 0.1A/point, 0.8A/common Coincidence output (low Transistor (sink type) output: 6 points speed) 12/24VDC 0.1A/point, 0.8A/common Transistor (sink type) output: 8 points General output 12/24VDC 0.1A/point, 0.
3.1.1 The input waveform and the phase difference between phase A pulse and phase B pulse The count may be done incorrectly by inputting pulses whose phase difference is small between the phase A pulse and phase B pulse in 2-phase input. The following figures show the pulse waveform to be input to the QD65PD2 and the phase difference between the phase A pulse and phase B pulse in 2-phase input. (Though the following are the cases for the differential input, they are also applied to the DC input.
CHAPTER 3 SPECIFICATIONS 3.1.2 Number of parameter that can be set Configure the parameters of the initial setting and the auto refresh setting of the QD65PD2 within the number of parameters that can be set to the CPU module, including the number of parameters set for other intelligent function modules.
3.2 Function List The following table lists the functions of the QD65PD2. Item Description Operation mode*1 This function counts pulses between -2147483648 and Linear counter function Page 103, 2147483647, and detects an overflow/underflow when the Section 4.2.1 count value is outside the range. Ring counter function Coincidence output function Comparison This function repeatedly counts pulses between the upper function and 2. interrupt function Section 4.3.2 match.
CHAPTER 3 SPECIFICATIONS Item Description Operation mode*1 Reference This function executes the counter function selection using both the sequence program and the function input terminal (FUNC1) of the connector for external devices, or using either Page 131, Section 4.6 of them. Count disable function Latch counter function Sampling counter function This function stops counting pulses while CH1 Count enable Page 132, command (Y06) is on. Section 4.
3.3 I/O Signals to the CPU Module The following table lists the QD65PD2 I/O signals to the CPU module. The I/O numbers (X/Y) described in this chapter or later are for the case when the QD65PD2 are mounted on the I/O slot No.0 of the main base unit. 3.3.
CHAPTER 3 SPECIFICATIONS (2) The list of output signals (Direction of signals: CPU module to QD65PD2) I/O Signal name number Y00 Y01 Reserved Operating condition settings batchchange command Coincidence output enable Y02 command Operation I/O timing number - Y10 Reset command (coincidence output 1) Y11 Reset command (coincidence output 2) Y12 Reset command (coincidence output 3) Signal name Y03 Preset/replace command Y13 Reset command (coincidence output 4) Y04 Count down command Y1
3.3.2 Details on input signals This section describes the input signals of the QD65PD2. The I/O numbers (X/Y), buffer memory addresses, and external input terminals described in this section are for CH1. To check the I/O numbers (X/Y) for CH2, refer to the following: Page 32, Section 3.3.1 To check the buffer memory addresses for CH2, refer to the following: Page 42, Section 3.4.
CHAPTER 3 SPECIFICATIONS • Buffer memories for the data classification Md1 (except for the Md1 associated with an error or a warning) are not updated when this signal is OFF. To check the data classification and corresponding buffer memories, refer to the following: Page 42, Section 3.4.1 • When this signal is OFF, buffer memories for the data classification Cd2 except CH1 Error reset command (Un\G1480) are disabled.
(5) Coincidence output 1 to 8 (X10 to X17) • This signal turns on when a count value satisfies the comparison condition of the coincidence output function or cam switch function. (To check the conditions on which this signal turns on or off, refer to the following:) Page 107, Section 4.3 • When using the coincidence output function, select the comparison conditions from Coincidence output, Inrange output, and Not-in-range output in Coincidence output condition setting (Un\G0).
CHAPTER 3 SPECIFICATIONS (8) Warning (X1F) • This signal turns on when a warning occurs. • Turn off this signal by Error reset command (Un\G1480) after eliminating the warning cause. Operation by the QD65PD2 CH1 Error reset command (Un\G1480) CH1 Latest warning code (Un\G1470) Warning status (Un\G954.b0) Warning (X1F) Not reset (0H) 0 1050 0 Normal (0) Warning (1) Normal (0) 3 Not reset (0H) Reset (1H) ON OFF 3.3 I/O Signals to the CPU Module 3.3.
3.3.3 Details on output signals This section describes the output signals of the QD65PD2. The I/O numbers (X/Y), buffer memory addresses, and external input terminals described in this section are for CH1. To check the I/O numbers (X/Y) for CH2, refer to the following: Page 32, Section 3.3.1 To check the buffer memory addresses for CH2, refer to the following: Page 42, Section 3.4.
CHAPTER 3 SPECIFICATIONS • The following input signals turn off by turning on this signal. (This is also applied to CH2.) Input signals CH1 External preset/replace (Z Phase) request detection (X05) General input 1 to 6 (X18 to X1D) CH1 Cam switch function execution/PWM output (X08) Error (X1E) Coincidence output 1 to 8 (X10 to X17) Warning (X1F) • To check the timing of turning on and off this signal, refer to the following: Page 34, Section 3.3.
(5) CH1 External preset/replace (Z Phase) request detection reset command (Y05) • Tune on this signal to turn off CH1 External preset/replace (Z Phase) request detection (X05). • A count value cannot be replaced with the preset value while CH1 External preset/replace (Z Phase) request detection (X05) is ON. • For details on the preset/replace operation, refer to the following: Page 35, Section 3.3.2 (3) (6) CH1 Count enable command (Y06) • Turn on this signal to count pulses.
CHAPTER 3 SPECIFICATIONS (9) Reset command (coincidence output 1 to 8) (Y10 to Y17) • Turn on this signal to turn off Coincidence output 1 to 8 (X10 to X17). • This signal is enabled on the condition that Coincidence output is selected while the coincidence output function is activated as shown below.
3.4 Buffer Memory Assignment This section describes the QD65PD2 buffer memories. The following describes the data classification in the list. Pr1 and Pr2 are parameter data to be set by users. ● The setting values for Pr1 are reflected on the condition that Operating condition settings batch-change command (Y01) is turned off and on. ● The setting values for Pr2 are reflected when Operating condition settings batch-change command (Y01) is turned off and on, or at other timings.
CHAPTER 3 SPECIFICATIONS Address (decimal notation) Data Contents classification 100 Point setting (coincidence output 1) (L)*3 101 Point setting (coincidence output 1) (H)*3 102 Point setting (coincidence output 2) (L)*3 103 Point setting (coincidence output 2) (H)*3 104 Point setting (coincidence output 3) (L)*3 105 Point setting (coincidence output 3) (H)*3 106 Point setting (coincidence output 4) (L)*3 107 108 Pr2 Point setting (coincidence output 4) (H)*3 Point setting (coincidence
Address (decimal notation) Data Contents classification Lower limit value (coincidence output 1) (L)*3 121 Lower limit value (coincidence output 1) (H)*3 122 Upper limit value (coincidence output 1) (L)*3 123 Upper limit value (coincidence output 1) (H)*3 124 Lower limit value (coincidence output 2) (L)*3 125 Lower limit value (coincidence output 2) (H)*3 126 Upper limit value (coincidence output 2) (L)*3 127 Upper limit value (coincidence output 2) (H)*3 128 Lower limit value (coinciden
CHAPTER 3 SPECIFICATIONS Address (decimal notation) 190 Data Contents classification Md1 Counter value greater/smaller (coincidence output) Default Read/ *1 write*2 value 0 R Remarks Use it when "Coincidence Output" is set in the Comparison output setting value and 0: Coincidence output is set to Coincidence output condition setting (Un\G0). 3 191 ••• System area 199 3.4 Buffer Memory Assignment 3.4.
Address (decimal notation) Data Contents classification 200 Cam switch function, step type (coincidence output 1) 201 Cam switch function, number of steps (coincidence output 1) 202 Cam switch function, step No.1 setting (coincidence output 1) (L)*3 203 Cam switch function, step No.1 setting (coincidence output 1) (H)*3 204 Cam switch function, step No.2 setting (coincidence output 1) (L)*3 205 Cam switch function, step No.
CHAPTER 3 SPECIFICATIONS Address (decimal notation) Data Contents classification 240 Cam switch function, step type (coincidence output 2) 241 Cam switch function, number of steps (coincidence output 2) 242 Cam switch function, step No.1 setting (coincidence output 2) (L)*3 243 Cam switch function, step No.1 setting (coincidence output 2) (H)*3 244 Cam switch function, step No.2 setting (coincidence output 2) (L)*3 245 Cam switch function, step No.
Address (decimal notation) Data Contents classification 280 Cam switch function, step type (coincidence output 3) 281 Cam switch function, number of steps (coincidence output 3) 282 Cam switch function, step No.1 setting (coincidence output 3) (L)*3 283 Cam switch function, step No.1 setting (coincidence output 3) (H)*3 284 Cam switch function, step No.2 setting (coincidence output 3) (L)*3 285 Cam switch function, step No.
CHAPTER 3 SPECIFICATIONS Address (decimal notation) Data Contents classification 320 Cam switch function, step type (coincidence output 4) 321 Cam switch function, number of steps (coincidence output 4) 322 Cam switch function, step No.1 setting (coincidence output 4) (L)*3 323 Cam switch function, step No.1 setting (coincidence output 4) (H)*3 324 Cam switch function, step No.2 setting (coincidence output 4) (L)*3 325 Cam switch function, step No.
Address (decimal notation) Data Contents classification 360 Cam switch function, step type (coincidence output 5) 361 Cam switch function, number of steps (coincidence output 5) 362 Cam switch function, step No.1 setting (coincidence output 5) (L)*3 363 Cam switch function, step No.1 setting (coincidence output 5) (H)*3 364 Cam switch function, step No.2 setting (coincidence output 5) (L)*3 365 Cam switch function, step No.
CHAPTER 3 SPECIFICATIONS Address (decimal notation) Data Contents classification 400 Cam switch function, step type (coincidence output 6) 401 Cam switch function, number of steps (coincidence output 6) 402 Cam switch function, step No.1 setting (coincidence output 6) (L)*3 403 Cam switch function, step No.1 setting (coincidence output 6) (H)*3 404 Cam switch function, step No.2 setting (coincidence output 6) (L)*3 405 Cam switch function, step No.
Address (decimal notation) Data Contents classification 440 Cam switch function, step type (coincidence output 7) 441 Cam switch function, number of steps (coincidence output 7) 442 Cam switch function, step No.1 setting (coincidence output 7) (L)*3 443 Cam switch function, step No.1 setting (coincidence output 7) (H)*3 444 Cam switch function, step No.2 setting (coincidence output 7) (L)*3 445 Cam switch function, step No.
CHAPTER 3 SPECIFICATIONS Address (decimal notation) Data Contents classification 480 Cam switch function, step type (coincidence output 8) 481 Cam switch function, number of steps (coincidence output 8) 482 Cam switch function, step No.1 setting (coincidence output 8) (L)*3 483 Cam switch function, step No.1 setting (coincidence output 8) (H)*3 484 Cam switch function, step No.2 setting (coincidence output 8) (L)*3 485 Cam switch function, step No.
Address (decimal notation) Data Contents classification Default Read/ *1 write*2 value Remarks 955 ••• 999 54 System area
CHAPTER 3 SPECIFICATIONS (2) Different from each channel (Un\G1000 to Un\G5999) Address (decimal Data notation) classification CH1 CH2 1000 1500 Contents 1501 1002 1502 Read/ value*1 write*2 0 R/W Use it for the periodic pulse counter function.
Address (decimal Data notation) classification CH1 1022 1023 1522 1523 1524 1025 1525 1026 1526 Read/ *1 write*2 value Remarks ••• ••• CH Latch count value update flag reset command Use it for the latch counter function (counter function selection). CH Latch count value update flag reset command (latch counter input terminal) Use it for the latch counter function by latch counter input terminal.
CHAPTER 3 SPECIFICATIONS Address (decimal Data notation) classification CH1 CH2 1070 1570 1071 Md2 1571 Contents Default Read/ *1 write*2 value CH Selected counter function CH Sampling counter/periodic pulse counter operation flag 0 R Md1 1072 1572 1073 1573 1074 CH Overflow/underflow detection flag 1574 System area 1075 1076 1575 1078 1578 ••• ••• 1099 1599 1100 1600 1101 1601 1102 1602 ••• ••• 1119 1619 1120 1620 1121 1621 ••• ••• 1129 1629
Address (decimal Data notation) classification CH1 CH2 1134 1634 ••• ••• Contents Default Read/ *1 write*2 value System area 1149 1649 1150 1650 CH Time unit setting (rotation speed measurement) 0 1151 1651 CH Moving average count (rotation speed measurement) 1 1152 1652 1153 1653 1154 1654 ••• ••• 1169 1669 1170 1670 1171 1671 ••• ••• 1179 1679 Cd3 CH Number of pulses per rotation (L)*3 CH Number of pulses per rotation (H)*3 Cd2 System area
CHAPTER 3 SPECIFICATIONS Address (decimal Data notation) classification Contents CH2 1240 1740 CH Pulse measurement flag (latch counter input terminal) 1241 1741 CH Measured pulse value update flag (latch counter input terminal) 1242 1742 1243 1743 1244 1744 ••• System area ••• 1300 1800 Cd3 1301 1801 1302 1802 CH On width setting (PWM output) 1303 1803 CH On width setting (PWM output) (H)*3 1304 1804 1305 1805 1306 1806 Cd3 CH PWM output assignment System a
Address (decimal Data notation) classification CH1 CH2 1470 1970 1471 1971 1472 1972 1473 Contents Month Day 1973 Hour Minute 1474 1974 Second Day of the week 1475 1975 ••• ••• 1979 1980 1481 1981 ••• ••• 1499 1999 2000 4000 ••• ••• 3999 5999 60 write*2 Remarks CH Latest warning code Last two digits of the year 1480 Read/ *1 value First two digits of the year 1479 Default Md1 Cd2 0 R An warning information is stored in it when a warning is detected.
CHAPTER 3 SPECIFICATIONS (3) Error history (Un\G6000 to Un\G6199) Address (decimal notation) 6000 Default Read/ value*1 write*2 Latest error code address 0 R System area 0 R 0 R 0 R 0 R Data Contents classification Md2 Remarks 6001 ••• 3 6009 6010 Error code First two digits of the year Last two digits of the year Month Day 6013 Hour Minute 6014 Second Day of the week 6011 6012 Md2 Error log 1 Detection time
Address (decimal notation) Data Contents classification 6050 Read/ *1 write*2 value Remarks Error code First two digits of the year Last two digits of the year Month Day 6053 Hour Minute 6054 Second Day of the week 6051 6052 Default Md2 Error log 5 Detection time 0 R 0 R 0 R 0 R 0 R 6055 ••• System area 6059 6060 Error code First two digits of the year Last two digits of the year Month Day 6063 Hour Minute 606
CHAPTER 3 SPECIFICATIONS Address (decimal notation) Data Contents classification Default Read/ *1 write*2 value Remarks 6095 ••• System area 6099 6100 Error code First two digits of the year Last two digits of the year Month Day 6103 Hour Minute 6104 Second Day of the week 6101 6102 Md2 Error log 10 Detection time 3 0 R 0 R 0 R 0 R 6105 ••• System area 6109 6110 Error code First two digits of the year Last
Address (decimal notation) Data Contents classification 6140 Default Read/ *1 write*2 value Remarks Error code First two digits of the year Last two digits of the year Month Day 6143 Hour Minute 6144 Second Day of the week 6141 Md2 6142 Error log 14 Detection time 0 R 0 R 0 R 6145 ••• System area 6149 6150 Error code First two digits of the year Last two digits of the year Month Day 6153 Hour Minute 6154 Second Day of the week
CHAPTER 3 SPECIFICATIONS 3.4.2 Details of the buffer memory This section describes the details of the QD65PD2 buffer memories. ● The I/O numbers (X/Y), buffer memory addresses, and external input terminals described in this section are for CH1. To check the I/O numbers (X/Y) for CH2, refer to the following: Page 32, Section 3.3.1 To check the buffer memory addresses for CH2, refer to the following: 3 Page 42, Section 3.4.
(3) Coincidence detection interrupt setting (Un\G2) • Use this memory when "Coincidence Output" is selected in the "Comparison output setting value" in the switch setting. • Select whether coincidence detection interruption is executed or not and set the values of either 1: Interrupt or 0: Not interrupt. b15 b14 b13 b12 b11 b10 b9 b8 0 0 0 0 0 0 0 0 Fixed to 0.
CHAPTER 3 SPECIFICATIONS (a) Lower limit value (coincidence output 1) (Un\G120, Un\G121) • Use these memories to set the lower limit value of the count range for the count value comparison. • These buffer memories correspond to Coincidence output 1. To check the buffer memory addresses corresponding to Coincidence output 2 to 8, refer to the following: Page 42, Section 3.4.
(8) Cam switch function, step type (coincidence output 1) (Un\G200) • Use this memory to set the step type to Coincidence output 1 when using the cam switch function. • This memory corresponds to Coincidence output 1. To check the buffer memory addresses corresponding to Coincidence output 2 to 8, refer to the following: Page 42, Section 3.4.
CHAPTER 3 SPECIFICATIONS (10)Cam switch function, step No.1 to No.16 setting (coincidence output 1) (Un\G202 to Un\G233) • Use these memories to set the comparison values to select whether on signal or off signal should be output. The values are set to step No.1 to No.16 for coincide output 1. • This memory corresponds to Coincidence output 1. To check the buffer memory addresses corresponding to Coincidence output 2 to 8, refer to the following: Page 42, Section 3.4.
(12)EQU1 to EQU8 terminal status (Un\G951) • This memory stores the status of EQU1 to EQU8, the output terminals of Coincidence output 1 to 8. b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 0 0 0 0 0 0 0 0 EQU8 EQU7 EQU6 EQU5 EQU4 EQU3 EQU2 EQU1 Fixed to 0. 0 : OFF 1 : ON • The stored value is cleared to 0 by turning off and on Operating condition settings batch-change command (Y01).
CHAPTER 3 SPECIFICATIONS (15)CH1 Phase Z setting (Un\G1000) • Use this memory to set the trigger condition to replace a count value with the preset value using the phase Z input terminal (Z1). • Set whether to turn on CH1 External preset/replace (Z Phase) request detection (X05) when replacing a count value by the phase Z input terminal (Z1).
(18)CH1 Ring counter upper limit value (Un\G1012, Un\G1013) • Use these memories to set the upper limit value of the count range when the ring counter is selected for a counter format. • Set the lower limit value of the ring counter as well. • The setting range is between -2147483648 and 2147483647 in 32-bit signed binary format. • The setting values are enabled by turning off and on Operating condition settings batch-change command (Y01) or CH1 Count enable command (Y06). • The default value is 0.
CHAPTER 3 SPECIFICATIONS (21)CH1 Cycle setting (sampling counter/periodic pulse counter) (Un\G1017) • Use this memory to set a sampling period for the sampling counter function or a cycle for the periodic pulse counter function. • The setting range is shown below. Condition Setting value CH1 Time unit setting (sampling counter/periodic pulse counter) (Un\G1016) is set to 0H: 1ms. CH1 Time unit setting (sampling counter/periodic pulse counter) (Un\G1016) is set to 1H: 10ms.
(23)CH1 Latch count value update flag reset command (Un\G1022) • Use this memory to reset CH1 Latch count value update flag (Un\G1074). • CH1 Latch count value update flag (Un\G1074) is reset by setting CH1 Latch count value update flag reset command (Un\G1022) to 1H: Reset. CH1 Latch count value update flag reset command (Un\G1022) is automatically reset to 0H: Not reset after the reset is completed. • The default value is 0H: Not reset.
CHAPTER 3 SPECIFICATIONS (27)CH1 Present value (Un\G1050, Un\G1051) • These memories store a present value in the counter. • The value is updated every 1ms. The update might be delayed for some reason. For the reasons of the delay, refer to the following: Page 165, Section 4.20 • The stored value is cleared to 0 by turning off and on Operating condition settings batch-change command (Y01).
(30)CH1 Sampling count value (Un\G1056, Un\G1057) • These memories store the count value during the sampling period when the sampling counter function is used. • The stored value is cleared to 0 by turning off and on Operating condition settings batch-change command (Y01).
CHAPTER 3 SPECIFICATIONS (34)CH1 Selected counter function (Un\G1070) • This memory stores the values indicating the selected counter functions.
(36)CH1 Overflow/underflow detection flag (Un\G1072) • This memory stores the value indicating whether an overflow/underflow is detected in the counter. • With the linear counter being selected for a counter format, the overflow detection flag is turned on (1) when a count value exceeds 2147483647. The underflow detection flag is turned on (1) as well when a count value falls below -2147483648. b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Fixed to 0.
CHAPTER 3 SPECIFICATIONS (37)CH1 Latch count value update flag (Un\G1074) • This memory stores the value indicating whether CH1 Latch count value (Un\G1052, Un\G1053) are updated or not. When the memories are updated, 1H is stored. When the memories are not updated, 0H is stored. • CH1 Latch count value (Un\G1052, Un\G1053) are updated without resetting CH1 Latch count value update flag (Un\G1074).
(40)CH1 Periodic pulse count value update flag (Un\G1077) • This memory stores the value indicating whether the following buffer memories are updated or not. When the memories are updated, 1H is stored. When the memories are not updated, 0H is stored.
CHAPTER 3 SPECIFICATIONS (44)CH1 Frequency measurement flag (Un\G1130) • This memory stores the value indicating whether the module is measuring the frequency or not. When the module is measuring the frequency, 1H is stored. When the module is not measuring the frequency, 0H is stored. • The stored value is cleared to 0 by turning off and on Operating condition settings batch-change command (Y01).
(48)CH1 Moving average count (rotation speed measurement) (Un\G1151) • Use this memory to set the number of moving average count for the rotation speed measurement. • The setting range is between 1 and 100. When 1 is set to CH1 Moving average count (rotation speed measurement) (Un\G1151), the operation is performed with the moving average count regarded as not being done. • The setting value is enabled by turning off and on CH1 Count enable command (Y06). • The default value is 1.
CHAPTER 3 SPECIFICATIONS (52)CH1 Measured rotation speed value update flag (Un\G1181) • This memory stores the value indicating whether CH1 Measured rotation speed value (Un\G1182, Un\G1183) are updated or not. When the memories are updated, 1H is stored. When the memories are not updated, 0H is stored. • CH1 Measured rotation speed value (Un\G1182, Un\G1183) are updated without resetting CH1 Measured rotation speed value update flag (Un\G1181).
(56)CH1 Pulse measurement start command (function input terminal) (Un\G1210) • When CH1 Count enable command (Y06) is ON, use this memory to start the measurement of pulse that is input to the function input terminal (FUNC1). • Set CH1 Pulse measurement start command (function input terminal) (Un\G1210) to 1H: Measured to start the pulse measurement. • The default value is 0H: Not measured.
CHAPTER 3 SPECIFICATIONS (61)CH1 Measured pulse value update flag (function input terminal) (Un\G1221) • This memory stores the value indicating whether CH1 Measured pulse value (function input terminal) (Un\G1222, Un\G1223) are updated or not. When the memories are updated, 1H is stored. When the memories are not updated, 0H is stored.
(65)CH1 Measured pulse value (latch counter input terminal) (Un\G1242, Un\G1243) • These memories store the measured value of pulse ON width or pulse OFF width that is input to the latch counter input terminal (LATCH1). • The measurement range is between 2000 and 2147483647 (0.1µs per unit). • The stored value is cleared to 0 by turning off and on Operating condition settings batch-change command (Y01).
CHAPTER 3 SPECIFICATIONS (68)CH1 Cycle setting (PWM output) (Un\G1304, Un\G1305) • Use these memories to set a cycle for the PWM output. • Setting range varies depending on which Coincidence output is set to 1: Assigned in CH1 PWM output assignment (Un\G1300). Coincidence output Setting range Coincidence output 1 or 2 50 to 10000000 (0.1µs per unit) Coincidence output 3 to 8 5000 to 10000000 (0.
(71)CH1 Latest error code (Un\G1460), CH1 Latest warning code (Un\G1470) • These memories store the latest error code and the latest warning code respectively. • When errors or warnings are detected multiple times, the code of the latest error or warning is stored. • For details on error codes, refer to the following: Page 265, Section 8.5 • For details on warning codes, refer to the following: Page 271, Section 8.
CHAPTER 3 SPECIFICATIONS (74)Latest error code address (Un\G6000) • This memory store the value indicating the address of buffer memory in which the latest error code is stored. (The latest error code is selected from Error log (Un\G6010 to Un\G6164).) Ex. The following table shows the example of the value to be stored in this memory. Condition Value to be stored (decimal notation) No error occurred. 0 The error log of the latest error is 1. 6010 The error log of the latest error is 2.
3.5 Specifications of I/O Interfaces with External Devices This clause describes the QD65PD2 interfaces to connect with external devices. 3.5.1 Terminal layouts and terminal numbers of connectors for external devices The following figure and table show the terminal layouts and the terminal numbers of the QD65PD2 connector for external devices.
CHAPTER 3 SPECIFICATIONS 3.5.2 List of I/O signal details The following table lists the signals for the QD65PD2 connectors for external devices. Terminal I/O Symbol classification number CON1 A1-24V, A2-24V B19 Phase A pulse input 24V (+) A1-12V, A2-12V A19 Phase A pulse input 12V (+) A1-5V, A2-5V B18 Phase A pulse input 5V (+) A1-DIF, A2-DIF A18 A1-COM, Description 3 This signal inputs + (plus) side of phase A pulse.
Terminal I/O classification Symbol EQU1 *1 number CON1 CON2 A08 Signal name Coincidence output 1 Description Coincidence output (high speed) With the coincidence output function or the cam switch function being activated, this signal outputs EQU2*1 A07 Coincidence output 2 an signal when an count value is matched the preset comparison condition. When PWM output function is used, this signal outputs the PWM waveform.
CHAPTER 3 SPECIFICATIONS 3.5.3 Interface with external devices The following table lists the QD65PD2 interfaces to connect with external devices. I/O Terminal clas- number sifica- Internal circuit tion CON1 CON2 (CH1) (CH2) B19 176 200 900 Input voltage Signal name Operation value) Phase A pulse input 24V (+) A19 Phase A pulse input 12V (+) B18 Phase A pulse input 5V (+) A18 Phase A pulse differential input (+) 1.5k When ON 3.
I/O Terminal clas- number sifica- Internal circuit tion 176 200 900 1.5k CON1 CON2 (CH1) (CH2) Input voltage Signal name Operation value) When ON value) 21.6 to 26.4V 7 to 10mA When OFF 5V or lower 1.0mA or lower When ON 10.8 to 13.2V 7 to 10mA When OFF 3V or lower 1.0mA or lower Phase B pulse input 24V (+) B16 Phase B pulse input 12V (+) A16 Phase B pulse input 5V (+) When ON 4.5 to 5.5V 7 to 10mA When OFF 2V or lower 1.
CHAPTER 3 SPECIFICATIONS I/O Terminal clas- number sifica- Internal circuit tion 176 200 900 CON1 CON2 (CH1) (CH2) Input voltage Signal name Operation (guaranteed value) B14 Phase Z input 24V (+) A14 Phase Z input 12V (+) B13 Phase Z input 5V (+) When ON Operating current (guaranteed value) 21.6 to 26.4V 7 to 10mA When OFF 5V or lower 1.0mA or lower When ON 10.8 to 13.2V 7 to 10mA When OFF 3V or lower 1.0mA or lower When ON 4.5 to 5.
I/O Terminal clas- number Internal circuit sification CON1 CON2 (CH1) (CH2) IN1, IN2 value) value) When ON 21.6 to 26.4V 7 to 10mA When OFF 4V or lower 1.0mA or lower B02 General input 2 (-) When ON 21.6 to 26.4V 7 to 10mA When OFF 4V or lower 1.0mA or lower General input (high speed) response time OFFON 20µs or less ONOFF 100µs or less General input common (+) Input A02 General input 3 (-) When ON 21.6 to 26.4V 3mA or higher When OFF 3.
CHAPTER 3 SPECIFICATIONS I/O Terminal clas- number Internal circuit sification CON1 CON2 (CH1) (CH2) EQU3 to EQU 8 A06 A05 A08 A07 A06 A05 2k OUT_COM_0V Output 8 circuits 2k OUT_COM_0V *1 Operation (guaranteed value) Operating current (guaranteed value) • Input voltage: 10.8 to 26.4V Coincidence output 3*1 3 Coincidence output 4*1 Coincidence output 5*1 Coincidence output 6*1 Coincidence • Operating voltage: 10.
3.6 Encoders that can be Connected The encoders that can be connected to the QD65PD2 are described below. • Open collector output type encoders • CMOS level voltage output type encoders • Line driver output type encoders (AM26LS31 or equivalent) ● Verify that the encoder output voltage meets the specifications of the QD65PD2. ● TTL level voltage output type encoders cannot be used with the QD65PD2.
CHAPTER 4 FUNCTION CHAPTER 4 FUNCTION This chapter describes the QD65PD2 functions. I/O numbers (X/Y), buffer memory addresses, and external input terminals are for CH1 in this chapter. For CH2 I/O numbers (X/Y), refer to the following section. Page 32, Section 3.3.1 For CH2 buffer memory addresses, refer to the following section. 4 Page 42, Section 3.4.1 4.1 Pulse Input Mode and Counting Method 4.1.
Pulse input mode Count timing For counting up A Counts on the rising edge () of A. B is OFF. B CW/CCW For counting down A A is OFF. Counts on the rising edge () of B. B For counting up A Counts on the rising edge () of A while B is OFF. B 2-phase multiple of 1 For counting down A Counts on the falling edge () of A while B is OFF. B For counting up A Counts on the rising edge () of A while B is OFF. Counts on the falling edge () of A while B is ON.
CHAPTER 4 FUNCTION (a) 1-phase pulse input For 1-phase pulse input, multiple of 1 or multiple of 2 can be selected as a counting method. The following figure shows the relationship between phase A pulse input, and phase B pulse input or the CH1 Count down command (Y04). QD65PD2 Pulse input Encoder A 4 B B or CH1 Count down command (Y04) (b) CW/CCW pulse input For CW/CCW pulse input, pulses can be counted up with the phase A pulse input and counted down with the phase B pulse input .
4.2 Counter Format Selection Select a counter format in the switch setting. For details on the setting method, refer to the following section. Page 180, Section 6.2 For details on each buffer memory setting or performance, refer to the following section. Page 65, Section 3.4.
CHAPTER 4 FUNCTION 4.2.1 Linear counter function (1) Operation of the linear counter • When linear counter is selected, pulses are counted between -2147483648 (lower limit) and 2147483647 (upper limit). • The preset/replace function and the comparison output function can be used together. Overflow +2147483647 4 0 CH1 Present value (Un\G1050, Un\G1051) -2147483648 Underflow CH1 Underflow detection flag (Un\G1072. b0) CH1 Overflow detection flag (Un\G1072.
4.2.2 Ring counter function (1) Operation of the ring counter When ring counter is selected, pulses are counted repeatedly within the range between CH1 Ring counter lower limit value (Un\G1010, Un\G1011) and CH1 Ring counter upper limit value (Un\G1012, Un\G1013) specified by the user in the buffer memory. Overflow/underflow errors do not occur under the ring counter function. The preset/replace function and the comparison output function can be used together.
CHAPTER 4 FUNCTION (a) When the ring counter lower limit value the present value the ring counter upper limit value (common use) • When counting up When the present value reaches the ring counter upper limit value, the ring counter lower limit value is automatically stored in CH1 Present value (Un\G1050, Un\G1051). • When counting down When the present value reaches the ring counter lower limit value, the ring counter lower limit value is held as the present value.
(b) When the present value < the ring counter lower limit value or the ring counter upper limit value < the present value • When counting up When the present value reaches the ring counter lower limit value, the ring counter lower limit value is held as the present value. The value (ring counter upper limit value + 1) is stored in CH1 Present value (Un\G1050, Un\G1051) at the next count-up pulse input.
CHAPTER 4 FUNCTION 4.3 Comparison Output Function The comparison output function outputs ON/OFF signals comparing the count value with any point or range set by the user. The coincidence output function or the cam switch function can be selected depending on the processing method in need. Set the comparison output setting value in the switch setting. For details on the setting method, please refer to the following section. Page 180, Section 6.2 4.3.
Item Coincidence output function Cam switch function Automatically reset depending on Cam switch • Reset command (coincidence output 1 to 8) (Y10 to Output reset timing Y17) OFFON • When values are counted outside the detection area function, step No.
CHAPTER 4 FUNCTION 4.3.2 Coincidence output function The coincidence output function compares the count value with a coincidence detection point or with an area divided by the coincidence output upper/lower limit value. The function then outputs the comparison result to Coincidence output 1 to 8 (X10 to X17) and coincidence output 1 to 8 terminals (EQU1 to EQU8) Coincidence output means that the count value matches with the point or range specified by the user, then the result is output to signals.
(c) Not-in-range output Coincidence output 1 (X10) turns on when the count value is less than Lower limit value (coincidence output 1) (Un\G120, Un\G121) and more than Upper limit value (coincidence output 1) (Un\G122, Un\G123).
CHAPTER 4 FUNCTION (4) Output destination of comparison result for the coincidence output function The following table shows the output destination of comparison result for each comparison condition. Comparison condition Setting item Coincidence In-range Not-in-range output output output Output overview Coincidence output 1 to 8 (X10 to X17) Outputs the result whether the specified Coincidence output 1 to 8 terminals comparison condition was made or not.
(6) Operation example of each comparison condition (a) Operation example of coincidence output The following figure shows an operation example when coincidence output is set as the comparison condition. Note that the coincidence output 1 is assigned to CH1.
CHAPTER 4 FUNCTION Number 8) 9) Description When CH1 Present value (Un\G1050, Un\G1051) > Point setting (coincidence output 1) (Un\G100, Un\G101) is made, Counter value greater (coincidence output 1) (Un\G190.b1) becomes 1. Turn on Reset command (coincidence output 1) (Y10) to reset Coincidence output 1 (X10) and the coincidence output 1 terminal (EQU1). If these are not reset, the next coincidence output 1 cannot be detected.
(b) Operation example of in-range output The following figure shows an operation example when in-range output is set as the comparison condition. Note that the coincidence output 1 is assigned to CH1.
CHAPTER 4 FUNCTION (c) Operation example of not-in-range output The following figure shows an operation example when not-in-range output is set as the comparison condition. Note that the coincidence output 1 is assigned to CH1.
4.3.3 Preset/replace (at coincidence output) function The preset/replace (at coincidence output) function performs the preset/replace function (replaces the count value with a value preset by the user) at the rising state (off to on) of the coincidence output 1 and 2. The preset/replace by this function is performed to the channel assigned to coincidence output 1 and 2. This function is not available for coincidence output 3 to 8.
CHAPTER 4 FUNCTION Number 1) 2) 3) 4) Description When CH1 Present value (Un\G1050, Un\G1051) = Point setting (coincidence output 1) (Un\G100, Un\G101) is made, Coincidence output 1 (X10) turns on. The preset/replace function is performed at the rising state (off to on) of Coincidence output 1 (X10). Reset Coincidence output 1 (X10) so that Coincidence output 1 (X10) rises (off to on) when the next CH1 Present value (Un\G1050, Un\G1051) = Point setting (coincidence output 1) (Un\G100, Un\G101) is made.
4.3.4 Cam switch function The cam switch function allow users to set the ON/OFF status of Coincidence output 1 to 8 (X10 to X17) and coincidence output 1 to 8 terminals (EQU1 to 8) depending on the count value. The maximum of 16 steps of ON/OFF switching can be set per one coincidence output point. By using this function, coincidence output can be performed under complicated conditions. Ex. Control of coincidence output that turns on or off depending on CH1 present value by the cam switch function.
CHAPTER 4 FUNCTION (3) Output range setting With the cam switch setting, the maximum of 16 steps of ON/OFF switching can be set per one output point. The part where the ON/OFF signal status is switched is referred to as a step. Setting item Setting contents Reference Cam switch function, step type Set the ON/OFF status of Coincidence output 1 (X10) at the (coincidence output 1) (Un\G200) time when the pulse counting starts.
(4) Minimum setting width of the ON/OFF status The value of each step No. need to be set so that the setting width (between a step and the next step ) has the minimum of 1ms for the pulse input speed not to exceed the limit. Therefore, the following condition need to be satisfied. Pulse input speed (pps)/1000 (Setting value of coincidence output 1 to 8 step No.m + 1) - (Setting value of coincidence output 1 to 8 step No.
CHAPTER 4 FUNCTION (7) Signal timing of the cam switch function The following figure shows signal timing of the cam switch function. Note that the coincidence output 1 is assigned to CH1.
4.3.5 Coincidence detection interrupt function The coincidence detection interrupt function performs an interrupt request to the CPU module, and starts an interrupt program when the count value matches with the specified value or range. Note that this function can be used only when the coincidence output function is selected as the comparison output setting value, and the normal mode is selected as the operation mode.
CHAPTER 4 FUNCTION (3) Interrupt pointer setting method Assign the interrupt factors (SI) of the QD65PD2 and the interrupt pointers of the CPU module in the intelligent function module interrupt pointer setting of the programming tool. Page 250, Section 7.3 Ex. When assigning SI0 to 7 of the QD65PD2 to the interrupt pointers I50 to I53 (QD65PD2 is mounted to the slot whose start I/O number is 20.
(b) Within-range output/out-of-range output The figure below shows the timing of an interrupt signal when the comparison condition for the coincidence output 1 is in-range output or not-in-range output.
CHAPTER 4 FUNCTION 4.4 Preset/replace Function The preset/replace function replaces the count value with any value preset by the user. This value is called a preset value. This function can be used to start counting pulses from the preset value. The preset/replace function cannot be performed while CH1 External preset/replace (Z Phase) request detection (X05) is on.
(3) Preset/replace function by the phase Z input terminal (Z1) (a) Setting method of the preset/replace function by the phase Z input terminal (Z) The preset/replace function by the phase Z input terminal (Z1) can be performed by meeting the set trigger condition • A trigger condition can be set at CH1 Z phase (Preset) trigger setting (Un\G1000.b0, b1) • CH1 External preset/replace (Z Phase) request detection (X05) can be set in CH1 External preset/replace (Z Phase) request detection setting (Un\G1000.b4).
CHAPTER 4 FUNCTION Number 1) Description Write any value within the range from -2147483648 to 2147483647 (in 32-bit signed binary) to CH1 Preset value (Un\G1014, Un\G1015). The preset value in CH1 Preset value (Un\G1014, Un\G1015) is stored in CH1 Present value (Un\G1050, Un\G1051) on the rising edge (off to on) of the phase Z input terminal (Z1). 2) CH1 External preset/replace (Z Phase) request detection (X05) turns on.
4.5 Latch Counter Function The latch counter function latches the count value when external input and an output signal (Y signal) are input. 4.5.1 Latch counter function by latch counter input terminal (1) Latching the present value by the latch counter input terminal The latch counter function by the latch counter input terminal latches and stores the count value into the buffer memory when the latch counter input terminal (LATCH1) of external input is input.
CHAPTER 4 FUNCTION 4.5.2 Latch counter function (counter function selection) (1) Setting method of the latch counter function (counter function selection) The latch counter function by counter function selection latches the count value when "Latch Counter Function" is selected for "Counter function selection" in the switch setting, then the function input terminal (FUNC1) of external input or CH1 Selected counter function start command (Y07) is input.
● The latch counter function operates regardless of the ON/OFF status of CH1 Count enable command (Y06). ● IN addition to the latch counter function introduced in this section, there is the latch counter/preset/replace function. ( Page 143, Section 4.11) ● When the latch counter function by the latch counter input terminal is performed, operation response time follows "Latch counter input response time setting" in the switch setting.
CHAPTER 4 FUNCTION 4.6 Counter Function Selection When CH1 Selected counter function start command (Y07) or the function input terminal (FUNC1) is input, one of the functions below can be used. A function can be selected for each channel. (1) Counter function selection view Switch setting Method CH1 Selected Function Function counter Function selection Related setting setting function start input command (FUNC1) Reference 4 (Y07) Count disable function Page 132, Section 4.
4.7 Count Disable Function The count disable function stops counting when the function input terminal (FUNC1) or CH1 Selected counter function start command (Y07) is input while CH1 Count enable command (Y06) is on. (1) Setting method of the count disable function The count disable function can be used by selecting "Count Disabling Function" for "Counter function selection" in the switch setting.
CHAPTER 4 FUNCTION 4.8 Sampling Counter Function The sampling counter function is used to count pulses that are input during the specified sampling period (T). (1) Setting for the sampling counter function To use the sampling counter function, select "Sampling Counter Function" in the "Counter function selection" in the switch setting.
(3) Operation example of the sampling counter function The following figure shows an operation example of the sampling counter function.
CHAPTER 4 FUNCTION ● You can use Operating condition settings batch-change command (Y01) to enable the setting of the sampling period. Yet buffer memories for the data classification Md1, for example, CH1 Present value (Un\G1050, Un\G1051) are also cleared by using Operating condition settings batch-change command (Y01). To avoid that, use CH1 Setting change request (sampling counter/periodic pulse counter) (Un\G1020) instead.
4.9 Periodic Pulse Counter Function The periodic pulse counter function is used to store the present count value and the difference value (the difference of the count values between the present one and the previous one) in CH1 Periodic pulse count, present value (Un\G1060, Un\G1061) and CH1 Periodic pulse count, difference value (Un\G1058, Un\G1059) every specified cycle time (T).
CHAPTER 4 FUNCTION (3) Operation example of the periodic pulse counter function The following figure shows an operation example of the periodic pulse counter function.
Number 1) 2) Description The module starts counting input pulses from 0 at the rise of CH1 Selected counter function start command (Y07) or the function input terminal (FUNC1). Every preset cycle time, the values in CH1 Present value (Un\G1050, Un\G1051) are stored in CH1 Periodic pulse count, present value (Un\G1060, Un\G1061).
CHAPTER 4 FUNCTION 4.9.1 Periodic interrupt function The periodic interrupt function conducts the interrupt request to the CPU module by the cycle time of the periodic pulse counter function and starts an interrupt program. (1) List of the interrupt factors The QD65PD2 has total 10 points of interrupt factors (SI) as shown below, and 2 of them are corresponding to the periodic pulse counter function. SI No.
(4) Timing of interrupt request The following figure shows the timing of the interrupt signal output in case of the interrupt factor SI No.8 or 9. The interrupt request is made to the CPU module just after the periodic pulse count values are updated.
CHAPTER 4 FUNCTION 4.10 Count Disable/Preset/replace Function The count disable/preset/replace function enables the QD65PD2 to execute either of the count disable function or the preset/replace function according to the status change of the function input terminal (FUNC1). (1) Setting for the count disable/preset/replace function To use the count disable/preset/replace function, select "Count disable/Preset/replace Function" in the "Counter function selection" in the switch setting.
● The present values are not replaced with the preset values while CH1 External preset/replace (Z phase) request detection (X05) is ON. To avoid that, turn on CH1 External preset/replace (Z phase) request detection reset command (Y05) and turn off CH1 External preset/replace (Z phase) request detection (X05) before executing the preset/replace function. ● The values set to CH1 Preset value (Un\G1014, Un\G1015) are enabled with up to 2ms delay.
CHAPTER 4 FUNCTION 4.11 Latch Counter/Preset/replace Function The latch counter/preset/replace function enables the QD65PD2 to execute either of the latch counter function or the preset/replace function according to the status change of the function input terminal (FUNC1). (1) Setting for the latch counter/preset/replace function To use the latch counter/preset/replace function, select "Latch counter/Preset/replace Function" in the "Counter function selection" in the switch setting.
Number 1) Description The module starts counting by turning on CH1 Count enable command (Y06). At the rise of the function input terminal (FUNC1), the values in CH1 Present value (Un\G1050, Un\G1051) are stored in CH1 Latch count value (Un\G1052, Un\G1053), and the values in CH1 Preset value (Un\G1014, Un\G1015) are stored in CH1 2) Present value (Un\G1050, Un\G1051). Also, 1H: Updated is stored in CH1 Latch count value update flag (Un\G1074) when CH1 Latch count value (Un\G1052, Un\G1053) is updated.
CHAPTER 4 FUNCTION 4.12 Internal Clock Function The internal clock function is the function that does the count by using internal clocks incorporated in the QD65PD2. For instance, an on delay timer consists of this function and the coincidence output function. (1) List of the internal clocks The following table lists the internal clocks incorporated in the QD65PD2. Name Description Remark The clock has +1.7252604% of time lag Internal clock (0.1µs) A clock with 0.
4.13 Frequency Measurement Function The frequency measurement function is the function that counts the pulses of the pulse input terminals in phase A and B, and automatically calculates the frequency. QD65PD2 Pulses Frequency measurement Encoder Buffer memory CH1 Measured frequency value (Un\G1132, Un\G1133) (1) Setting for the frequency measurement function To use the frequency measurement function, select "Frequency Measurement Mode" in the "Operation mode setting" in the switch setting.
CHAPTER 4 FUNCTION (4) Measurable frequency (minimum) The frequency, which is calculated from the count value per a unit of time, should be the value with which the calculated count value becomes an integer number. Therefore, the frequency smaller than the one in the following table cannot be measured correctly. For measurement, input the frequency shown below or higher. A unit of time Measurable frequency (minimum) 1s 1Hz 0.1s 10Hz 0.01s 100Hz 4 Ex. In case a unit of time is 0.
(6) Operation example of the frequency measurement function 1) CH1 Count enable command (Y06) 5) CH1 Time unit setting (frequency measurement) (Un\G1100) 0 CH1 Moving average count (frequency measurement) (Un\G1101) 3 10000 Frequency 5000 T T Time 0 CH1 Measured frequency value (Un\G1132, Un\G1133) XXX 0 YYY ZZZ CH1 Frequency measurement flag Operating (1H) (Un\G1130) Not operating (0H) 2) CH1 Measured frequency value update flag (Un\G1131) CH1 Measured frequency value update flag reset c
CHAPTER 4 FUNCTION ● After the start of the frequency measurement, 1H: Updated is stored in CH1 Measured frequency value update flag (Un\G1131) every time the measured value is stored in CH1 Measured frequency value (Un\G1132, Un\G1133). The value previously stored in CH1 Measured frequency value (Un\G1132, Un\G1133) is hold while 0H: Not updated is being stored in CH1 Measured frequency value update flag (Un\G1131).
4.14 Rotation Speed Measurement Function The rotation speed measurement function is the function that counts the pulses of the pulse input terminals in phase A and B, and automatically calculates the rotation speed.
CHAPTER 4 FUNCTION (4) Required pulse speed (minimum) The rotation speed, which is calculated from the count value per a unit of time, should be the value with which the calculated count value becomes an integer number. Therefore, with the pulse speed lower than the one in the following table, the rotation speed cannot be measured correctly. For measurement, input the pulse with the speed shown below or higher. A unit of time Required pulse speed (minimum) 1s 1pps 0.1s 10pps 0.01s 100pps 4 Ex.
(6) Operation example of the rotation speed measurement function 1) ON CH1 Count enable command (Y06) 5) OFF CH1 Time unit setting (rotation speed measurement) (Un\G1150) 0 CH1 Moving average count (rotation speed measurement) (Un\G1151) 3 CH1 Number of pulses per rotation (Un\G1152, Un\G1153) 1000 10000 Rotation speed 5000 T T Time 0 CH1 Measured rotation speed value (Un\G1182, Un\G1183) CH1 Rotation speed measurement flag (Un\G1180) 0 XXX YYY ZZZ Operating (1H) Not operating (0H) 2)
CHAPTER 4 FUNCTION Number Description Perform the following operations when CH1 Count enable command (Y06) is turned on: • Latch the values in CH1 Time unit setting (rotation speed measurement) (Un\G1150), CH1 Moving average count (rotation speed measurement) (Un\G1151), and CH1 Number of pulses per rotation (Un\G1152, Un\G1153). (The change of the 1) setting values during the rotation speed measurement is ignored.) • Reset CH1 Measured rotation speed value update flag (Un\G1181) to 0H: Not updated.
● After the start of the rotation speed measurement, 1H: Updated is stored in CH1 Measured rotation speed value update flag (Un\G1181) every time the measured value is stored in CH1 Measured rotation speed value (Un\G1182, Un\G1183). The value previously stored in CH1 Measured rotation speed value (Un\G1182, Un\G1183) is hold while 0H: Not updated is being stored in CH1 Measured rotation speed value update flag (Un\G1181).
CHAPTER 4 FUNCTION 4.15 Pulse Measurement Function The pulse measurement function is used to measure the ON width or OFF width of pulses that are input to the external input terminals, the function input terminal (FUNC1) or the latch counter input terminal (LATCH1). When the following pulse is measured, the measured value is written over the previous value.
(4) How to start or stop the pulse measurement The start or stop of the pulse measurement is determined by the combined operation of CH1 Count enable command (Y06) and CH1 Pulse measurement start command (function input terminal) (Un\G1210) or CH1 Pulse measurement start command (latch counter input terminal) (Un\G1212). The following table shows the detail of the combination.
CHAPTER 4 FUNCTION (6) Update timing of the measured values of pulses CH1 Measured pulse value (function input terminal) (Un\G1222, Un\G1223) and CH1 Measured pulse value (latch counter input terminal) (Un\G1242, Un\G1243) are updated every 1ms. So when the measurement is done twice or more within 1ms, only the latest measured value is stored in the buffer memories.
Number Description Perform the following operations when CH1 Count enable command (Y06) is turned on with 1H: Measured being set to CH1 Pulse measurement start command (function input terminal) (Un\G1210): 1) • Reset CH1 Measured pulse value update flag (function input terminal) (Un\G1221) to 0H: Not updated. • Clear the values in CH1 Measured pulse value (function input terminal) (Un\G1222, Un\G1223) to 0.
CHAPTER 4 FUNCTION 4.16 PWM Output Function The PWM output function is used to output the PWM waveform from one of the coincidence output 1 to 8 terminals (EQU1 to EQU8). (Note that the PWM waveform of up to 200kHz is output from the coincidence output terminal 1 or 2. Up to 2kHz waveform is output from the coincidence output terminal 3 to 8.
For the Coincidence output that is assigned as the PWM output terminal in CH1 PWM output assignment (Un\G1300), the setting in Coincidence output condition setting (Un\G0) is disabled. Even so, set any of 0H to 2H to Coincidence output condition setting (Un\G0). (3) Setting of the output waveform Set the output waveform by using CH1 On width setting (PWM output) (Un\G1302, Un\G1303) and CH1 Cycle setting (PWM output) (Un\G1304, Un\G1305).
CHAPTER 4 FUNCTION (4) Operation example of the PWM output function The following figure shows an operation example of the PWM output function when Coincidence output 3 is assigned to the corresponding channel in the "Coincidence output 1 to 8 channel assignment setting" in the switch setting.
4.17 General Input Function The general input function is used to store the status of the general input 1 to 6 terminals (IN1 to IN6), the terminals for external input. The following table lists the general input terminals and the storage locations of their status.
CHAPTER 4 FUNCTION (2) Error time output mode setting Only "Clear" can be set to "Error Time Output Mode" for the QD65PD2. When "Hold" is set to "Error Time Output Mode", Hold error (error code: 800) will be detected. For details on the error time output mode setting, refer to the following according to the CPU module used: QnUCPU User's Manual (Function Explanation, Program Fundamentals) Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals) 4 4.
4.19 Module Error Collection Function The information of the errors that are detected in the QD65PD2 is stored in the CPU module. The error information collected from the QD65PD2 is stored as a module error collection in the memory of the CPU module. Since the memory has the backup power function, the information is not cleared even by powering off and then on, or resetting the CPU module and then clearing the reset.
CHAPTER 4 FUNCTION 4.20 Response Delay Time This section described the response delay time of I/O signals and buffer memory. Maximum delay time [ms] = [Time of (1)] + [Maximum time of (2)] = Sequence program scan time + 2 [ms] (1) Scan time of the sequence program The CPU module processes I/O signals by refreshing them all at once before the operation start of a sequence program. Therefore, the signals are delayed. 4 Use direct access input (DX) or direct access output (DY) to minimize the delay.
CHAPTER 5 SETTINGS AND PROCEDURE BEFORE OPERATION This chapter describes the procedure prior to the QD65PD2 operation, the name and setting of each part of the QD65PD2, and the wiring method. 5.1 Handling Precautions This section describes the precautions for handling the QD65PD2. • Do not drop or apply strong shock to the module case or connectors. • Do not remove the printed-circuit board of the module from its case. Doing so may cause breakdowns.
CHAPTER 5 SETTINGS AND PROCEDURE BEFORE OPERATION 5.2 Procedure Before Operation The figure below shows the steps before starting the QD65PD2 operation. Start Module mounting Mount the QD65PD2 in a slot. Wiring Wire external devices to the QD65PD2. Switch setting Set the intelligent function module switches with programming tool. Page 180, Section 6.2, Page 276, Appendix 5 2.
5.3 Part Identification Nomenclature The figure below shows the name for each part of the QD65PD2. 1) 2) (Terminal number) A20 (Terminal number) B20 A01 B01 3) Number Name Description Indicates the operation status of the QD65PD2. RUN ON : normal OFF: the watchdog timer error has occurred Indicates the error status of the QD65PD2. ERR.
CHAPTER 5 SETTINGS AND PROCEDURE BEFORE OPERATION Number 2) 3) Name Description Connectors for encoders, controllers, and others. Connectors for external devices (40 Refer to the following section for the terminal diagram. pins) Page 90, Section 3.5.1 Serial No. display Displays the serial No. of the QD65PD2. When the phase Z of the encoder is connected to the phase Z pulse input terminals (Z1, Z2), pulses are counted per rotation of the encoder.
5.4 Wiring This section describes how to wire the QD65PD2 with an encoder or a controller. 5.4.1 Wiring precautions To maximize the functions of the QD65PD2 and ensure high-reliability of the system, external wiring that is less susceptible to noise is required. Observe the following precautions for the external wiring. (1) Wiring • Terminals are prepared depending on the voltage of the signal to be input.
CHAPTER 5 SETTINGS AND PROCEDURE BEFORE OPERATION (4) Measures against noise • The QD65PD2 may incorrectly count the pulses when pulse-state noises are input. • When inputting high-speed pulses, take the following measures against noise. Measure 1 Use shielded twisted pair cables, and ground them to the encoder side. Always ground the FG and LG terminals to the protective ground conductor.
(5) Requirements for compliance with the EMC and Low Voltage Directives Take the following measures to comply the system with the EMC and Low Voltage Directives. • Install the DC power connected to the encoder inside the same control panel as the QD65PD2. • Be sure to attach ferrite cores to the DC power cables to be connected to the QD65PD2 and the controller. The ferrite core ZCAT3035-1330 (manufactured by TDK Corporation) is recommended.
CHAPTER 5 SETTINGS AND PROCEDURE BEFORE OPERATION • Take the following noise reduction measures when wiring a connector for external devices. [Example of wiring using a shielded cable] The following figure shows an example of wiring for noise reduction using the A6CON1. Connector (A6CON1) From controller Shielded cable From encoder To external output To the QD65PD2 The length between the connector and the shielded cables should be the shortest possible.
5.4.2 Wiring example (between module and encoder) (1) Example of wiring with an open collector output type encoder (24VDC) QD65PD2 DIF A18 Phase A 5V B18 12V A19 24V B19 176 200 900 1.5k 3.3k COM B17 DIF B15 Phase B Encoder Shielded twisted pair cable 5V A16 24V OUT 12V B16 24V A17 176 200 900 24V OUT 1.5k 3.3k COM A15 24V OUT A13 E DIF Phase Z 5V B13 12V A14 External power supply 24V 176 200 900 1.5k B14 24VDC 0V 3.
CHAPTER 5 SETTINGS AND PROCEDURE BEFORE OPERATION (2) Example of wiring with a voltage output type encoder (5VDC) QD65PD2 DIF A18 Phase A 5V B18 12V A19 24V B19 176 200 900 1.5k 3.3k COM B17 DIF B15 Phase B Encoder Shielded twisted pair cable 5V A16 OUT GND 12V B16 5 24V A17 176 200 900 OUT GND 1.5k 3.3k COM OUT GND A15 DIF A13 Phase Z 5V B13 E 12V A14 24V 176 200 900 B14 1.5k External power supply 5VDC 0V 3.3k COM B12 5.4 Wiring 5.4.
5.4.3 Wiring example (between controller and external input terminals) (1) Example of wiring with a sink type controller QD65PD2 Controller 5V A11 12V B11 Shielded twisted pair cable 24V 24V A12 460 Function 860 1.5k OUT 3.3k CTRLCOM B10 Shield E 5V A9 12V B9 Shielded twisted pair cable 24V 460 Latch counter 860 24V A10 1.5k OUT 3.
CHAPTER 5 SETTINGS AND PROCEDURE BEFORE OPERATION 5.4.4 Wiring example (external output terminals) (1) Example of wiring with coincidence output (high speed) terminals (sinking output) QD65PD2 12/24V B4 EQU1 EQU1 Coincidence output Load A8 *1 1.3k 10k EQU2 A7 *1 1.3k EQU2 Coincidence output 10k 5 Load OUT_COM_0V A4 *1 Terminal for CON1 (CH1) External power supply 10.8 to 26.4VDC 0V 5.4 Wiring 5.4.
(2) Example of wiring with coincidence output (low speed) terminals (sinking output) QD65PD2 12/24V B4 Coincidence output 3 to 8 EQU3 A6*1 Load 2k EQU4 Load A5*1 2k EQU5 A8*2 Load 2k EQU6 Load A7*2 2k EQU7 A6*2 Load 2k EQU8 Load A5*2 2k OUT_COM_0V A4 *1 Terminal for CON1 (CH1) *2 Terminal for CON2 (CH2) External power supply 10.8 to 26.4VDC 0V ● To use coincidence output (EQU1 to 8), an external power supply of 10.8 to 26.4VDC is required to operate the internal photo coupler.
CHAPTER 6 SETTINGS CHAPTER 6 SETTINGS This chapter describes how to specify the QD65PD2 settings. ● To activate module settings, parameter settings, and auto refresh settings, write the settings to the CPU module. Then, reset the CPU module, switch the operating status of the CPU module as follows: STOP, RUN, STOP, and RUN, or power off and on the system. ● To activate switch settings, write the settings to the CPU module. Then, reset the CPU module or power off and on the system.
6.2 Switch Setting Specify settings to be used for each channel. (1) Setting method Open "Switch Setting". Project window Item Comparison output setting value [Intelligent Function Module] Module name Description [Switch Setting] Setting value Set the comparison output function. This is • 0: Coincidence Output the same for each channel. • 1: Cam Switch Function Coincidence output 1 channel assignment setting ••• Set the channel to be compared.
CHAPTER 6 SETTINGS Item Description Setting value • 0: 1-Phase Multiple of 1 • 1: 1-Phase Multiple of 2 Pulse input mode Set the pulse input mode for each channel. • 2: CW/CCW • 3: 2-Phase Multiple of 1 • 4: 2-Phase Multiple of 2 • 5: 2-Phase Multiple of 4 • 0: 10kpps • 1: 100kpps • 2: 200kpps Counting speed setting*1 Set the counting speed for each channel.
(2) Switch setting combination (a) Combination availability by the operation mode setting Comparison output setting value 0: Coincidence Output 1: Cam Switch Function 0: Normal Mode 1: Frequency Measurement × *2 Mode Operation mode setting 2: Rotation Speed × *2 Measurement Mode × *2 3: Pulse Measurement Mode 4: PWM Output Mode *1 × *2 : Available, ×: Unavailable (Error) *1 *2 If the channel set to the PWM output mode is not set to "Channel assignment (coincidence output 1 to 8), an error occur
CHAPTER 6 SETTINGS Counter format (all) Function input logic setting (all) Latch counter input logic setting (all) Counter function selection (all) Z phase input response time setting (all) Function input response time setting (all) Latch counter input response time setting (all) 0: Normal Mode 1: Frequency Measurement Mode Operation mode setting 2: Rotation Speed Measurement Mode 3: Pulse Measurement Mode 4: PWM Output Mode : Available, : Setting ignored 6 6.
(b) Combination availability by count source selection and the pulse input mode Pulse input mode (all) Counting speed setting (all) 0: A Phase/B Phase 1: Internal Clock (0.
CHAPTER 6 SETTINGS 6.3 Parameter Setting Set the parameters for each channel. (1) Setting method Open "Parameter". 1. Start "Parameter" in the project window. Project window [Intelligent Function Module] Module name [Parameter] Item to be selected from the pull-down list 6 Item to be input in a text box 2. Double-click the item to be set and enter the setting value. 6.
Item Setting value Reference Point setting (coincidence output 1) ••• -2147483648 to 2147483647 (default value: 0) Point setting (coincidence output 8) Lower limit value (coincidence output 1) Page 109, Section 4.3.
CHAPTER 6 SETTINGS Item Setting value Pulse measurement setting (function 0: Pulse ON Width input terminal) 1: Pulse OFF Width Pulse measurement setting (latch 0: Pulse ON Width counter input terminal) 1: Pulse OFF Width PWM output assignment Reference Page 155, Section 4.
6.4 Auto Refresh Transfer the buffer memory data to the specified device. (1) Setting method Open "Auto_Refresh". 1. Start "Auto_Refresh" in the project window Project window 2. 188 [Intelligent Function Module] Module name Click the item to be set and enter the auto refresh target device.
CHAPTER 6 SETTINGS 6.5 Preset Setting Preset a value to be replaced with the count value. (1) Setting method Go to "Preset". 1. Open "Module Selection (Preset)" dialogue box. [Tool] [Intelligent Function Module Tool] 2. [Counter Module] [Preset] Select "QD65PD2", then click . 6 3. Select the row for the channel to be preset, then click . 6.5 Preset Setting 4. Input a preset value, then click .
5. After confirming that the preset value is reflected on "Preset Value", click . 6. Click 7. The value on "Preset Value" is reflected on . "Current Value". ● When CH1 Count enable command (Y06) is OFF, the present value cannot be replaced with the preset value; "Count" in the "Preset" dialogue box shows "Disable".
CHAPTER 7 PROGRAMMING CHAPTER 7 PROGRAMMING This chapter describes the QD65PD2 basic programs. 7.1 Using the Module in a Standard System Configuration This section describes the system configuration and program examples for the QD65PD2. Note that CH1 is used for program examples in this section. (1) System configuration The following figure shows a system configuration where the QD65PD2 is used in a standard system configuration.
(2) Switch setting Set the switch setting as follows. Project window [Intelligent Function Module] [QD65PD2] Item [Switch Setting] Setting value Comparison output setting value Set comparison output depending on the program example to be used. Coincidence output 1 channel assignment setting 0: CH1 Coincidence output 2 channel assignment setting 0: CH1 Coincidence output 3 channel assignment setting ••• Setting is not necessary for the program examples in this chapter.
CHAPTER 7 PROGRAMMING (3) Initial setting of the program.
(4) Configuration of program examples The following figure is a configuration of a program example. (a) Program configuration under the normal mode Initial setting program (When the intelligent function module parameter is used, setting is not required.) Common program Counter function program Select the program for the function to be used. Comparison output function (coincidence output function or cam switch function) program When using the comparison output function, use either of the programs.
CHAPTER 7 PROGRAMMING 7.1.1 Program example when the parameters of the intelligent function module are used (1) Devices used by the user Device Description D0. D1 Present value D2, D3 Latch count value (counter function selection) D4, D5 Latch count value (latch counter input terminal) D6, D7 Sampling count value D8.
Device Description X20 Count start signal X22 Allow coincidence output signal X23 Preset/replace command signal X24 Count stop signal X25 Coincidence LED clear signal X27 Count disable start signal X29 Latch counter start signal X2B Sampling counter start signal X2C Periodic pulse count read signal X2D Periodic pulse counter start signal X2E Cam switch start signal X32 Frequency measurement start signal X33 Frequency measurement stop signal X34 Rotation speed measurement start s
CHAPTER 7 PROGRAMMING (2) Parameter setting Set the initial settings in the parameters. Project window [Intelligent Function Module] [QD65PD2] [Parameter] 7 Item Description Set the comparison condition when performing Coincidence output condition setting Coincidence output 1 coincidence output. *1 Set the comparison condition for the coincidence output Set the comparison condition for the coincidence output Coincidence output 2 2.
Item Description Cam switch function (coincidence output 1) Step type Number of steps Set whether to start from output status ON or OFF for the 0: Start from output coincidence output 1. status OFF Set the number of steps for the coincidence output 1. 6 the coincidence output 1 is to be switched. Set the value of the step No.2 where ON/OFF status of Step No.2 setting *3 Step No.3 setting the coincidence output 1 is to be switched. Set the value of the step No.
CHAPTER 7 PROGRAMMING Item Description Select any from coincidence output 1 to 8 to output the PWM output assignment PWM output assignment (coincidence output 1) PWM wave form. *10 Set whether to assign the coincidence output 1 to PWM output. Setting value 1: Assignment ON width setting (PWM output) Set the ON time of output pulses for PWM output. 100.0µs Cycle setting (PWM output) Set the cycle time of output pulses for PWM output. 200.
(3) Auto refresh setting Set the target device for auto refresh. Project window [Intelligent Function Module] Item Counter value greater/smaller (coincidence output) [QD65PD2] [Auto_Refresh] Description *1 stores the relationship (greater or smaller) between the point setting of coincidence output 1 to 8 and the present value. Setting value D16 Error status Set the device that stores the error status of each channel.
CHAPTER 7 PROGRAMMING Item Latest error code Latest warning code *1 *2 *3 *4 *5 *6 *7 *8 Description Setting value Stores the error code of the error in process. D33 Stores the warning code of the warning in process. D36 Set only when using the coincidence output function. Set only when using the latch counter function (counter function selection). Set only when using the latch counter function by latch counter input terminal.
• program for the sampling counter function Turn on CH1 Selected counter function start command. • program for the periodic pulse counter function Turn on CH1 Selected counter function start command. (d) Program for the comparison output function • program for the coincidence output function Turn on Reset command (coincidence output 1). Turn off Reset command (coincidence output 1). • program for the cam switch function Turn on CH1 Cam switch function/ PWM output start command.
CHAPTER 7 PROGRAMMING (5) Program example of the frequency measurement mode Turn on CH1 Count enable command. Turn off CH1 Count enable command. (6) Program example of the rotation speed measurement mode Turn on CH1 Count enable command. Turn off CH1 Count enable command. (7) Program example of the pulse measurement mode 7 Turn on CH1 Count enable command. Turn off CH1 Count enable command.
7.1.
CHAPTER 7 PROGRAMMING Device X0 X1 X8 Description Module ready Operating condition settings batch-changed signal CH1 Cam switch function/PWM output in process signal X10 Coincidence output 1 signal X11 Coincidence output 2 signal Y1 Operating condition settings batch-change command Y2 CH1 Coincidence output enable command Y3 CH1 Preset/replace command Y6 CH1 Count enable command Y7 Y8 Y10 CH1 Selected counter function start command CH1 Cam switch function/PWM output start command Reset comma
Device Description LED signal for checking the coincidence Y40 output 1 LED signal for checking the coincidence Y41 output 2 Y42 LED signal for checking underflow occurrence Y43 LED signal for checking overflow occurrence LED signal for checking that PWM output is in Y44 process For interlock with Operating condition T0 settings batch-change command *1 *2 *3 *4 206 Stores the error code of the error in process. Stores the latest error, and hold it also after an error reset.
CHAPTER 7 PROGRAMMING (2) Program example under the normal mode (a) Initial setting program *1 Coincidence output comparison condition setting coincidence output 1: coincidence output coincidence output 2: in-range output Preset/replace setting at coincidence output: Not preset Point setting (coincidence output 1) : 1000 Lower limit value request (coincidence output 2): 1000 *2 Upper limit value request (coincidence output 2): 2000 Cam switch function, step type (coincidence output 1): Start from outpu
(b) Common program Turn on CH1 Count enable command. Turn off CH1 Count enable command. CH1 Present value is stored. (c) Counter function program • program for the preset/replace function Turn on CH1 Preset/replace command. • program for the latch counter function by latch counter input terminal CH1 Latch count value (latch counter input terminal) is stored.
CHAPTER 7 PROGRAMMING • program for the periodic pulse counter function Turn on CH1 Selected counter function start command. CH1 Periodic pulse count difference value is stored. CH1 Periodic pulse count present value is stored. CH1 Periodic pulse update check value is stored. CH1 Periodic pulse count difference value is stored. CH1 Periodic pulse count present value is stored.
(e) Program for overflow/underflow detection processing CH1 Overflow/underflow detection flag is stored. (f) Program for an error/warning reset Error status is stored. CH1 Latest error code is stored. Warning status is stored. CH1 Latest warning code is stored. CH1 Error reset command is turned on. (3) Program example of the frequency measurement mode CH1 Time unit setting (frequency measurement): 0.01s CH1 Moving average count (frequency measurement): three times Turn on CH1 Count enable command.
CHAPTER 7 PROGRAMMING (4) Program example of the rotation speed measurement mode CH1 Time unit setting (rotation speed measurement): 0.01s CH1 Moving average count (rotation speed measurement): three times CH1 number of pulses per rotation : 1000 Turn on CH1 Count enable command. Turn off CH1 Count enable command. CH1 Measured rotation speed value is stored. CH1 Measured rotation speed value update flag reset command : Reset (1H) 7 7.1 Using the Module in a Standard System Configuration 7.1.
(5) Program example of the pulse measurement mode CH1 Pulse measurement setting (function input terminal) : Pulse ON width CH1 Pulse measurement setting (latch counter input terminal) : Pulse OFF width Turn on Operating condition settings batch-change command. Turn off Operating condition settings batch-change command. Turn on CH1 Count enable command.
CHAPTER 7 PROGRAMMING 7.2 When Using the QD65PD2 in a MELSECNET/H Remote I/O net This section describes program examples and the system configuration when using the QD65PD2 in a MELSECNET/H remote I/O net. Note that the examples in this section use only CH1. (1) System configuration The following figure shows a system configuration example when using the QD65PD2 in a MELSECNET/H remote I/O net.
If error or warning processing is required for a program example under a mode other than the normal mode, take the following measures. ● When using the parameters of the intelligent function module (mode other than the pulse measurement mode)*1 • Add the common program of the normal mode shown in the same section to each program. • Add the error/warning reset program of the normal mode shown in the same section before the END instruction of each program.
CHAPTER 7 PROGRAMMING 3. Open the network range assignment setting window and set parameters as shown below. [Ethernet/CC IE/MELSECNET] 4. button Open the refresh parameter setting window and set parameters as shown below. [Ethernet/CC IE/MELSECNET] button 7 Write the set parameter data to the CPU module on the master station. Then reset the CPU module or turn the CPU module power off, then on. [Online] [Write to PLC...] RESET or Power OFF ON 215 7.
(6) Remote I/O station setting 1. Create a project using GX Works2. Select "QCPU(Q mode)" for "PLC Series" and "QJ72LP25/QJ72BR15(Remote I/O)" for "PLC Type". [Project] 2. [New...] Open the PLC parameter setting dialog box and set parameters as shown below. Project window 3. [PLC Parameter] [I/O Assignment] Add the QD65PD2 to the GX Works2 project. Project window 216 [Parameter] [Intelligent Function Module] right-click [New Module...
CHAPTER 7 PROGRAMMING 4. The following dialog box will be displayed. Click the 5. button. Open the switch setting dialog box for the QD65PD2 and set parameters as shown below. Project window [Intelligent Function Module] [QD65PD2] [Switch Setting] 7 Setting value Comparison output setting value Set comparison output depending on the program example to be used.
6. Open the initial setting window for the QD65PD2 and set parameters as shown below. When creating a program without using the parameters of the intelligent function module, skip this procedure. Project window [Intelligent Function Module] Item [Parameter] Description Set the comparison condition when performing Coincidence output condition setting Coincidence output 1 [QD65PD2] coincidence output. *1 Set the comparison condition for the coincidence output 1.
CHAPTER 7 PROGRAMMING Item Description Cam switch function (coincidence output 1) Step type Number of steps Set whether to start from output status ON or OFF for the 0: Start from output coincidence output 1. status OFF Set the number of steps for the coincidence output 1. 6 the coincidence output 1 is to be switched. Set the value of the step No.2 where ON/OFF status of Step No.2 setting *3 Step No.3 setting the coincidence output 1 is to be switched. Set the value of the step No.
Item Description Select any from coincidence output 1 to 8 to output the PWM output assignment PWM output assignment (coincidence output 1) PWM wave form. *10 Set whether to assign the coincidence output 1 to PWM output. Setting value 1: Assignment ON width setting (PWM output) Set the ON time of output pulses for PWM output. 100.0us Cycle setting (PWM output) Set the cycle time of output pulses for PWM output. 200.
CHAPTER 7 PROGRAMMING 7. Open the auto refresh window and set parameters as shown below. When creating a program without using the parameters of the intelligent function module, skip this procedure. Project window [Intelligent Function Module] [QD65PD2] [Auto_Refresh] 7 Item Counter value greater/smaller (coincidence output) Description *1 stores the relationship (greater or smaller) between the point setting of coincidence output 1 to 8 and the present value.
Item Description Set the device to store the measured pulse value of the Measured pulse value (function input function input terminal when a pulse measurement function is terminal) *8 Measured pulse value (latch counter input W62 used. Set the device to store the measured pulse value of the latch counter input terminal when a pulse measurement function is terminal) W72 used. Latest error code Latest warning code *1 *2 *3 *4 *5 *6 *7 *8 8. Stores the error code of the error in process.
CHAPTER 7 PROGRAMMING 7.2.
Device X1020 X1021 X1028 Description Module ready Operating condition settings batch-changed signal CH1 Cam switch function execution/PWM output signal X1030 Coincidence output 1 signal X1031 Coincidence output 2 signal Y1022 CH1 Coincidence output enable command Y1023 Preset/replace command Y1026 CH1 Count enable command Y1027 Y1028 CH1 Selected counter function start command CH1 Cam switch function/PWM output start command Y1030 Reset command (coincidence output 1) X20 Count start signal
CHAPTER 7 PROGRAMMING Device Description M492, M493 M512, M513 Stores that the Z(P).
(3) Program example under the normal mode (a) Initial setting program This program is not necessary in this program example since the initial setting is set in Page 216, Section 7.2 (6).
CHAPTER 7 PROGRAMMING • program for the sampling counter function Turn on CH1 Selected counter function start command. Turn off CH1 Selected counter function start command. • program for the periodic pulse counter function Turn on CH1 Selected counter function start command. Turn off CH1 Selected counter function start command. (d) Program for the comparison output function • program for the coincidence output function 7 Turn on CH1 Coincidence output enable command.
(f) Program for an error/warning reset CH1 Latest error code is stored. CH1 Latest warning code is stored. CH1 Error reset command is turned on. (4) Program example of the frequency measurement mode Turn on CH1 Count enable command. Turn off CH1 Count enable command. (5) Program example of the rotation speed measurement mode Turn on CH1 Count enable command. Turn off CH1 Count enable command.
CHAPTER 7 PROGRAMMING (6) Program example of the pulse measurement mode Baton pass status check of the master station Data link status check of the master station Baton pass status check of a remote I/O station Cyclic transmission status check of a remote I/O station Parameter communication status check of a remote I/O station Master module status check *1 Turn on CH1 Count enable command.
7.2.
CHAPTER 7 PROGRAMMING Device Description X20 Count start signal X21 Present value read signal X22 Allow coincidence output signal X23 Preset/replace command signal X24 Count stop signal X25 Coincidence LED clear signal X26 Count disable start signal X27 Count disable stop signal X28 Latch count value read signal X29 Latch counter start command signal X2A Sampling count value read signal X2B Sampling counter start signal X2C Periodic pulse count value read signal X2D Periodic pu
Device X1020 X1021 X1028 Description Module ready Operating condition settings batch-changed signal CH1 Cam switch function/PWM output in process signal X1030 Coincidence output 1 signal X1031 Coincidence output 2 signal Y1021 Operating condition settings batch-change command Y1022 CH1 Coincidence output enable command Y1023 CH1 Preset/replace command Y1026 CH1 Count enable command Y1027 Y1028 QD65PD2(X/Y1020 to X/Y103F) CH1 Selected counter function start command CH1 Cam switch function/PWM
CHAPTER 7 PROGRAMMING Device Description M250, M251 M254, M255 M258, M259 M262, M263 M266, M267 M270, M271 M282, M283 M300 to M303 M306 to M309 Stores that the Z(P).REMTO instruction is complete or the result of the instruction M312 to M315 M318 to M321 M460 to M465 M480 to M485 M500 to M505 M520 to M525 M552 to M557 D100 to D109 D120 to D123 7 D130 D150 to D163 D40, D41 Stores data written by the Z(P).REMTO instruction (for default setting) D50 to D53 D60 D70 7.
(2) Program example under the normal mode (a) Initial setting program Baton pass status check of the master station Data link status check of the master station Baton pass status check of a remote I/O station Cyclic transmission status check of a remote I/O station Parameter communication status check of a remote I/O station Master module status check *1 *2 *3 Coincidence output comparison condition setting coincidence output 1: coincidence output coincidence output 2: in-range output Preset/replace set
CHAPTER 7 PROGRAMMING 7 Turn on Operating condition settings batch-change command. *1 Add the following MCR instruction at the end of the program. *2 *3 *4 *5 Set only when using the coincidence output function. Set only when using the cam switch function. Set only when using the ring counter function. Set only when using the sampling counter function or periodic pulse counter function. (b) Common program Turn on CH1 Count enable command. Turn off CH1 Count enable command.
(c) Counter function program • program for the preset/replace function Turn on CH1 Preset/replace command. Turn off CH1 Preset/replace command. • program for the latch counter function by latch counter input terminal CH1 Latch count value update flag reset command (latch counter input terminal) is read. CH1 Latch count value update flag (latch counter input terminal) is read. CH1 Latch count value (latch counter input terminal) is read.
CHAPTER 7 PROGRAMMING • program for the latch counter function by counter function selection Turn on CH1 Selected counter function start command. Turn off CH1 Selected counter function start command. CH1 Latch count value update flag reset command is read. 7 CH1 Latch count value update flag is read. CH1 Latch count value is read. • program for the count disable function Turn on CH1 Selected counter function start command. Turn off CH1 Selected counter function start command. 237 7.
• program for the sampling counter function Turn on CH1 Selected counter function start command. Turn off CH1 Selected counter function start command. CH1 Sampling count value is read. CH1 Sampling count value update flag reset command is read. CH1 Sampling count value update flag is read.
CHAPTER 7 PROGRAMMING • program for the periodic pulse counter function Turn on CH1 Selected counter function start command. Turn off CH1 Selected counter function start command. CH1 Periodic pulse count value update flag reset command is read. 7 CH1 Periodic pulse count value update flag is read. CH1 Periodic pulse count difference value, CH1 Periodic pulse count present value, and CH1 Periodic pulse count update check value are read. 239 7.
(d) Program for the comparison output function • program for the coincidence output function Turn on CH1 Coincidence output enable command. Counter value greater/smaller (coincidence output) is stored. Turn on Reset command (coincidence output 1). Turn off Reset command (coincidence output 1). • program for the cam switch function Turn on CH1 Count enable command. Turn off CH1 Count enable command. Turn on CH1 Cam switch function/ PWM output start command. Turn on CH1 Coincidence output enable command.
CHAPTER 7 PROGRAMMING (f) Program for an error/warning reset Error status is stored. Warning status is stored. CH1 Latest error code is stored. CH1 Latest warning code is stored. CH1 Error reset command is turned on. 7 7.2 When Using the QD65PD2 in a MELSECNET/H Remote I/O net 7.2.
(3) Program example of the frequency measurement mode Baton pass status check of the master station Data link status check of the master station Baton pass status check of a remote I/O station Cyclic transmission status check of a remote I/O station Parameter communication status check of a remote I/O station Master module status check CH1 Time unit setting (frequency measurement): 0.01s CH1 Moving average count (frequency measurement): three times Turn on CH1 Count enable command.
CHAPTER 7 PROGRAMMING 7 CH1 Measured frequency value is read. CH1 Measured frequency value update flag reset command : Reset (1H) 7.2 When Using the QD65PD2 in a MELSECNET/H Remote I/O net 7.2.
(4) Program example of the rotation speed measurement mode Baton pass status check of the master station Data link status check of the master station Baton pass status check of a remote I/O station Cyclic transmission status check of a remote I/O station Parameter communication status check of a remote I/O station Master module status check CH1 Time unit setting (rotation speed measurement): 0.
CHAPTER 7 PROGRAMMING 7.2 When Using the QD65PD2 in a MELSECNET/H Remote I/O net 7.2.2 Program example when the parameters of the intelligent function module are not used 245 7 CH1 Measured rotation speed value is read.
(5) Program example of the pulse measurement mode Baton pass status check of the master station Data link status check of the master station Baton pass status check of a remote I/O station Cyclic transmission status check of a remote I/O station Parameter communication status check of a remote I/O station Master module status check CH1 Pulse measurement setting (function input terminal): Pulse ON width CH1 Pulse measurement setting (latch counter input terminal): Pulse OFF width Turn on Operating conditio
CHAPTER 7 PROGRAMMING Turn on CH1 Count enable command. CH1 Pulse measurement (function input terminal) start command : Measured (1H) CH1 Pulse measurement (latch counter input terminal) start command : Measured (1H) Turn off CH1 Count enable command. CH1 Pulse measurement (function input terminal) start command: Not measured (0H) CH1 Pulse measurement (latch counter input terminal) start command : Not measured (0H) CH1 Pulse measured value (function input terminal) is read.
CH1 Pulse measurement value update flag reset command (latch counter input terminal): Reset (1H) CH1 Pulse measurement value (latch counter input terminal) is read.
CHAPTER 7 PROGRAMMING (6) Program example of the PWM output mode Baton pass status check of the master station Data link status check of the master station Baton pass status check of a remote I/O station Cyclic transmission status check of a remote I/O station Parameter communication status check of a remote I/O station Master module status check CH1 PWM output assignment setting (coincidence output 1) : Assignment 7 CH1 PWM output ON time setting : 1000 CH1 PWM output cycle time setting: 2000 7.
7.3 Program Example with the Coincidence Detection Interrupt Function This section describes a program example in which an interrupt program starts when the count value matches with a value or range specified by the user, or at cycle transition when the periodic pulse counter function is used. (1) System configuration System configuration is the same as the example used in a standard system configuration. Page 191, Section 7.
CHAPTER 7 PROGRAMMING 7.3.1 Program example with the coincidence detection interrupt function (1) Devices used by the user Device D100 to D115 Description stores interrupt enable flag for the IMASK instruction (2) Program example Before using an interrupt pointer, enable an interrupt by the IMASK instruction. Interrupt is disabled. The I50 interrupt program is enabled. The 50th bit from D100 is turned on. Interrupt is enabled.
7.3.2 Program example with the periodic interrupt function (1) Devices used by the user Device D100 to D115 Description stores interrupt enable flag for the IMASK instruction (2) Program example Before using an interrupt pointer, enable an interrupt by the IMASK instruction. Interrupt is disabled. The I58 interrupt program is enabled. The 58th bit from D100 is turned on. Interrupt is enabled.
CHAPTER 8 TROUBLESHOOTING CHAPTER 8 TROUBLESHOOTING This chapter describes how to identify error causes and to correct errors when they occur on the QD65PD2. 8.1 Before Troubleshooting Check if the POWER LED of the power supply module and the MODE LED of the CPU module are on. If any of them is off, troubleshoot the CPU module. QCPU User's Manual (Hardware Design, Maintenance and Inspection) 8.
3. When button is clicked, "Module's Detailed Information" opens. When button is clicked, the error content and its solution method are shown in "Error and Solution". 4. If the error detail cannot be confirmed by the procedure above, perform troubleshooting described in the following sections. 254 •( Page 255, Section 8.3) •( Page 256, Section 8.
CHAPTER 8 TROUBLESHOOTING 8.3 Checking the LEDs The following tables show how to troubleshoot the system by the LEDs. 8.3.1 When both the RUN LED and the ERR. LED turned off Check item Is the power supplied? Corrective action Check if the supplied voltage of the power supply module is within rated range.
8.4 Troubleshooting by Symptoms This section describes troubleshooting methods by symptom. In this section, I/O numbers (X/Y), buffer memory addresses, and external input terminals are those of CH1. For I/O numbers (X/Y) of CH2, refer to the following section. Page 32, Section 3.3.1 For buffer memory addresses of CH2, refer to the following section. Page 42, Section 3.4.1 8.4.
CHAPTER 8 TROUBLESHOOTING Check item Corrective action Are the shielded twisted pair cables used for pulse input wiring? Have measures against noise been taken to Use the shielded twisted pair cables for pulse input wiring.
8.4.2 When the coincidence output function or the cam switch function does not operate normally (1) When coincidence output 1 to 8 (X10 to X17) do not turn on Check item Common Corrective action is the assignment of the coincidence output 1o Review "Coincidence output (1 to 8) channel assignment setting" in the switch to 8 proper? setting. Is the comparison condition for coincidence output 1 to 8 proper? Review the setting of Coincidence output condition setting (Un\G0).
CHAPTER 8 TROUBLESHOOTING (3) When only coincidence output terminal 1 to 8 (EQU1 to 8) do not turn on Check item Has CH1 Coincidence output enable command (Y02) been turned on? Has voltage been added to the power supply for external output (12V/24V)? Is the external wiring of the coincidence output 1 to 8 terminals (EQU1 to 8) correct? Corrective action Turn on CH1 Coincidence output enable command (Y02). Add voltage to the power supply for external output (12V/24V).
8.4.
CHAPTER 8 TROUBLESHOOTING 8.4.4 When the count value cannot be replaced with a value preset by the user (1) When the count value cannot be replaced with a preset value by the preset/ replace command Check item Is the ON/OFF time of CH1 Preset/replace command (Y03) 2ms or longer? Corrective action Set the ON/OFF time of CH1 Preset/replace command (Y03) 2ms or longer.
8.4.5 When counter function selection cannot be performed (1) When counter function selection does not start by CH1 Selected counter function start command (Y07) Check item Corrective action Is it counter function selection that uses CH1 Selected Check by referring to the following section.
CHAPTER 8 TROUBLESHOOTING 8.4.
8.4.9 When an error code or warning code cannot be reset Check item Is the error cause or warning cause removed? 264 Corrective action Refer to the following and remove the cause: ( Page 265, Section 8.5, Page 271, Section 8.
CHAPTER 8 TROUBLESHOOTING 8.5 List of Error Code This clause shows the list of error codes. of each error code and error name indicates the number of the channel in which an error occurs. ● This clause describes errors and their corrective actions in case of the I/O numbers (X/Y), buffer memory addresses, and external input terminals for CH1. To check the I/O numbers (X/Y) for CH2, refer to the following: Page 32, Section 3.3.
Error Operation at error code Error name (decimal Description notation) Error Other channel channel In case of turning off and on Operating condition settings batch-change command (Y01) *7 21n*1*8 Upper limit value setting error (coincidence output 1 to 8) The value set to Upper limit value (coincidence output 1) (Un\G122, Un\G123) is smaller than the one set to Lower limit value (coincidence output 1) (Un\G120, Un\G121).
CHAPTER 8 TROUBLESHOOTING Error Operation at error code Error name (decimal Description notation) 3n5*1 Cam switch function, step No.13 to No.16 setting error (coincidence output 1 to 8) The values set to Cam switch function, step No.13 to No.16 setting (coincidence output 1) (Un\G226 to Un\G233) are not ascending sequence.
Error Operation at error code Error name (decimal Description notation) Error Other channel channel Action 601 CH Moving average count setting error (frequency measurement) The value other than 1 to 100 is set to CH1 Moving average count (frequency measurement) (Un\G1101). 602 CH Time unit setting error (frequency measurement) The value other than 0 to 2 is set to CH1 Time unit setting (frequency measurement) (Un\G1100).
CHAPTER 8 TROUBLESHOOTING Error code (decimal Operation at error Error name Description notation) 670 671 CH PWM output assignment error CH ON width setting error (PWM output) Error Other channel channel CH1 PWM output assignment (Un\G1300) is set as mentioned below. • Two or more bits out of eight (bit 0 to 7) are set to 1: Assigned. Or any bits is not set to 1: Assigned. • A bit, whose Coincidence output (1 to 8) is assigned to the other channel, is set to 1: Assigned.
Operation at error Error code (decimal Error name Description notation) Error Other channel channel Action Check the Intelligent Function Module Detailed Setting from the parameter setting window of the programming tool, and then set "Clear" to "Error Time Output Mode". 800 Hold error "Hold" is set to "Error Time Output Mode" in the Intelligent Function Module Detailed Setting of the CPU module. 811 Switch setting error (switch 1) A wrong value is set in the switch 1 in the switch setting.
CHAPTER 8 TROUBLESHOOTING 8.6 List of Warning Code This clause shows the list of warning codes. of each warning code and warning name indicates the number of channel with a warning.
APPENDICES Appendix 1 Dedicated Instructions The following table shows the dedicated instructions that can be used with the QD65PD2. No. 1 2 Dedicated Function Description instruction Periodic pulse counter function PPCVRD1 Reads the periodic pulse count value of CH1. PPCVRD2 Reads the periodic pulse count value of CH2. When the QD65PD2 is mounted to the MELSECNET/H remote I/O station or the redundant CPU, the dedicated instructions cannot be used. Appendix 1.1 G(P).PPCVRD Command G.
APPENDICES A (2) Control data Device Item Setting data Setting range Setting side S System area System Stores the status on completion of the S instruction.
(4) Error The following occasion results in an error, and the error code is stored into completion status area, (s)+1. Note that the error code is not stored into CH1 Latest error code (Un\G1460). Error code Description The PPCVRD instruction was performed when both of the following conditions are not met. 10 • Condition 1: "Operation mode setting" of CH is the normal mode. • Condition 2: "Counter function selection" of CH is the periodic pulse counter.
APPENDICES Appendix 2 When Using GX Developer A This appendix explains how to operate GX Developer. When using GX Developer, configure the initial settings and the auto refresh settings with the sequence program. • Program example when the parameters of the intelligent function module are not used ( Page 204, Section 7.1.2) (1) Applicable software version For applicable software versions, refer to the following section. Page 21, Section 2.1 (3) Appendix 2.
(2) Switch setting Open "I/O Assignment". Parameter [PLC Parameter] [I/O Assignment] button For the description of the setting items, refer to the switch setting of GX Works2 in the following section. Page 180, Section 6.2 (1) Select "HEX.". Switch Switch setting No.
APPENDICES Switch Switch setting No. Setting item and setting value Default value A 10) Operation mode setting 0H: Normal Mode 1H: Frequency Measurement Mode 2H: Rotation Speed Measurement Mode 3H: Pulse Measurement Mode 4H: PWM Output Mode 11) Count source selection 0H: A Phase/B Phase 1H: Internal Clock (0.
Switch Switch setting No.
APPENDICES A (3) Switch setting combination availability For the switch setting combination availability, refer to the following section. Page 182, Section 6.2 (2) Appendix 2 When Using GX Developer Appendix 2.
Appendix 3 90 47 137 4 98 External Dimensions 23 27.
INDEX 0 to 9 1-phase multiple of 1 . 1-phase multiple of 2 . 2-phase multiple of 1 . 2-phase multiple of 2 . 2-phase multiple of 4 . CH1 Measured frequency value update flag (Un\G1131) . . . . . . . . . . . . . . . . . . . . . . 99 . . . . . . . . . . . . . . . . . . . . . . 99 . . . . . . . . . . . . . . . . . . . . . 100 . . . . . . . . . . . . . . . . . . . . . 100 . . . . . . . . . . . . . . . . . . . . . 100 A Adding a module . . . . . . . . . . . . . . . . . . . . . . . . . 179 Auto refresh . . . .
CH1 Pulse measurement start command (latch counter input terminal) (Un\G1212) . . . . . . . . . . . . . . . . . . 84 CH1 PWM output assignment (Un\G1300) . . . . . . . 86 CH1 Ring counter lower limit value (Un\G1010, Un\G1011) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 CH1 Ring counter upper limit value (Un\G1012, Un\G1013) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 CH1 Rotation speed measurement flag (Un\G1180) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
R Rating plate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Reset command (coincidence output 1 to 8) (Y10 to Y17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Response delay time . . . . . . . . . . . . . . . . . . . . . . 165 Ring counter function. . . . . . . . . . . . . . . . . . . 30,104 Rotation speed measurement function . . . . . . 31,150 I S 4 Sampling counter function . . . . . . . . . . . . . . .
REVISIONS *The manual number is given on the bottom left of the back cover. Print date *Manual number January 2011 SH(NA)-080964ENG-A October 2011 SH(NA)-080964ENG-B Revision First edition Partial correction COMPLIANCE WITH THE EMC AND LOW VOLTAGE, Section 2.1, 2.4, 3.5.3, 4.13, 4.14, 4.20, 6.1, 6.2, 7.1, 7.1.1, 7.1.2, 7.2, 8.2 May 2012 SH(NA)-080964ENG-C Partial correction Section 2.4, Chapter 6 March 2015 SH(NA)-080964ENG-D Partial correction Section 2.1, 3.5.3, 4.3.
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 Vista, Windows NT, Windows XP, Windows Server, Visio, Excel, PowerPoint, Visual Basic, Visual C++, and Access are either registered trademarks or trademarks of Microsoft Corporation in the United States, Japan, and other countries. Intel, Pentium, and Celeron are either registered trademarks or trademarks of Intel Corporation in the United States and other countries. Ethernet is a registered trademark of Xerox Corp.
SH(NA)-080964ENG-D(1503)MEE MODEL: QD65PD2-U-E MODEL CODE: 13JZ51 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.