![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414056.webp)
2-1
Section
CPM2A/CPM2C Interrupt Functions
35
Reading Current Mask Status
This function is used to read the current mask status for input numbers 00003 to
00006 (interrupt inputs 0 to 3).
Interrupt control designation (002: Read current mask status)
Fixed at 000.
Control data word
Specifies/stores 0.
Specifies input 00006 (interrupt input 3).
Specifies input 00005 (interrupt input 2).
Specifies input 00004 (interrupt input 1).
Specifies input 00003 (interrupt input 0).
0: Mask is cleared (interrupt inputs permitted).
1: Mask is set (interrupt inputs prohibited).
(@)INT(89)
002
000
C
2
Masking or Unmasking All Interrupts
This function is used to mask or unmask all interrupt processing, including inter-
rupt inputs (interrupt input mode and counter mode), interval timer interrupts,
and high-speed counters. Masked inputs are recorded, but ignored.
Masking All Interrupts
Interrupt control designation (100: Mask all interrupts)
Fixed at 000.
Fixed at 000.
(@)INT(89)
100
000
000
Unmasking All Interrupts
Interrupt control designation (200: Unmask all interrupts)
Fixed at 000.
Fixed at 000.
(@)INT(89)
200
000
000
The masking or unmasking all interrupts cannot be executed within an interrupt
subroutine.
If causes for interrupts occur while all interrupts are masked, the causes will be
recorded for each interrupt but the interrupt processing will not be executed.
When “unmask all interrupts” is executed, the processing will then be carried out
according to the interrupt mask status at that point in time.
Interrupt masks cannot be cleared simply by executing “unmask all interrupts.”
Executing “unmask all interrupts” merely restores the status that was in effect
prior to the execution of “mask all interrupts.”
Note
INT(89) must be executed in order, with “mask all interrupts” followed by “un-
mask all interrupts.”
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...