186
INT(89) is used both to control interrupts from Interrupt Input Units and to
control the scheduled interrupt. If N is 000, 001, 002, or 003, it indicates an
Interrupt Input Unit number and INT(89) is used to control interrupts from the
designated Unit. If N is 004, INT(89) is used to control the scheduled inter-
rupt. Interrupts from Interrupt Input Units and scheduled interrupts are cov-
ered separately.
Interrupts from Interrupt Input Units (N = 000, 001, 002, or 003)
Up to four (0 to 3) Interrupt Input Units can be used for one PC. Interrupt In-
put Unit numbers are assigned sequentially starting from 0 and following the
same order as the numbers of the I/O channels to which the Units are
mounted.
For each Interrupt Input Unit, bits 00 through 07 may be used for interrupt
signals. Bits 08 through 15 are not used. When one of the bits assigned to an
Interrupt Input Unit turns ON, the subroutine associated with it is called and
executed. A unique interrupt routine number is associated with each bit ac-
cording to the following table.
Interrupt Input Unit
Subroutine
Interrupt Input Unit
Subroutine
Unit no.
Bit no.
Unit no.
Bit no.
0
0
00
2
0
16
1
01
1
17
2
02
2
18
3
03
3
19
4
04
4
20
5
05
5
21
6
06
6
22
7
07
7
23
1
0
08
3
0
24
1
09
1
25
2
10
2
26
3
11
3
27
4
12
4
28
5
13
5
29
6
14
6
30
7
15
7
31
The subroutines used by these interrupts may also be called from the pro-
gram using SBS(91). Calls to interrupt routines will generate the error mes-
sage “SBS UNDEFD” during program check, but it will not inhibit program
execution.
CC is used to specify the desired operation as shown below. The function of
D will vary with the value of CC (see below).
CC = 000: Masking/unmasking interrupts
001: Clearing interrupts
002: Accessing the current mask status
A control code of CC = 000 causes those bits of the designated Interrupt In-
put Unit corresponding to ON bits in D to be masked, and those correspond-
ing to OFF bits in D to be unmasked. All masked interrupts will still be re-
corded. When a masked bit has been recorded as being ON, the subroutine
Description
Description
CC = 000
(Mask/Unmask)
Subroutines and Interrupt Control
Section 5-20
Содержание SYSMAC C1000H
Страница 1: ...Cat No W140 E1 04 Programmable Controllers SYSMAC C1000H C2000H...
Страница 2: ...C1000H C2000H Programmable Controllers Operation Manual Revised May 2003...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 395: ...Cat No W140 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor...
Страница 396: ...Cat No W140 E1 04 SYSMAC C1000H C2000H Programmable Controllers OPERATION MANUAL...