Trinamic 11-0011 TMCM-171 BLDC Output For 3-phase BLDC Motors 11-0011 Data Sheet

Product codes
11-0011
Page of 134
 
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: 
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 
Function 
Target- 
address 
Instruction 
Number 
Type 
Motor/ 
Bank 
Operand 
Byte3 
Operand 
Byte2 
Operand 
Byte1 
Operand 
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.