Omron CP1E CPU UNIT SOFTWARE User Manual page 136

Cp1e cpu unit software
Table of Contents

Advertisement

10 Interrupts
Specifying MSKS Operands (N and C)
MSKS Operands
Interrupt number
Scheduled interrupt (interrupt
task 1)*
14: Reset and restart
4: Reset and restart
* Either is reset.
Example
Cyclic tasks
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.
10-12
MSKS Operands
N
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)
Scheduled Interrupt Time Unit
Scheduled interrupt
1 ms
MSKS
4
&10
Interrupt
END
C
Scheduled interrupt interval
In intervals of 1 ms
Interrupt task 1
END
CP1E CPU Unit Software User's Manual(W480)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF