10-11
10 Interrupts
CP2E CPU Unit Software User’s Manual(W614)
1
0
-3
Sc
h
e
du
le
d I
n
te
rr
up
ts
10
10-
3
-2 Flo
w o
f Operation
z
Writing the Interrupt Task Program
Create the program for interrupt task 1, which is executed for the scheduled interrupt. Right-click a
program in the CX-Programmer and select
Properties
. Select Interrupt Tasks 01 (scheduled inter-
rupt) in
Task Type
Field of the Program Properties Dialog Box.
z
Execute MSKS in a Cyclic Task
The MSKS instruction must be executed from the ladder program in a cyclic task in order to use
scheduled 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.
10-3-2 Flow of Operation
Write the program for the corresponding interrupt task 1 (fixed).
Use MSKS to specify the scheduled interrupt interval.
The setting can be 1 ms or longer.
Set N to 4 or 14 in the MSKS instruction.
Writing the Ladder Program
Exec
u
te MSKS
instr
u
ction in a cyclic
task
Interr
u
pt task
Create
ladder
program
@MSKS
N
C
Exec
u
tion condition
Specifies sched
u
led interr
u
pt (interr
u
pt task 1)
Sets the sched
u
led interr
u
pt inter
v
al and starts timing
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......