User Manual

TMCM-3230 TMCL
Firmware Manual Firmware Version V1.07 | Document Revision V1.05 2017-OCT-10
27 / 103
3.6.6 GAP (Get Axis Parameter)
Most motion / driver related parameters of the TMCM-3230 can be adjusted using e.g. the SAP command.
With the GAP parameter they can be read out. In standalone mode the requested value is also transferred
to the accumulator register for further processing purposes (such as conditional jumps). In direct mode
the value read is only output in the value eld of the reply, without aecting the accumulator.
Info
For a table with parameters and values that can be used together with this
command please refer to section 4.
Internal function: The specied value gets copied to the accumulator.
Related commands: SAP, AAP.
Mnemonic: GAP <parameter number>, <axis>
Binary Representation
Instruction Type Motor/Bank Value
6 see chapter 4 0. . . 2 <value>
Reply in Direct Mode
Status Value
100 - OK value read by this command
Example
Get the actual position of motor 0.
Mnemonic: GAP 1, 0.
Binary Form of GAP 1, 0
Field Value
Target address 01
h
Instruction number 06
h
Type 01
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 08
h
©2017 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com