EasyManuals Logo
Home>Omron>Controller>SYSMAC CV Series

Omron SYSMAC CV Series User Manual

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #399 background imageLoading...
Page #399 background image
!
387
Interrupt program 3
Interrupt program 0
Interrupt program 1
Interrupt program 2
Interrupt program 3
Numbers 4 or 5 designate a scheduled interrupt, and CLI(154) sets the time to
the first interrupt. The time to the first interrupt can be set between 10 and
99,990 ms, depending on both the content of S and the time unit set in the PC
Setup. S can have any value between 0001 and 9999, and time units can be and
set to 0.5 ms, 1 ms, or 10 ms.
Caution CLI(154) can be used to change the time interval to the next interrupt for one
cycle. The new time interval is effective immediately. The scheduled interrupt
may never actually occur if the time to the first interrupt is changed repeatedly,
i.e., before the interrupt has time to occur.
N must be between 0 and 5 for the CV1000, CV2000, CVM1-CPU11-EV2, or
CVM1-CPU21-EV2 or between 0 and 4 for the CV500 or CVM1-CPU01-EV2.
S must be between 0000 and 00FF when N is between 0 and 3. S must be BCD
between 0000 and 9999 when N is 4 or 5.
If the ER Flag (A50003) is turned ON, the instruction will not be executed.
I/O interrupts and scheduled interrupts are masked when power is turned on or
the PC mode is changed.
Both the scheduled interrupt time and the time to the first scheduled interrupt
must be 10 ms or longer.
END(001) is required at the end of both the main program and scheduled inter-
rupt program.
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): N or S contain incorrect data
(e.g., data in S is not BCD when N is 4 or 5).
Content of *DM word is not BCD when set for BCD.
A value of 5 is entered for N in the CV500 or
CVM1-CPU01-EV2.
The following program shows the overall structure and operation of the sched-
uled interrupt.
Here, the interrupt program is started 20 ms after execution of CLI(154), and re-
peated every 100 ms thereafter. When bit 010000 is turned ON, CLI(154)
changes the time interval to the next interrupt to 50 ms for one cycle. When bit
010001 is turned ON, MSKS(153) changes the scheduled time interval to
200 ms. The scheduled interrupts continue until bit 010002 is turned ON, and
MSKS(153) is executed with S set to 0000.
Precautions
Example
Interrupt Control Section 5-31

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CV Series and is the answer not in the manual?

Omron SYSMAC CV Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CV Series
CategoryController
LanguageEnglish

Related product manuals