186
Interrupt Functions
Section 5-1
5-1
Interrupt Functions
5-1-1
Overview of CP1H Interrupt Functions
The CP1H CPU Unit’s processing is normally cyclical (overseeing processing
→
program execution
→
I/O refreshing
→
peripheral servicing), with cyclic
tasks executed in the program execution stage of the cycle. The interrupt
functions can be used to temporarily interrupt this cyclic processing and exe-
cute a particular program when a predefined condition occurs.
Types of Interrupt
Functions
Input Interrupts (Direct
Mode)
When one of the CPU Unit’s built-in inputs goes from OFF to ON (or ON to
OFF), the corresponding interrupt task is executed. Interrupt tasks 140 to 147
are allocated to the 8 input terminals used for the input interrupts.
Input Interrupts (Counter
Mode)
This function counts input pulses at one of the CPU Unit’s built-in inputs and
executes the corresponding interrupt task when the count reaches the SV.
The maximum input response frequency for input interrupts (in counter mode)
is 5 kHz.
Scheduled Interrupts
This function executes an interrupt task at a fixed time interval measured by
the CPU Unit’s built-in timer. The time interval units can be set to 10 ms, 1 ms,
or 0.1 ms. The minimum timer SV is 0.5 ms.
Interrupt task 2 is allocated to scheduled interrupt.
High-speed Counter
Interrupts
This function counts input pulses with the CPU Unit’s built-in high-speed
counter and executes an interrupt task when the count reaches the preset
value or falls within a preset range (target-value or zone comparison). An
interrupt task between 0 and 255 can be allocated with an instruction.
for details on high-speed counters.
External Interrupts
When a CJ-series Special I/O Unit or CPU Bus Unit is connected, an interrupt
task between 0 and 255 can be specified and executed.
Note
(1) Power OFF interrupts cannot be used with CP1H CPU Units.
(2) The input terminals are used for input interrupts, but cannot used for
quick-response inputs, high-speed counters, origin searches and normal
inputs.
Содержание Sysmac CP1H
Страница 2: ......
Страница 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised October 2014...
Страница 4: ...iv...
Страница 10: ...x...
Страница 18: ...xviii...
Страница 22: ...xxii...
Страница 34: ...xxxiv Conformance to EC Directives 6...
Страница 76: ...42 Function Blocks Section 1 5...
Страница 176: ...142 CP series Expansion I O Unit Wiring Section 3 6...
Страница 372: ...338 Analog I O XA CPU Units Section 5 5...
Страница 578: ...544 Trouble Shooting Section 8 7...
Страница 622: ...588 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Страница 668: ...634 Standard Models Appendix A...
Страница 669: ...635 Appendix B Dimensions Diagrams X XA and Y CPU Units 90 100 110 140 150 8 85 Four 4 5 dia holes...
Страница 744: ...710 Auxiliary Area Allocations by Address Appendix D...
Страница 771: ...737 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 772: ...738 Connections to Serial Communications Option Boards Appendix F...
Страница 800: ...766 Specifications for External Power Supply Expansion Appendix H...
Страница 806: ...772 Index W Work Area 165 work bits 165 work words 165 write protection 379...
Страница 808: ...774 Revision History...
Страница 809: ......