Omron CJ - INSTRUCTIONS Reference Manual page 757

Table of Contents

Advertisement

(4) Reading the Present Value of a Scheduled Interrupts Internal Timer (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.
D
Scheduled interrupt time units
(Set in the PLC Setup.)
10 ms
1 ms
0.1 ms
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
D
OK
OK
OK
Flags
Name
Error Flag
Function
MSKR(692) reads the interrupt task settings that were set with MSKS(690). The value of N specifies
the interrupt task and the kind of information that will be read.
(1) Interrupt Mask Status for I/O Interrupts and Input Interrupts (N = 0 to 3, 6 to 9, or 100 to 107)
Reads the masked/unmasked status of the input interrupts specified by N, and outputs that
information to the bits in D.
(2) Specifying the Interrupt Input Differentiation for I/O Interrupts and Input Interrupts (N = 2, 3,
10 to 13, or 110 to 117)
Reads the up/down differentiation settings of the interrupt inputs specified by N, and outputs that
information to the bits in D.
(3) Setting Internal Timers for Scheduled Interrupts (N = 4 or 5)
Reads the time set for the internal timer of the scheduled interrupt specified by N, and outputs that
information to D.
(4) N = 14 or 15: Reading a Scheduled Interrupt's Internal Timer PV
Reads the internal timer PV of the scheduled interrupt specified by N, and outputs that information
to D. The internal timer's PV is the time that has elapsed since the scheduled interrupt started
(when MSKS(690) was executed), or the time that has elapsed since the last scheduled interrupt
started. (CJ1M and CJ2M CPU Units Only)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0 to 9,999 decimal (0000 to 270F hex):
Interrupt timer PV between 0 and 99,990 ms
0 to 9,999 decimal (0000 to 270F hex):
Interrupt timer PV between 1 and 9,999 ms.
0 to 9,999 decimal (0000 to 270F hex):
Interrupt timer PV between 0.0 and 999.9 ms.
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).
• 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
the mask status or differentiation (edge) specification is read for a CJ1M/CJ2M CPU Unit built-in
input.
• 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.
Contents
Interrupt identifier
Read internal timer PV
addresses
Con-
stants
*DM
DR
*EM
---
---
OK
---
OK
---
OK
Operation
3. Instructions
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
3
TR
bits
---
---
719

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents