711
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Interrupt Control Instructions
3
MSKS
MSKS
Applicable Program Areas
Operands
(1) Disabling/Enabling Input Interrupts for I/O Interrupt Tasks
Instruction Mnemonic Variations
Function
code
Function
SET INTERRUPT MASK MSKS @MSKS 690 Controls interrupts.
Symbol
MSKS
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
N Interrupt identifier --- 1
C Control data UINT 1
Operand Contents
N
Interrupt input Interrupt identifier
Inputs to a CS1W-INT01/CJ1W-INT01
Interrupt Input Unit (16 inputs/Unit)
0: Unit number 0
I/O interrupts 0 to 15 (interrupt tasks 100 to 115)
1: Unit number 1
I/O interrupts 16 to 31 (interrupt tasks 116 to 131)
Inputs to a C200HS-INT01 Interrupt Input
Unit (8 inputs/Unit)
0: Unit number 0
I/O interrupts 0 to 7 (interrupt tasks 100 to 107)
1: Unit number 1
I/O interrupts 8 to 15 (interrupt tasks 108 to 115)
2: Unit number 2
I/O interrupts 16 to 23 (interrupt tasks 116 to 123)
3: Unit number 3
I/O interrupts 24 to 31 (interrupt tasks 124 to 131)
Inputs to a CJ1M CPU Unit's Built-in Inputs
(4 inputs/Unit)
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)
CJ2M CPU Unit inputs (when Pulse I/O
Module is mounted) (4 inputs/Block)
100: Input interrupt 0 (Block 0) (interrupt task 140)
101: Input interrupt 1 (Block 0) (interrupt task 141)
102: Input interrupt 2 (Block 0) (interrupt task 142)
103: Input interrupt 3 (Block 0) (interrupt task 143)
104: Input interrupt 4 (Block 1) (interrupt task 144)
105: Input interrupt 5 (Block 1) (interrupt task 145)
106: Input interrupt 6 (Block 1) (interrupt task 146)
107: Input interrupt 7 (Block 1) (interrupt task 147)
Note For input interrupts 0 to 3, 6 to 9 can also be used as the interrupt number.
C
Interrupt input Interrupt mask
Inputs to a CS1W-INT01 or CJ1W-INT01
Interrupt Input Unit (16 inputs/Unit)
Set to 0000 to FFFF hex
Bits 0 to 15 correspond to each interrupt task. Individual bit settings are as follows:
0: Enable (unmask) the interrupt.
1: Disable (mask) the interrupt.
Inputs to a C200HS-INT01 Interrupt Input
Unit (8 inputs/Unit)
Set to 0000 to 00FF hex
Bits 0 to 7 correspond to each interrupt task. Individual bit settings are as follows:
0: Enable (unmasks) the interrupt.
1: Disable (mask) the interrupt.
Inputs to a CJ1M-CPU2@ CPU Unit's Built-in
Inputs (4 inputs/Unit)
CJ2M CPU Unit inputs (when Pulse I/O
Module is mounted) (4 inputs/Block)
0000 hex: Enable (unmask) the interrupt (direct mode).
0001 hex: Disable (mask) the interrupt (direct mode).
0002 hex: Start decrementing counter and enable interrupt (counter mode).
0003 hex: Start incrementing counter and enable interrupt (counter mode).
N: Interrupt identifier
C: Control data
MSKS(690)
N
C