Datasheet

PD57/60-1276 TMCL
Firmware Manual Firmware Version V1.13 | Document Revision V1.00 2018-JUN-28
54 / 97
3.6.26 AAP (Accu to Axis Parameter)
The content of the accumulator register is transferred to the specied axis parameter. For practical usage,
the accumulator has to be loaded e.g. by a preceding GAP instruction. The accumulator may have been
modied by the CALC or CALCX (calculate) instruction. This command is mainly intended for use in standalone
mode.
Info
For a table with parameters and values which can be used together with this
command please refer to section 4.
Related commands: AGP, SAP, GAP, SGP, GGP, GIO, GCO, CALC, CALCX.
Mnemonic: AAP <parameter number>, <motor number>
Binary Representation
Instruction Type Motor/Bank Value
34 see chapter 4 0 <value>
Reply in Direct Mode
Status Value
100 - OK dont care
Example
Position motor #0 by a potentiometer connected to analog input #0:
1
Start:
GIO 0,1 //get value of analog input line 0
3
CALC MUL , 4 // multiply by 4
AAP 0,0 // transfer result to target position of motor 0
5
JA Start // jump back to start
Binary Form of AAP 0, 0
Field Value
Target address 01
h
Instruction number 22
h
Type 00
h
Motor/Bank 00
h
Value (Byte 3) 00
h
Value (Byte 2) 00
h
Value (Byte 1) 00
h
Value (Byte 0) 00
h
Checksum 23
h
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com