Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 747

Table of Contents

Advertisement

(4) Resetting and Starting Scheduled Interrupts (CJ1M and CJ2M CPU Units Only)
Operand
N
14: Scheduled interrupt 0 (interrupt task 2)
15: Scheduled interrupt 1 (interrupt task 3)
Note Only scheduled interrupt 0 can be used with the CJ1M-CPU11/21.
C
Scheduled interrupt time units
(Set in the PLC Setup.)
Any time unit setting
10 ms
1 ms
0.1 ms
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
C
OK
OK
OK
Flags
Name
Error Flag
Equals Flag
Negative Flag
Note If high-speed interrupt function is enabled for a CJ2 CPU Unit with unit version 1.1 or later, an error will not occur and the
Error Flag will remain OFF even if the time unit is set to 0.1 ms for scheduled interrupt 0 (N = 4).
Related PLC Setup Settings
Name
Scheduled Interrupt
Specifies the time unit to use to specify the scheduled interrupt time. Set the time unit when executing scheduled
Interval
interrupts.
The scheduled interrupt time is set using MSKS(690).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0 decimal (0000 hex):
Disable interrupt. (Stop internal timer.)
1 to 9,999 decimal (0001 to 270F hex):
Enable interrupt. (Reset internal timer value, and then start the timer with an interrupt interval
between 10 and 99,990 ms.)
1 to 9,999 decimal (0001 to 270F hex):
Enable interrupt. (Reset internal timer value, and then start timer with an interrupt interval
between 1 and 9,999 ms.)
5 to 9,999 decimal (0005 to 270F hex):
Enable interrupt. (Reset internal timer value, and then start timer with interrupt interval between
0.5 and 999.9 ms.)
Note Settings 0001 to 0004 cannot be used. An error will occur if one of these settings is used.
CJ2M CPU Units
4 to 9,999 decimal (0004 to 270F hex): Enable interrupt. (Start internal timer with interrupt
interval between 0.4 and 999.9 ms.)
Note Settings 0001 to 0003 decimal (0001 to 0003 hex) cannot be used. An error will occur if
one of these settings is used.
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
---
---
---
---
---
OK
OK
OK
OK
OK
OK
Label
P_ER
• ON if N is not within the specified range (0 to 15 for the CJ1M CPU Unit, 0 to 15, 100 to 107, or 110 to
117 for the CJ2M CPU Unit; and 0 to 5 for other CPU Units). Errors when specifying I/O Interrupts:
• When using C200HS-INT01 interrupt inputs, the Error Flag will go ON if C is not between 0000 and
00FF hex.
• When using the CJ1M or CJ2M CPU Unit's built-in interrupt inputs, the Error Flag will go ON if C is
not between 0 and 3. Errors when specifying Scheduled Interrupts:
• When the time units are set to 10 ms or 1 ms, the Error Flag will go ON if C is not between 0 and
9,999 decimal (0000 to 270F hex).
• When using a CJ1M CPU Unit with the time units set to 0.1 ms, the Error Flag will go ON if C is not
between 5 and 9,999 decimal (0005 to 270F hex).
• When using a CJ1-H-R, CJ2H, or CJ2M CPU Unit with the time units set to 0.1 ms, the Error Flag will
go ON if C is not 0 or between 2 and 9,999 decimal (0000 or 0002 to 270F hex). (See note.)
• ON if N is set to 4 or 5 (scheduled interrupt designation) for a CJ2H CPU Unit and the synchronous
unit operation function is enabled.
• OFF in all other cases.
P_EQ
OFF
P_N
OFF
Contents
Scheduled Interrupt No.
Scheduled interrupt set time
addresses
Con-
stants
*DM
DR
*EM
---
---
---
OK
OK
OK
Operation
Description
3. Instructions
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
Settings
10 ms (default)
1.0 ms
0.1 ms
3
TR
bits
---
---
711

Advertisement

Table of Contents
loading

Table of Contents