User Manual
PD-x-1670 TMCL
™
Firmware Manual • Firmware Version V2.0 | Document Revision V1.0 • 2018-Oct-29
52 / 82
3.6.28 AAP (Accu 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. 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 don’t 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 // multip ly by 4
AAP 0 ,0 // transfer result to target po sition 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