Trinamic 11-0011 TMCM-171 BLDC Output For 3-phase BLDC Motors 11-0011 Datenbogen

Produktcode
11-0011
Seite von 134
 
TMCL Reference Manual 
23 
 
 
 
Trinamic Motion Control GmbH & Co KG 
Sternstraße 67 
D – 20357 Hamburg, Germany 
http://www.trinamic.com 
 
3.11  STGP – Store Global Parameter 
Description: Some global parameters are located in RAM memory, so modifications are lost at power down. This 
instruction enables permanent storing. Most parameters are automatically restored after power up (see the list of 
global parameters in chapter 0). 
 
Internal function: The specified parameter is copied from its RAM location to the configuration EEPROM. 
 
Related commands: SGP, GGP, RSGP, AGP  
 
Mnemonic: STGP <parameter number>, <bank number> 
 
Binary representation: 
INSTRUCTION NO. 
TYPE 
MOT/BANK 
VALUE 
11 
(see chapter 6) 
<bank number> 
(see chapter 6) 
            (don't care) 
 
Reply in direct mode: 
STATUS 
VALUE 
100 – OK 
(don't care) 
 
 
Example: store the serial address of the target device 
Mnemonic: STGP 42, 0 
 
Binary: 
Byte Index 
Function 
Target- 
address 
Instruction 
Number 
Type 
Motor/ 
Bank 
Operand 
Byte3 
Operand 
Byte2 
Operand 
Byte1 
Operand 
Byte0 
Checksum 
Value (hex) 
$01 
$0b 
$42 
$00 
$00 
$00 
$00 
$00 
$4e 
 
 
Note: The STGP command will not have any effect when the configuration EEPROM is locked (s. 5.1, “EEPROM lock 
flag” and section 7.6.2.5). In direct mode, the error code 5 (configuration EEPROM locked, see also section 2.2.1) will 
be returned in this case.