P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 388 of 909
DITR(int)
Disable Interrupts
APPLICATION:
Program execution and flow control
DESCRIPTION:
Disable the specified interrupt or combination of interrupts
EXECUTION:
Immediate
CONDITIONAL TO:
Interrupts configured and enabled; ITR, EITR and ITRE
LIMITATIONS:
N/A
READ/REPORT:
N/A
WRITE:
N/A
LANGUAGE ACCESS:
N/A
UNITS:
N/A
RANGE OF VALUES:
Input:
DITR(interrupt), where interrupt is 0–7
TYPICAL VALUES:
Input:
DITR(interrupt), where interrupt is 0–7
DEFAULT VALUE:
N/A
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
DITR(1):3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The DITR (Disable Interrupts) command is used to disable interrupts as follows:
l
DITR(interrupt#)
Where the interrupt# is used to specify an interrupt (0–7)
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 on interrupt programming, see Interrupt Programming on page 192.
Part 2: Commands: DITR(int)
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...