User Manual
PD42-1240 TMCL
™
Firmware Manual • Firmware Version V1.45 | Document Revision V1.02 • 2018-DEC-03
91 / 132
3.6.48 AIV (Accumulator to Indexed Variable)
This command copies the content of the accumulator to a TMCL user variable. The index of the user
variable (0. . . 255) is specified by the content of the X register. Therefore the value in the X register must
not be lower than zero or greater than 255. Otherwise this command will be ignored. This command is
mainly intended for use in standalone mode.
Internal function: The accumulator will be copied to the user variable specified by the X register.
Related commands: SIV, GIV.
Mnemonic: AIV
Binary Representation
Instruction Type Motor/Bank Value
55 0 (don’t care) 0 (don’t care) <value>
Reply in Direct Mode
Status Value
100 - OK don’t care
Example
Copy the accumulator to the user variable indexed by the X register.
Mnemonic: AIV.
Binary Form of AIV
Field Value
Target address 01
h
Instruction number 39
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 3A
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