Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-300
CP1E CPU Unit Instructions Reference Manual(W483)
MSKS
Applicable Program Areas
Operands
(1) I/O Interrupt Task
Note When the up/down differentiation setting is changed, all detected interrupt inputs will be cleared.
(2) Resetting and Starting Scheduled Interrupts
Instruction Mnemonic Variations
Function
code
Function
SET INTERRUPT MASK MSKS @MSKS 690
Controls whether I/O interrupt tasks and sched-
uled interrupt tasks are executed.
Symbol
MSKS
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
N Interrupt identifier --- 1
C Control data UINT 1
Operand
Contents
Disabling/Enabling Interrupt Input Setting Specifying Up/Down Differentiation of an Interrupt Input
N
I/O Interrupt No. I/O Interrupt No.
102: Interrupt input 2 (interrupt task 2)
103: Interrupt input 3 (interrupt task 3)
104: Interrupt input 4 (interrupt task 4)
105: Interrupt input 5 (interrupt task 5)
106: Interrupt input 6 (interrupt task 6)
(Cannot be used in CP1E-E10D-)
107: Interrupt input 7 (interrupt task 7)
(Cannot be used in CP1E-E10D-)
112: Interrupt input 2 (interrupt task 2)
113: Interrupt input 3 (interrupt task 3)
114: Interrupt input 4 (interrupt task 4)
115: Interrupt input 5 (interrupt task 5)
116: Interrupt input 6 (interrupt task 6)
(Cannot be used in CP1E-E10D-)
117: Interrupt input 7 (interrupt task 7)
(Cannot be used in CP1E-E10D-)
C
Interrupt Mask Interrupt Mask
0000 hex: Enable (unmask) the interrupt (direct mode).
0001 hex: Disable (mask) the interrupt (direct mode).
0000 hex: Up-differentiation (Detect rising edge.)
0001 hex: Down-differentiation (Detect falling edge.)
Operand Contents
N
Scheduled Interrupt No.
4 or 14: Scheduled interrupt 0 (interrupt task 1)
C
Scheduled interrupt time units Scheduled interrupt set time
Any time unit setting 0 decimal (0000 hex):
Disable interrupt. (Stop internal timer.)
0.1 ms 10 to 9,999 decimal (000A to 270F hex):
Enable interrupt. (Reset internal timer value, and then start timer with interrupt interval between
1.0 and 999.9 ms.)
Note Settings 0001 to 000A cannot be used. An error will occur if one of these settings is used.
N: Interrupt identifier
C: Control data
MSKS(690)
N
C