User manual
PD-1141 TMCL Firmware V1.19 Manual (Rev. 1.01 / 2012-JUL-27)  34 
www.trinamic.com   
3.6.12 RSGP (restore global parameter) 
With  this command the contents  of a  TMCL  user  variable  can  be restored from  the EEPROM. By default, 
most  parameters  are  automatically  restored  after  power  up.  A  single  parameter  that  has  been  changed 
before can be reset by this instruction. 
Internal  function:  the specified parameter is  copied  from  the configuration EEPROM memory to its  RAM 
location. 
Relate commands: SGP, STGP, GGP, and AGP 
Mnemonic: RSAP <parameter number>, <bank number> 
Binary representation: 
INSTRUCTION NO. 
TYPE 
MOT/BANK 
VALUE 
12 
<parameter number> 
<bank number> 
(don't care) 
Reply structure in direct mode: 
STATUS 
VALUE 
100 – OK 
(don't care) 
For a table with parameters  and  bank  numbers  which can be  used  together  with  this  command  please 
refer to chapter 5. 
Example: 
Restore user variable #42 
Mnemonic: RSGP 42, 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 
$0c 
$2a 
$02 
$00 
$00 
$00 
$00 










