![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262168.webp)
10 Interrupts
10-12
CP2E CPU Unit Software User’s Manual(W614)
Specifying MSKS Operands (N and C)
MSKS Operands
* Either is reset.
Example
Precautions for Correct Use
Precautions for Correct Use
•
Set a scheduled interrupt interval is longer than the time required to execute the correspond-
ing interrupt task.
•
If you shorten the scheduled interrupt interval and increase the execution frequency of the
scheduled interrupt task, the cycle time will increase, and this will affect the execution timing of
cyclic tasks.
•
If an interrupt task is being executed for another interrupt (input interrupt or high-speed
counter interrupt) when the scheduled interrupt occurs, the scheduled interrupt will not be exe-
cuted until the other interrupt task had been completed.
Even in this case, measurement of internal timer is continually executed in parallel, so the exe-
cution of scheduled interrupt tasks will not be delayed.
•
Scheduled interrupt interval cannot be changed during the startup of scheduled interrupt.
Change the interval after the scheduled interrupt has stopped.
MSKS Operands
N
C
Interrupt number
Scheduled interrupt interval
Scheduled interrupt (interrupt
task 1)*
14: Reset and restart
4: Reset and restart
0 decimal: Disable interrupt (stop internal timer)
10 to 9,999 decimal:Enable interrupt (Reset internal timer
and then start timer with interrupt interval between 1.0
and 999.9 ms)
MSKS
4
&10
E
N
D
E
N
D
Cyclic tasks
Sched
u
led Interr
u
pt Time Unit
Sched
u
led interr
u
pt
1 ms
In inter
v
als of 1 ms
Interr
u
pt task 1
Interr
u
pt
Содержание 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: ......