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

Codici prodotto
11-0011
Pagina di 134
 
TMCL Reference Manual 
19 
 
 
 
Trinamic Motion Control GmbH & Co KG 
Sternstraße 67 
D – 20357 Hamburg, Germany 
http://www.trinamic.com 
 
3.7  STAP – Store Axis Parameter 
Description:  Axis  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  axis 
parameter list in chapter 4). 
 
Internal function: The specified parameter is copied from its RAM location the configuration EEPROM. 
 
Related commands: SAP, RSAP, GAP, AAP 
 
Mnemonic: STAP <parameter number>, <motor number> 
 
Binary representation: 
INSTRUCTION NO. 
TYPE 
MOT/BANK 
VALUE 
<parameter number>  <motor number> 
            (don't care)* 
 
*the  "value"  operand  of  this  function  has  no  effect.  Instead,  the  currently  used  value  (e.g.  selected  by  SAP)  is 
saved.  
 
Reply in direct mode:
 
STATUS 
VALUE 
100 – OK 
(don't care) 
 
 
Parameter ranges: 
Parameter number 
Motor number  Value 
s. chapter 4 
0..2 
s. chapter 4 
s. chapter 4 
always 0 
s. chapter 4 
 
Example: store the maximum speed of motor #1  
Mnemonic: STAP 4, 1 
 
Binary: 
Byte Index 
Function 
Target- 
address 
Instruction 
Number 
Type 
Motor/ 
Bank 
Operand 
Byte3 
Operand 
Byte2 
Operand 
Byte1 
Operand 
Byte0 
Checksum 
Value (hex) 
$01 
$07 
$04 
$01 
$00 
$00 
$00 
$00 
$0d 
 
 
Note: The STAP 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.