388
The control flow logic of the main program is unaffected by execution of the inter-
rupt program, i.e., immediately after the interrupt program has finished execu-
tion, control returns to the point in the main program where it was suspended.
00000 LD A50015
00001 CLI(154)
004
#0002
00002 MSKS(153)
004
#0010
00003 LD 010000
00004 CLI(154)
004
#0005
00005 LD 010001
00006 MSKS(153)
004
#0020
00007 LD 010002
00008 MSKS(153)
004
#0000
00500 END(001)
Scheduled interrupt program area
00600 END(001)
Address Instruction Operands
(154)
CLI 004 #0002
First Scan Flag
A500
15
(153)
MSKS 004 #0010
(001)
END
Scheduled interrupt program area
Main Program Area
(154)
CLI 004 #0005
0100
00
(153)
MSKS 004 #0020
0100
01
(153)
MSKS 004 #0000
0100
02
(001)
END
5-31-3 READ MASK: MSKR(155)
(155)
MSKR N D
D: Destination word CIO, G, A, DM, DR, IR
N: Interrupt source # (0 to 5)
Operand Data AreasLadder Symbol
Variations
j MSKR(155)
When the execution condition is OFF, MSKR(155) is not executed. When the
execution condition is ON, MSKR(155) writes the current mask status of the
designated Interrupt Input Unit into D if N is 0 to 3, or writes the scheduled inter-
rupt interval into D if N is 4 or 5. If N is between 0 and 3, it designates the unit
number of the Interrupt Input Units. If N is 4, it designates scheduled interrupt #0.
If N is 5, it designates scheduled interrupt #1.
N must be between 0 and 5 for the CV1000, CV2000, CVM1-CPU11-EV2, or
CVM1-CPU21-EV2 or between 0 and 4 for the CV500 or CVM1-CPU01-EV2.
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): N contains incorrect data.
A value of 5 is entered for N in the CV500 or
CVM1-CPU01-EV2.
Content of *DM word is not BCD when set for BCD.
Description
Precautions
Interrupt Control Section 5-31