User manual

TMCM-1161 TMCL Firmware V1.19 Manual (Rev. 1.04 / 2012-NOV-19) 31
www.trinamic.com
3.5.12 RSGP (restore global parameter)
With this command the contents of a TMCL user variable can be restored from the EEPROM. For all
configuration-related axis parameters, non-volatile memory locations are provided. By default, most
parameters are automatically restored after power up. A single parameter that has been changed before
can be reset by this instruction.
For a table with parameters and bank numbers which can be used together with this command please
refer to chapter 5.
Internal function: The specified parameter is copied from the configuration EEPROM memory to its RAM
location.
Relate commands: SAP, STAP, GAP, and AAP
Mnemonic: RSAP <parameter number>, 0
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
8
<parameter number>
0*
(don't care)
*motor number is always O if only one motor is involved
Reply structure in direct mode:
STATUS
VALUE
100 OK
(don't care)
Example:
Restore the maximum current of motor
Mnemonic: RSGP 6, 0
Binary:
Byte Index
0
2
3
4
5
6
7
Function
Target-
address
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$01
$2a
$02
$00
$00
$00
$00