Omron SYSMAC CP Series Instruction & Reference Manual page 336

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
MSKS
Instruction
SET INTERRUPT MASK
Symbol
Applicable Program Areas
Area
Step program areas
Usage
OK
Operands
Operand
N
Interrupt identifier
C
Control data
(1) I/O Interrupt Task
Operand
102: Interrupt input 2 (interrupt task 2)
103: Interrupt input 3 (interrupt task 3)
104: Interrupt input 4 (interrupt task 4)
N
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 - )
C
0000 hex: Enable (unmask) the interrupt (direct mode).
0001 hex: Disable (mask) the interrupt (direct mode).
Note When the up/down differentiation setting is changed, all detected interrupt inputs will be cleared.
(2) Resetting and Starting Scheduled Interrupts
Operand
N
4 or 14: Scheduled interrupt 0 (interrupt task 1)
Scheduled interrupt time units
Any time unit setting
C
0.1 ms
2-300
Mnemonic
Variations
MSKS
@MSKS
Description
Disabling/Enabling Interrupt Input Setting
I/O Interrupt No.
Interrupt Mask
0 decimal (0000 hex):
Disable interrupt. (Stop internal timer.)
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.
Function
code
Controls whether I/O interrupt tasks and sched-
690
uled interrupt tasks are executed.
MSKS
MSKS(690)
N: Interrupt identifier
N
C: Control data
C
Subroutines
OK
Data type
---
UINT
Contents
Specifying Up/Down Differentiation of an Interrupt Input
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 - )
0000 hex: Up-differentiation (Detect rising edge.)
0001 hex: Down-differentiation (Detect falling edge.)
Contents
Scheduled Interrupt No.
Scheduled interrupt set time
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Interrupt tasks
OK
Size
1
1
I/O Interrupt No.
Interrupt Mask

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents