7 APPLICATION INSTRUCTION
7.3 Program execution control instruction
335
7
Interrupt program mask
IMASK
This instruction enables or disables the execution of the interrupt program with the specified interrupt pointer number
according to the 16-point bit pattern starting from the device specified in (s).
■Descriptions, ranges, and data types
■Applicable devices
• This instruction enables or disables the execution of the interrupt program with the specified interrupt pointer number
according to the 16-point bit pattern starting from the device specified in (s).
• The following shows the assignment of the interrupt pointer numbers to each bit.
• When the power is turned on or the CPU module is reset, execution status of the interrupt programs of I0 to I177 is applied.
• The states of the device (s) to (s)+15 are stored in SD1400 to SD1415 (IMASK instruction mask pattern).
Ladder diagram Structured text
ENO:=IMASK(EN,s);
Operand Description Range Data type Data type (label)
(s) Head device number where the interrupt mask data is stored
The device specified in (s) and following 15 devices are used.
16-bit signed binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s)
• 1 (ON): The execution of interrupt programs is enabled.
• 0 (OFF): The execution of interrupt programs is disabled.
(s)+1
(s)
(s)+2
(s)+3
(s)+4
(s)+5
(s)+6
(s)+7
(s)+8
(s)+9
(s)+10
(s)+11
(s)+12
(s)+13
(s)+14
(s)+15
b0
b7
b15 b8b14 b13 b12 b11 b10 b9 b6
b5
b4 b3 b2 b1
I0
I7
I15 I8I14 I13 I12 I11 I10 I9 I6
I5
I4 I3 I2 I1
I16
I23
I31 -I30 I29 I28 - - - I22
I21
I20 I19 I18 I17
-
-
-------- -
-
----
-
I55
I63 I56I62 I61 I60 I59 I58 I57 I54
I53
I52 I51 I50 -
I64
I71
I79 I72I78 I77 I76 I75 I74 I73 I70
I69
I68 I67 I66 I65
I80
I87
I95 I88I94 I93 I92 I91 I90 I89 I86
I85
I84 I83 I82 I81
I96
I103
I111 I104I110 I109 I108 I107 I106 I105 I102
I101
I100 I99 I98 I97
-
-
-------- -
-
- - --
I112
I119
I127 I120I126 I125 I124 I123 I122 I121 I118
I117
I116 I115 I114 I113
I128
I135
I143 I136I142 I141 I140 I139 I138 I137 I134
I133
I132 I131 I130 I129
I144
I151
I159 I152I158 I157 I156 I155 I154 I153 I150
I149
I148 I147 I146 I145
I160
I167
I175 I168I174 I173 I172 I171 I170 I169 I166
I165
I164 I163 I162 I161
I176
-
-------- -
-
- - - I177
-
-
-------- -
-
- - --
-
-
-------- -
-
- - --
-
-
-------- -
-
- - --