10 Interrupts
10-6
CP2E CPU Unit Software User’s Manual(W614)
z Execute MSKS Instruction in a Cyclic Task
Execute the MSKS instruction from the ladder program in a cyclic task to use input interrupts.
MSKS has the following two functions and two of this instruction are normally used in combination.
(1)Specifying whether to detect ON or OFF signals.
(2)Enabling input interrupts.
The MSKS instruction must be executed only once to make the settings, so in general execute
MSKS in just one cycle using the upwardly differentiated variation of the instruction.
The first MSKS instruction can be omitted. If it is omitted, an interrupt will be created when the input
turns ON by default.
z Specifying MSKS Operands (N and C)
(1)Specifying to Detect ON or OFF Input Signals
* Interrupt input 8 and 9 are only supported by N20/30/40/60 CPU Units.
Terminal
Corresponding
bit address
PLC Setup on
Built-in Input
Tab Page
Interrupt
task number
Operand N Operand C
Interrupt
identifier
Specifying up/down
differentiation of an
interrupt input
02 on CIO 0
terminal block
CIO 0.02 Interrupt input
IN2
2 112 #0000:
Up-differentiation
#0001:
Down-differentiation
03 on CIO 0
terminal block
CIO 0.03 Interrupt input
IN3
3 113
04 on CIO 0
terminal block
CIO 0.04 Interrupt input
IN4
4114
05 on CIO 0
terminal block
CIO 0.05 Interrupt input
IN5
5115
06 on CIO 0
terminal block
CIO 0.06 Interrupt input
IN6
6116
07 on CIO 0
terminal block
CIO 0.07 Interrupt input
IN7
7117
08 on CIO 0
terminal block
CIO 0.08 Interrupt input
IN8*
8 118
09 on CIO 0
terminal block
CIO 0.09 Interrupt input
IN9*
9119
@MSKS
N
C
C
@MSKS
N
Execution condition
(1)Specifies creating an interrupt when
the input turns OFF or when it turns
ON.
(2)Enables input interrupts.