TMCM-1021 TMCL
™
Firmware Manual • Firmware Version V1.42 | Document Revision V1.10 • 2018-JAN-09
68 / 109
3.7.34
VECT (Define Interrupt Vector)
The VECT command defines an interrupt vector. It takes an interrupt number and a label (just like with
JA, JC and CSUB commands) as parameters. The label must be the entry point of the interrupt handling
routine for this interrupts. Interrupt vectors can also be re-defined.
This command is intended for use in
standalone mode only.
Info
Please see table
for a list of interrupts that can be used on the TMCM-1021
module.
Related commands:
EI, DI, RETI.
Mnemonic:
VECT <interrupt number>, <label>
Binary Representation
Instruction
Type
Motor/Bank
Value
37
<interrupt number>
0 (don’t care)
<label>
Reply in Direct Mode
Status
Value
100 - OK
don’t care
Example
Define interrupt vector for timer #0 interrupt:
1
VECT 0, Timer0Irq
...
3
Loop :
...
5
JA Loop
...
7
Timer0Irq :
SIO 0, 2, 1
9
RETI
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at