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/
3
0/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
0
3
on CIO 0
terminal block
CIO 0.0
3
Interrupt input
IN
3
3
11
3
04 on CIO 0
terminal block
CIO 0.04
Interrupt input
IN4
4
114
05 on CIO 0
terminal block
CIO 0.05
Interrupt input
IN5
5
115
06 on CIO 0
terminal block
CIO 0.06
Interrupt input
IN6
6
116
07 on CIO 0
terminal block
CIO 0.07
Interrupt input
IN7
7
117
0
8
on CIO 0
terminal block
CIO 0.0
8
Interrupt input
IN
8
*
8
11
8
09 on CIO 0
terminal block
CIO 0.09
Interrupt input
IN9*
9
119
@MSKS
N
C
C
@MSKS
N
Exec
u
tion condition
(1)Specifies creating an interr
u
pt
w
hen
the inp
u
t t
u
rns OFF or
w
hen it t
u
rns
O
N
.
(2)Ena
b
les inp
u
t interr
u
pts.
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......