330
Interrupt Functions
Section 6-1
Scheduled interrupt 2 is executed every 30.5 ms.
6-1-5
High-speed Counter Interrupts
This function executes the specified interrupt task (0 to 255) when the CP1L
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-1 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 CP1L - 12-2007
Page 3: ...iv...
Page 9: ...x...
Page 13: ...xiv TABLE OF CONTENTS...
Page 21: ...xxii...
Page 33: ...xxxiv Conformance to EC Directives 6...
Page 65: ...32 Function Blocks Section 1 5...
Page 428: ...395 Clock Section 6 9...
Page 429: ...396 Clock Section 6 9...
Page 523: ...488 Troubleshooting Unit Errors Section 9 4...
Page 531: ...496 Replacing User serviceable Parts Section 10 2...
Page 563: ...528 Auxiliary Area Allocations by Function Appendix C...
Page 611: ...576 Auxiliary Area Allocations by Address Appendix D...
Page 638: ...603 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 639: ...604 Connections to Serial Communications Option Boards Appendix F...
Page 669: ...634 Index...
Page 671: ...636 Revision History...