EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 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 #762 background imageLoading...
Page #762 background image
3. Instructions
724
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Flags
Function
Depending on the value of N, CLI(691) clears/retains the specified recorded causes of I/O interrupts or
input interrupts, sets the time before execution of the first scheduled interrupt, or clears/retains the
specified recorded causes of high-speed counter interrupts (CJ1M or CJ2M CPU Unit built-in high-
speed counter inputs only).
(1) Clearing/Retaining Recorded Interrupt Causes for I/O Interrupts or Input Interrupts (N = 0 to
3, 6 to 9, or 100 to 107)
CLI(691) clears a recorded cause of the interrupt input specified by N when the corresponding bit
of C is ON, and retains the recorded cause of the interrupt input when the corresponding bit is OFF.
If an interrupt task is being executed and an interrupt input with a different interrupt number is
received, execution of the corresponding interrupt task is placed on hold and that interrupt cause is
recorded internally. The interrupt tasks for the recorded I/O interrupt causes are executed after
execution of the current interrupt task has been completed in order of their priority.
If you want to cancel execution of I/O interrupt tasks or input interrupt tasks that are on hold, use
CLI(691) to clear the recorded interrupt causes before the interrupt tasks are executed.
(2) Setting the Time to the First Scheduled Interrupt (N = 4 or 5)
When N is 4 or 5, the contents of C specifies the time interval to the first scheduled interrupt.
Note 1 The CJ1M-CPU11/21 supports only one scheduled interrupt task for scheduled interrupt 0 (interrupt task
2).
2 The time unit for the time to the first interrupt is set as the Schedule Interrupt Interval in the PLC Setup
(default: 10 ms).
Name Label Operation
Error Flag P_ER • ON if N is not within the specified range (0, 1, or 4 to 11 for CJ1M CPU Unit; 0, 1, 4 to 13, or 100 to
107 for CJ2M CPU Unit; or 0 to 5 for other CPU Units).
• ON if C is not within the specified range of 0000 to 00FF hex when N is 0 to 3 (for I/O interrupts and
C200HS-INT only).
• ON if C is not 0 or 1 (for I/O interrupts and CJ1M/CJ2M CPU Unit built-in input interrupt or high-speed
counter interrupt).
• ON if C is not within the specified range of 0 to 9,999 decimal (0000 to 270F hex) for scheduled inter-
rupts.
• I/O interrupt specified: For a CJ2M CPU Unit, ON for any function that uses inputs on the Interrupt
Input Unit even if a CJ1W-INT01 Interrupt Input Unit is not mounted.
• I/O interrupt specified: ON if using input interrupts is not enabled for the port specified with N when
input interrupts are cleared or saved for a CJ1M/CJ2M CPU Unit built-in input.
• High-speed counter specified: ON if using a high-speed counter is not enabled for the port specified
with N when input interrupts are cleared or saved for a CJ1M/CJ2M CPU Unit built-in high-speed
counter.
• ON when 4 or 5 (scheduled interrupt specification) is set for N when synchronous unit operation is
enabled for a CJ2H CPU Unit.
• For a CJ2M CPU Unit, ON for any function that uses I/O on the Pulse I/O Module even if a Pulse I/O
Module is not mounted.
• OFF in all other cases.
Interrupt
input n
Internal
status
Recorded interrupt retained
Recorded interrupt cleared
Internal status
Interrupt input n
MSKS(690)
Execution of scheduled
interrupt task.
Time to first
scheduled interrupt

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals