3. Instructions
Operand
C
Inputs to a CS1W-INT01/CJ1W-INT01
Interrupt Input Unit (16 inputs/Unit)
Inputs to a CJ1M CPU Unit's Built-in Inputs
(4 inputs/Unit)
Note When the up/down differentiation setting is changed, all detected interrupt inputs will be cleared.
(3) Disabling/Enabling a Scheduled Interrupt Task's Timer Interrupt
Operand
N
4: Interrupt task 0 (interrupt task 2)
5: Interrupt task 1 (interrupt task 3)
Note 1 Only scheduled interrupt 0 can be used with the CJ1M-CPU11/21.
2 The scheduled interrupts (0 and 1) cannot be used with a CJ2 CPU Unit if the synchronous unit operation function is
enabled.
C
Scheduled interrupt time units
(Set in the PLC Setup.)
Any time unit setting
10 ms
1 ms
0.1 ms
Note High-speed interrupt function can be used with CJ2 CPU Units with unit version 1.1 or later to set an inter-
rupt interval of 0.1 ms (&1 decimal or #0001 hex) for scheduled interrupt 1 (interrupt task 2). This setting can-
not be used for other interrupts.
(4) Resetting and Starting Scheduled Interrupts (CJ1M 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
704
Interrupt Input
Set to 0000 to FFFF hex. Bits 0 to 15 correspond to each interrupt task. Individual bit
settings are as follows:
0: Up-differentiation (Detect rising edge.)
1: Down-differentiation (Detect falling edge.)
0000 hex: Up-differentiation (Detect rising edge.)
0001 hex: Down-differentiation (Detect falling edge.)
0 decimal (0000 hex):
Disable interrupt. (Stop internal timer.)
1 to 9,999 decimal (0001 to 270F hex):
Enable interrupt. (Start internal timer with interrupt interval between 10 and 99,990 ms.)
1 to 9,999 decimal (0001 to 270F hex):
Enable interrupt. (Start internal timer with interrupt interval between 1 and 9,999 ms.)
CJ1M CPU Units
5 to 9,999 decimal (0005 to 270F hex):
Enable interrupt. (Start internal 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.
CJ1-H-R and CJ2 CPU Units
2 to 9,999 decimal (0002 to 270F hex):
Enable interrupt. (Start internal timer with interrupt interval between 0.2 and 999.9 ms.)
Note Setting 0001 cannot be used. An error will occur if 0001 is set. (See note.)
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.
Contents
Interrupt Mask
Contents
Scheduled Interrupt No.
Scheduled interrupt set time
Contents
Scheduled Interrupt No.
Scheduled interrupt set time
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers