Техническая Спецификация для Trinamic 11-0011 TMCM-171 BLDC Output For 3-phase BLDC Motors 11-0011
Модели
11-0011
TMCL Reference Manual
33
Trinamic Motion Control GmbH & Co KG
Sternstraße 67
D – 20357 Hamburg, Germany
http://www.trinamic.com
3.19 JA – Jump Always
Description: Jump to a fixed address in the TMCL program memory. This command is intended for standalone
operation only and not to be used in direct mode.
Internal function: the TMCL program counter is set to the passed value.
Related commands: JC, WAIT, CSUB
Mnemonic: JA <Label>
Binary representation:
operation only and not to be used in direct mode.
Internal function: the TMCL program counter is set to the passed value.
Related commands: JC, WAIT, CSUB
Mnemonic: JA <Label>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
22
(don't care)
(don't care)
<jump address>
Example: An infinite loop in TMCL
Loop: MVP ABS, 0, 10000
WAIT POS, 0, 0
MVP ABS, 0, 0
WAIT POS, 0, 0
JA Loop
//Jump to the label “Loop”
Binary format of “JA Loop” assuming that the label “Loop” is at address 20:
Byte Index
0
1
2
3
4
5
6
7
8
Function
Target-
address
address
Instruction
Number
Number
Type
Motor/
Bank
Bank
Operand
Byte3
Byte3
Operand
Byte2
Byte2
Operand
Byte1
Byte1
Operand
Byte0
Byte0
Checksum
Value (hex)
$01
$16
$00
$00
$00
$00
$00
$14
$2b
Note that the host address and the reply is only used to transfer this instruction to the TMCL program memory.
This command can not be used in direct mode.