EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

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 #757 background imageLoading...
Page #757 background image
719
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Interrupt Control Instructions
3
MSKR
(4) Reading the Present Value of a Scheduled Interrupts Internal Timer (CJ1M and CJ2M CPU
Units Only)
z Operand Specifications
Flags
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)
Operand Contents
N
Interrupt identifier
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.)
Read internal timer PV
10 ms 0 to 9,999 decimal (0000 to 270F hex):
Interrupt timer PV between 0 and 99,990 ms
1 ms 0 to 9,999 decimal (0000 to 270F hex):
Interrupt timer PV between 1 and 9,999 ms.
0.1 ms 0 to 9,999 decimal (0000 to 270F hex):
Interrupt timer PV between 0.0 and 999.9 ms.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
N --- --- --- --- --- --- --- --- --- --- OK ---
---
---
--- --- --- ---
D OKOKOKOKOKOKOKOK OK OK --- OK OK
Name Label Operation
Error Flag 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.

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