Cli - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

(2) N = 4: Setting the Time to the First Scheduled Interrupt Task
When N is 4, the content of C specifies the time interval to the first scheduled interrupt task.
MSKS(690)
Time to first
scheduled interrupt
(3) N = 10 or 15: Clearing High-speed Counter Interrupts
When N is 10 or 15, CLI(691) clears or retains the recorded high-speed counter interrupt (target
comparison) specified by N.
Sample program
Example for Input Interrupts
When W0.00 turns ON in the following example, CLI(691) clears all interrupts stored for input interrupt 2.
W0.00

CLI

N
102
S
#0001
Example for First Scheduled Interrupts
When W0.01 turns ON in the following example, CLI(691) sets the time to the first schedule interrupt
10.5 ms (0069 hex = 105 decimal).
W0.01
CLI
N
4
S
D1100
Example for High-speed Counter Interrupts
When W0.02 turns ON in the following example, CLI(691) clears all interrupts stored for high-speed
counter interrupt 0.
W0.02
CLI
10
N
#0001
S
CP1E CPU Unit Instructions Reference Manual(W483)
Execution of scheduled
interrupt task.
15
D1100
0
0
0
6
9
2 Instructions
2
2-305

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents