![Trinamic TMCM-351 Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/trinamic/tmcm-351/tmcm-351_firmware-manual_1163054032.webp)
TMCM-351 TMCL Firmware V4.45 Manual (Rev. 1.06 / 2014-MAY-16)
32
www.trinamic.com
4.6.10
GGP (get global parameter)
All global parameters can be read with this function. Global parameters are related to the host interface,
peripherals or application specific variables. The different groups of these parameters are organized in
banks
to allow a larger total number for future products. Currently, only bank 0 and 1 are used for global
parameters, and bank 2 is used for user variables. Bank 3 is used for interrupt configuration.
For a table with parameters and bank numbers which can be used together with this command please refer
to chapter 6.
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:
SGP, STGP, RSGP, AGP
Mnemonic:
GGP <parameter number>, <bank number>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
10
<parameter number>
<bank number>
don’t care
Reply in direct mode:
STATUS
VALUE
100 – OK
don’t care
Example:
Get the serial address of the target device
Mnemonic:
GGP 66, 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
$0a
$42
$00
$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
$0a
$00
$00
$00
$01
Status = no error, value = 1