User Manual

PD42-1240 TMCL
Firmware Manual Firmware Version V1.45 | Document Revision V1.02 2018-DEC-03
90 / 132
3.6.47 GIV (Get Indexed Variable)
This command reads a TMCL user variable and copies its content to the accumulator register. The index of
the user variable (0. . . 255) is specied by the X register. Therefore the content of 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 user variable specied by the x register will be copied to the accumulator register.
Related commands: SIV, AIV.
Mnemonic: GIV
Binary Representation
Instruction Type Motor/Bank Value
55 0 (dont care) 0 (dont care) 0 (dont care)
Reply in Direct Mode
Status Value
100 - OK dont care
Example
Read the user variable indexed by the X register.
Mnemonic: GIV.
Binary Form of GIV
Field Value
Target address 01
h
Instruction number 38
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) 03
h
Checksum 39
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