User manual

TMCM-1640 TMCL Firmware V2.00 Manual (Rev. 2.00 / 2012-JUL-31) 25
www.trinamic.com
4.6.12 RSGP (restore global parameter)
This instruction copies a value from the configuration EEPROM to its RAM location and so recovers the
permanently stored value of a RAM-located parameter. Most parameters are automatically restored after
power up.
Related commands: SGP, GGP, STGP
Mnemonic: RSGP <parameter number>, <bank number>
Binary representation:
COMMAND
TYPE
MOT/BANK
VALUE
12
<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 RSGP command is shown in section 6.
Example:
Copy variable 0 at bank 2 from the configuration EEPROM to the RAM location
Mnemonic: RSGP, 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
$0c
$00
$02
$00
$00
$00
$00