P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 489 of 909
ITRD
Interrupt Disable, Global
APPLICATION:
Program execution and flow control
DESCRIPTION:
Disable the global interrupt scanner
EXECUTION:
Immediate; remains in effect until otherwise commanded
CONDITIONAL TO:
N/A
LIMITATIONS:
N/A
READ/REPORT:
N/A
WRITE:
Write only
LANGUAGE ACCESS:
N/A
UNITS:
N/A
RANGE OF VALUES:
N/A
TYPICAL VALUES:
N/A
DEFAULT VALUE:
Motor defaults to ITRD (interrupts disabled)
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
ITRD:3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The ITRD command is used to disable the global interrupt scanner. ITRD disables the interrupt
handler and clears Interrupt Status Bit 15.
For an interrupt to work, it must be enabled at two levels: first, enable
individual
interrupts
with the EITR() command using the interrupt number from 0 to 7 in the parentheses; second,
enable
all
interrupts with the ITRE command. Similarly,
individual
interrupts can be disabled
with the DITR() command, and
all
interrupts can be disabled with the ITRD command. For
more details, see the corresponding command-description pages.
NOTE:
The user program must also be running for interrupts to take effect, the
END and RUN commands will reset the state of the interrupts to defaults.
For more details, see Interrupt Programming on page 192.
Part 2: Commands: ITRD