382
Interrupt Functions
Section 8-1
MSKS(690) Operands
Writing the Interrupt
Task’s Program
Create programs for interrupt tasks 140 to 145, which are executed by the cor-
responding input interrupt. Always put an END(001) instruction at the last
address of the program.
Input Interrupt
Settings and
Operation
This example shows how to execute interrupt task 140 when input CIO 0.04
goes ON.
Settings
1,2,3...
1.
Connect an input device to input CIO 0.04.
2.
Use the CX-Programmer to set input 0 as an input interrupt in the PLC Set-
up.
3.
Use the CX-Programmer to create the program to use for interrupt pro-
cessing and allocate the program to interrupt task 140.
4.
Use the CX-Programmer to write MSKS(690) in the program.
Input interrupt
number
Interrupt
task
number
1. Up-differentiation or
Down-differentiation
2. Enabling/Disabling
the input interrupt
N
S
N
S
Input
interrupt
number
Execution
condition
Input
interrupt
number
Enable/
Disable
Input interrupt 0
140
110 (or 10)
#0: Up-dif-
ferentiated
#1: Down-
differenti-
ated
100 (or 6)
#0: Enable
interrupt
#1: Disable
interrupt
Input interrupt 1
141
111 (or 11)
101 (or 7)
Input interrupt 2
142
112 (or 12)
102 (or 8)
Input interrupt 3
143
113 (or 13)
103 (or 9)
Input interrupt 4
144
114
104
Input interrupt 5
145
115
105
MSKS(690)
110
#0
MSKS(690)
100
#0
W0.00
(Execution condition)
1. Specifies input interrupt 0.
2. Specifies up-differentiated input interrupt.
3. Specifies input interrupt 0.
4. Enables the input interrupt.
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......