
TMCM-1311 TMCL Firmware V1.11 Manual (Rev. 1.17 / 2015-NOV-05)
34
www.trinamic.com
5.7.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, bank 0 and 1 are used for global parameters,
bank 2 is used for user variables, and bank 3 is used for interrupts.
For a table with parameters and bank numbers which can be used together with this command please refer
to chapter 10
Internal function:
the parameter is read out of the correct position in the appropriate device. The parameter
format is converted.
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