User Manual

TMCC160 TMCL Firmware Version 2.11 2018-FEB-08 | Document Revision 1.01 2018-FEB-08
© 2015 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany Terms of delivery and rights
to technical change reserved. Download newest version at: www.trinamic.com .
Read entire documentation; especially the 6 Supplemental Directives” (page 51).
1.2.11 STGP (Store Global Parameter)
Some global parameters are located in RAM memory. Consequently, modifications are
lost at power-down.
The 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>
Request in Direct Mode
COMMAND
TYPE
MOT/BANK
VALUE
11
<parameter number>
<bank number>
don’t care
Table 38: STGP Request in Direct Mode
Reply in Direct Mode
STATUS
VALUE
100 OK
don’t care
Table 39: STGP Reply in Direct Mode
i A list of all parameters which can be used for the STGP command is shown in section 4.
Example:
Restore Variable 0 of bank 2 to EEPROM Configuration: Mnemonic: STGP, 0, 2
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
Table 40: STGP Example: Restore Variable 0 of bank 2 to EEPROM Configuration
STGP
Configuration