192
Interrupt Functions
Section 5-1
MSKS(690) Operands
Note
*Input interrupts 6 and 7 are not supported by the Y CPU Units.
Writing the Interrupt
Task’s Program
Create programs for interrupt tasks 140 to 147, 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.00
goes ON.
Settings
1,2,3...
1.
Connect an input device to input 0.00.
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)
#0000: Up-
differenti-
ated
#0001:
Down-differ-
entiated
100 (or 6)
#0000:
Enable inter-
rupt
#0001: Dis-
able inter-
rupt
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
Input interrupt 6* 146*
116
106
Input interrupt 7* 147*
117
107
@MSKS(690)
110
#0000
@MSKS(690)
100
#0000
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.
Содержание CP1H CPU UNITS - PROGRAMMING 05-2007
Страница 2: ......
Страница 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Страница 4: ...iv...
Страница 10: ...x...
Страница 18: ...xviii...
Страница 22: ...xxii...
Страница 34: ...xxxiv Conformance to EC Directives 6...
Страница 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Страница 370: ...336 Analog I O XA CPU Units Section 5 5...
Страница 552: ...518 Trouble Shooting Section 8 7...
Страница 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Страница 598: ...564 Sample Application Section 9 12...
Страница 642: ...608 Standard Models Appendix A...
Страница 643: ...609 Appendix B Dimensions Diagrams X XA and Y CPU Units 90 100 110 140 150 8 85 Four 4 5 dia holes...
Страница 652: ...618 Dimensions Diagrams Appendix B...
Страница 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Страница 776: ...742 PLC Setup Appendix G...
Страница 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Страница 786: ...752 Revision History...