TMCM-1310 TMCL Firmware V1.11 Manual (Rev. 1.16 / 2014-MAR-19)
54
www.trinamic.com
6.8.29
AAP (accumulator to axis parameter)
The content of the accumulator register is transferred to the specified axis parameter. For practical usage,
the accumulator has to be loaded e.g. by a preceding GAP instruction. The accumulator may have been
modified by the CALC or CALCX (calculate) instruction.
For a table with parameters and values which can be used together with this command please refer to
chapter 7.
Related commands:
AGP, SAP, GAP, SGP, GGP, GIO, GCO, CALC, CALCX
Mnemonic:
AAP <parameter number>, 0
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
34
<parameter number>
<motor>
0*
<don't care>
* Motor number is always O as only one motor is involved
Reply in direct mode:
STATUS
VALUE
100 – OK
don’t care
Example:
Positioning motor by a potentiometer connected to the analogue input #0:
Start: GIO 0,1
// get value of analogue input line 0
CALC MUL, 4
// multiply by 4
AAP 0,0
// transfer result to target position of motor 0
JA Start
// jump back to start
Binary format of the AAP 0,0 command:
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
$22
$00
$00
$00
$00
$00
$00