374
Interrupt Functions
Section 8-1
8-1
Interrupt Functions
8-1-1
Overview of CP1L-EL/EM Interrupt Functions
The CP1L-EL/EM CPU Unit’s processing is normally cyclical (overseeing pro-
cessing
→
program execution
→
I/O refreshing
→
peripheral servicing), with
cyclic tasks executed in the program execution stage of the cycle. The inter-
rupt functions can be used to temporarily interrupt this cyclic processing and
execute 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 145
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.
Refer to 7-1 High-speed Counters for details on high-speed counters.
Note
(1) Power OFF interrupts cannot be used with CP1L-EL/EM 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.
Содержание CP1L-EL20DR-D
Страница 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Страница 4: ...iv...
Страница 10: ...x...
Страница 22: ...xxii...
Страница 34: ...xxxiv Software Licenses and Copyrights 7...
Страница 178: ...144 Connecting the CX Programmer Section 5 1 Click the Connect button to connect and then connection online is completed...
Страница 192: ...158 Trial Operation and Debugging Section 5 3...
Страница 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Страница 666: ...632 Trouble Shooting Section 11 7...
Страница 696: ...662 Standard Models Appendix A...
Страница 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Страница 836: ...802 PLC Setup Appendix G...
Страница 838: ...804 TCP Status Transitions Appendix H...
Страница 840: ...806 Ethernet Network Parameters Appendix I...
Страница 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Страница 844: ...810 Ethernet Specifications Appendix K...
Страница 851: ...Index 817 work words 118 write protection 447...
Страница 852: ...818 Index...
Страница 854: ...820 Revision History...
Страница 855: ......