Omron CS1G/H-CPUxxH Instructions Manual page 788

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Interrupt Control Instructions
Scheduled Interrupt
Operation
1,2,3...
3. The scheduled time interval setting and interrupt processing
• Set the scheduled time interval with MSKS(690).
• After MSKS(690) has been executed and the time to the first sched-
uled interrupt (set with CLI(691)) has passed, the task currently being
processed will be interrupted and the scheduled interrupt task will be
executed.
• When the scheduled interrupt task execution reaches an END(001) in-
struction, program execution will resume at the point where the sched-
uled interrupt occurred.
• Program execution will be interrupted and the scheduled interrupt task
will be executed again when the scheduled time interval has passed.
The scheduled interrupt task will be executed repeatedly until it is dis-
abled.
4. Disabling a Scheduled Interrupt
• A scheduled interrupt task can be disabled by setting the scheduled
time interval to 0000 with MSKS(690).
• When enabling the scheduled interrupt task again, be sure to set the
time to the first scheduled interrupt with CLI(691) before setting the
scheduled time interval again with MSKS(690).
In the following example, the scheduled time interval units are set to 10 ms in
the PLC Setup.
1. The time to the first scheduled interrupt is set to 20 ms with CLI(691).
2. The scheduled time interval is set to 100 ms and execution of scheduled
interrupt 2 is enabled with MSKS(690).
3. Scheduled interrupt 2 is executed 20 ms after execution of MSKS(690) and
every 100 ms thereafter.
4. After scheduled interrupt processing has begun, the time to the next
scheduled interrupt can be changed with CLI(690), but this setting is effec-
tive only one time.
1-cycle
ON Flag
at startup
Section 3-20
1
2
4
5
6
767

Advertisement

Table of Contents
loading

Table of Contents