10-7
10 Interrupts
CP2E CPU Unit Software User’s Manual(W614)
10-2 Input Interrupts
10
10-2-2 Flow of Operation
(2)Enabling the Input Interrupt
* Interrupt input 8 and 9 are only supported by N20/30/40/60 CPU Units.
• Example
Terminal
Corresponding
bit address
PLC Setup on
Built-in Input
Tab Page
Interrupt
task number
Operand N Operand C
Interrupt
identifier
Enable/Disable
02 on CIO 0
terminal block
CIO 0.02 Interrupt input
IN2
2 102 #0000:
Enable interrupt
#0001:
Disable interrupt
03 on CIO 0
terminal block
CIO 0.03 Interrupt input
IN3
3 103
04 on CIO 0
terminal block
CIO 0.04 Interrupt input
IN4
4 104
05 on CIO 0
terminal block
CIO 0.05 Interrupt input
IN5
5 105
06 on CIO 0
terminal block
CIO 0.06 Interrupt input
IN6
6 106
07 on CIO 0
terminal block
CIO 0.07 Interrupt input
IN7
7 107
08 on CIO 0
terminal block
CIO 0.08 Interrupt input
IN8*
8 108
09 on CIO 0
terminal block
CIO 0.09 Interrupt input
IN9*
9 109
MSKS
112
#0000
END
END
01 03 0705 09 11
00 02 04 06 08 10
MSKS
102
#0000
Cyclic task
(1)Specifying Detecting ON or OFF Input Signals
For interrupt input IN2: Specify 112.
Specifies an interrupt when the input turns ON.
(2)Enabling Input Interrupt
For interrupt input IN2: Specify 102.
Enables Input interrupt.
The specified input interrupt (here, IN2) is
enabled when the MSKS instruction is executed.
Interrupt
Interrupt task 2
Built-in input terminal
CIO 0.02 turns ON
CIO 0