
TMCM-1311 TMCL Firmware V1.11 Manual (Rev. 1.17 / 2015-NOV-05)
30
www.trinamic.com
5.7.6
GAP (get axis parameter)
Most parameters of the TMCM-1311 can be adjusted individually for the axis. With this 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 conditioned jumps). In direct mode the value read is only output in
the
value
field of the reply (without affecting the accumulator).
Internal function:
the parameter is read out of the correct position in the appropriate device. The parameter
format is converted adding leading zeros (or ones for negative values).
Related commands:
SAP, STAP, AAP, RSAP
Mnemonic:
GAP <parameter number>, 0
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
6
<parameter number>
<motor>
0*
don’t care
* Motor number is always O as only one motor is involved
Reply in direct mode:
STATUS
VALUE
100 – OK
don’t care
For a table with parameters and values which can be used together with this command please refer to
chapter 6.
Example:
Get the maximum current of motor
Mnemonic:
GAP 6, 0
Binary:
Byte Index
0
1
2
3
4
5
6
7
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$01
$06
$06
$01
$00
$00
$00
$00
Reply:
Byte Index
0
1
2
3
4
5
6
7
Function
Host-
address
Target-
address
Status
Instruction
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$02
$01
$64
$06
$00
$00
$02
$80