P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 417 of 909
EITR(int)
Enable Interrupts
APPLICATION:
Program execution and flow control
DESCRIPTION:
Enable the specified interrupt or a combination of interrupts
EXECUTION:
Immediate
CONDITIONAL TO:
Interrupts configured and globally enabled (with ITR and ITRE)
LIMITATIONS:
N/A
READ/REPORT:
N/A
WRITE:
N/A
LANGUAGE ACCESS:
N/A
UNITS:
N/A
RANGE OF VALUES:
Input:
EITR(interrupt), where interrupt is 0–7
TYPICAL VALUES:
Input:
EITR(interrupt), where interrupt is 0–7
DEFAULT VALUE:
N/A
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
EITR(1):3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The EITR (Enable Interrupts) command is used to enable interrupts as follows:
l
EITR(interrupt#)
Where interrupt# is used to specify an interrupt.
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: EITR(int)