208
High-speed Counters
Section 5-2
5-1-6
External Interrupts
An external interrupt task performs interrupt processing in the CPU Unit in
response to an input from a CJ-series Special I/O Unit or CPU Bus Unit con-
nected to the CPU Unit. The reception of these interrupts is always enabled.
External interrupts require no special settings in the CPU Unit, although an
interrupt task with the specified number must be included in the user program.
Example: External interrupt from a CJ1W-CT021-V1 High-speed Counter Unit
Note
When the same interrupt number is used for both an external interrupt task
(task 0 to 255), and scheduled interrupt task (task 2) or high-speed counter
interrupt task (0 to 255), the task will be executed for both the external inter-
rupt condition and the other interrupt condition. As a general rule, do not use
the same interrupt number for different interrupt conditions.
5-2
High-speed Counters
5-2-1
Overview
• A rotary encoder can be connected to a built-in input to produce a high-
speed pulse input.
• High-speed interrupt processing can be performed when the high-speed
counter PV matches a target value or is within a target value range.
• The PRV(881) instruction can be used to measure the input pulse fre-
quency (one input only).
• The high-speed counter PVs can be maintained or refreshed.
• The High-speed Counter Gate Bit can be turned ON/OFF from the ladder
program to select whether the high-speed counter PVs will be maintained
or refreshed.
• Any one of the following input signals can be selected as the counter input
mode.
Response Frequencies for 24 VDC Inputs to High-speed Counters 0 to 3
in X/XA CPU Units or High-speed Counters 2 and 3 in Y CPU Units:
• Differential phase inputs (4x): 50 kHz
• Pulse + direction inputs: 100 kHz
• Up/Down pulse inputs: 100 kHz
• Increment pulse inputs: 100 kHz
Response Frequencies for Line Driver Inputs to High-speed Counters 0
and 1 in Y CPU Units:
• Differential phase inputs (4x): 500 kHz
• Pulse + direction inputs: 1 MHz
• Up/Down pulse inputs: 1 MHz
• Increment pulse inputs: 1 MHz
CP1H CPU Unit
High-speed Counter Unit
Interrupt
Summary of Contents for CP1H CPU UNITS - PROGRAMMING 05-2007
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Page 370: ...336 Analog I O XA CPU Units Section 5 5...
Page 552: ...518 Trouble Shooting Section 8 7...
Page 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 598: ...564 Sample Application Section 9 12...
Page 642: ...608 Standard Models Appendix A...
Page 652: ...618 Dimensions Diagrams Appendix B...
Page 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Page 776: ...742 PLC Setup Appendix G...
Page 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Page 786: ...752 Revision History...