
TMCM-6110 TMCL Firmware V1.31 Manual (Rev. 1.09 / 2015-FEB-24)
33
www.trinamic.com
4.6.9
SGP (set global parameter)
With this command most of the module specific parameters not directly related to motion control can be
specified and the TMCL user variables can be changed. Global parameters are related to the host interface,
peripherals or application specific variables. The different groups of these parameters are organized in
banks
to allow a larger total number for future products. Currently, only bank 0 and 1 are used for global
parameters, and bank 2 is used for user variables.
All module settings will automatically be stored non-volatile (internal EEPROM of the processor). The TMCL
user variables will not be stored in the EEPROM automatically, but this can be done by using STGP
commands.
For a table with parameters and bank numbers which can be used together with this command please
refer to chapter 6.
Internal function:
the parameter format is converted ignoring leading zeros (or ones for negative values).
The parameter is transferred to the correct position in the appropriate (on board) device.
Related commands:
GGP, STGP, RSGP, AGP
Mnemonic:
SGP <parameter number>, <bank number>, <value>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
9
<parameter number>
<bank number>
<value>
Reply in direct mode:
STATUS
VALUE
100 – OK
don’t care
Example:
Set the serial address of the target device to 3
Mnemonic:
SGP 66, 0, 3
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
$09
$42
$00
$00
$00
$00
$03