User manual
TMCM-1640 TMCL Firmware V2.00 Manual (Rev. 2.00 / 2012-JUL-31) 24
www.trinamic.com
4.6.10 GGP (get global parameter)
All global parameters can be read with this function.
Related commands: SGP, STGP, RSGP
Mnemonic: GGP <parameter number>, <bank number>
Binary representation:
COMMAND
TYPE
MOT/BANK
VALUE
10
<parameter number>
<bank number>
don’t care
Reply in direct mode:
STATUS
VALUE
100 – OK
<value>
A list of all parameters which can be used for the GGP command is shown in section 6.
Example:
Get variable 0 from bank 2
Mnemonic: GGP, 0, 2
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
$00
$02
$00
$00
$00
$00
4.6.11 STGP (store global parameter)
Some global parameters are located in RAM memory, so modifications are lost at power down. This
instruction copies a value from its RAM location to the configuration EEPROM and enables permanent
storing. Most parameters are automatically restored after power up.
Related commands: SGP, GGP, RSGP
Mnemonic: STGP <parameter number>, <bank number>
Binary representation:
COMMAND
TYPE
MOT/BANK
VALUE
11
<parameter number>
<bank number>
don’t care
Reply in direct mode:
STATUS
VALUE
100 – OK
don’t care
A list of all parameters which can be used for the STGP command is shown in section 6.
Example:
Copy variable 0 at bank 2 to the configuration EEPROM
Mnemonic: STGP, 0, 2
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
$0b
$00
$02
$00
$00
$00
$00