199
Interrupt Functions
Section 5-1
Scheduled interrupt 2 is executed every 30.5 ms.
5-1-5
High-speed Counter Interrupts
This function executes the specified interrupt task (0 to 255) when the CP1H
CPU Unit’s built-in high-speed counter PV matches a pre-registered value
(target value comparison) or lies within a pre-registered range (range compar-
ison).
• CTBL(882) is used to register the comparison table.
• Either CTBL(882) or INI(880) can be used to start comparison.
• INI(880) is used to stop comparison.
For details on the built-in high-speed counter, refer to
5-2 High-speed
Counters
.
Procedure
W 0.00
30.5 ms
30.5 ms
30.5
ms
Cyclic task
processing
Interrupt
task 2
Interrupt
Interrupt
task 2
Interrupt
Interrupt
task 2
Interrupt
Cyclic task
processing
Cyclic task
processing
Cyclic task
processing
Internal
clock
Set the PLC Setup.
• Using the CX-Programmer, set the PLC
Setup so that the built-in input is used for a
high-speed counter.
↓
Wire the inputs.
• Wire the input being used for the high-speed
counter.
↓
Write the ladder program.
• Write the interrupt task program.
• Use CTBL(882) to register the high-speed
counter number and comparison table. Cre-
ate the comparison table’s data in advance.
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...