![Trinamic TMCM-351 Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/trinamic/tmcm-351/tmcm-351_firmware-manual_1163054028.webp)
TMCM-351 TMCL Firmware V4.45 Manual (Rev. 1.06 / 2014-MAY-16)
28
www.trinamic.com
4.6.6
GAP (get axis parameter)
Most parameters of the TMCM-351 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>, <motor>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
6
<parameter number>
<motor>
0… 2
don’t care
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 5.
Example:
Get the maximum current of motor 1
Mnemonic:
GAP 6, 1
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