![Trinamic TMCM-351 Скачать руководство пользователя страница 44](http://html1.mh-extra.com/html/trinamic/tmcm-351/tmcm-351_firmware-manual_1163054044.webp)
TMCM-351 TMCL Firmware V4.45 Manual (Rev. 1.06 / 2014-MAY-16)
44
www.trinamic.com
4.6.19
JA (jump always)
Jump to a fixed address in the TMCL program memory.
This command is intended for standalone operation only.
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
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$01
$16
$00
$00
$00
$00
$00
$14