7 APPLICATION INSTRUCTION
7.3 Program execution control instruction
337
7
Disabling/enabling the specified interrupt pointer
SIMASK
This instruction enables or disables the interrupt pointer number specified by (I) according to the value of (s).
■Descriptions, ranges, and data types
■Applicable devices
• This instruction enables or disables the execution of the interrupt program with the interrupt pointer number specified by (I)
according to the data specified by (s)
• When 1 is set in (s): The execution of the interrupt program is enabled.
• When 0 is set in (s): The execution of the interrupt program is disabled.
• When the power is turned on or the CPU module is reset, the execution status of the interrupt programs of I0 to I177 is
applied.
• The execution-enabled/disabled states of interrupt pointers are stored in SD1400 to 1415 (IMASK instruction mask
pattern).
Indexing is available for (I). By using the SIMASK instruction with indexing, the execution of the interrupt
pointers I0 to I177 can be enabled or disabled.
Ladder diagram Structured text
ENO:=SIMASK(EN,I,s);
Operand Description Range Data type Data type (label)
(I) Interrupt pointer number for which interrupts are enabled or disabled I0 to I177 Device name ANY16
(s) Enabled or disabled state of the specified interrupt pointer number 0: Disabled
1: Enabled
16-bit unsigned 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 $
(I)
(s)
Error code
(SD0/SD8067)
Description
3405 The interrupt pointer number specified by (I) exceeds the range of the interrupt pointer number (I0 to I177).
The value in (s) is other than the interrupt disabled (0) or interrupt enabled (1).