P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 486 of 909
ITR(Int#,StatusWord,Bit#,BitState,Label#)
Interrupt Setup
APPLICATION:
Program execution and flow control
DESCRIPTION:
Configure a single user program interrupt
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:
See details
TYPICAL VALUES:
N/A
DEFAULT VALUE:
Motor defaults with no ITR interrupts configured
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
N/A
DETAILED DESCRIPTION:
The ITR command is used to configure an interrupt. It uses the form:
ITR(Int#,StatusWord,Bit#,BitState,Label#)
where:
l
Int# — the interrupt number: 0–7 (lower number is a higher priority)
l
StatusWord — the status word number containing the bit to monitor: 0–17
l
Bit# — the bit number in a status word to monitor: 0–15
l
BitState — the transition to this state will cause the interrupt: 0 or 1
l
Label# — the label number to jump to for the interrupt routine: 0–999
After this command is called, the user-program process will be monitoring for the specified
condition. The interrupts are always triggered by an edge (transition) of a bit in the status
words. Any status word/bit can be chosen.
For the interrupt to function, a program must be running, ITRE must enable the global
interrupt scanner, and the individual interrupt must be enabled with the EITR() command.
Often, a program is completely interrupt driven and has no need for a main loop. In this case,
the PAUSE command can be placed in a program after the point where the interrupts are
configured. This will halt the main loop of the program but will leave the interrupts active. To
understand where the PAUSE command will continue on with the main program, see RESUME
on page 672.
Part 2: Commands: ITR(Int#,StatusWord,Bit#,BitState,Label#)
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...