3. Instructions
MSKR
Instruction
READ INTERRUPT MASK
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
N
Interrupt number
D
Destination word
(1) Reading the Interrupt Mask Settings Set for I/O Interrupt Tasks
Operand
N
Inputs to a CS1W-INT01/CJ1W-INT01
Interrupt Input Unit (16 inputs/Unit)
Inputs to a C200HS-INT01 Interrupt Input
Unit (8 inputs/Unit)
Inputs to a CJ1M CPU Unit's Built-in Inputs
(4 inputs/Unit)
D
Inputs to a CS1W-INT01/CJ1W-INT01
Interrupt Input Unit (16 inputs/Unit)
Inputs to a C200HS-INT01 Interrupt Input
Unit (8 inputs/Unit)
Inputs to a CJ1M CPU Unit's Built-in Inputs
(4 inputs/Unit)
708
Mnemonic
Variations
MSKR
@MSKR
Block program areas
Step program areas
OK
OK
Description
Interrupt Input
Interrupt Input
Function
code
Reads the current interrupt control settings that
692
were set with MSKS(690).
MSKR
MSKR(692)
N
N: Interrupt number
D
D: Destination word
Subroutines
OK
Data type
---
UINT
Contents
Interrupt Input No.
0: Unit number 0 (interrupt tasks 100 to 115)
1: Unit number 1 (interrupt tasks 116 to 131)
0: Unit number 0 (interrupt tasks 100 to 107)
1: Unit number 1 (interrupt tasks 108 to 115)
2: Unit number 2 (interrupt tasks 116 to 123)
3: Unit number 3 (interrupt tasks 124 to 131)
6: Interrupt input 0 (interrupt task 140)
7: Interrupt input 1 (interrupt task 141)
8: Interrupt input 2 (interrupt task 142)
9: Interrupt input 3 (interrupt task 143)
Interrupt Mask
Range: 0000 to FFFF hex
Bits 0 to 15 correspond to each interrupt task. The meaning of the individual flags is
as follows:
0: Interrupt enabled (unmasked).
1: Interrupt disabled (masked).
Range: 0000 to 00FF hex
Bits 0 to 7 correspond to each interrupt task. The meaning of the individual flags is
as follows:
0: Interrupt enabled (unmasked).
1: Interrupt disabled (masked).
0000 hex: Interrupts enabled (unmasked) in direct mode.
0001 hex: Interrupts disabled (masked) in direct mode.
0002 hex: Interrupts enabled for decrementing counter in counter mode.
0003 hex: Interrupts enabled for incrementing counter in counter mode.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
1
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