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 
22 
 
 
 
Trinamic Motion Control GmbH & Co KG 
Sternstraße 67 
D – 20357 Hamburg, Germany 
http://www.trinamic.com 
 
3.10  GGP – Get Global Parameter 
Description: All global parameters can be read with this function. In stand-alone mode, the result is copied to the 
accumulator register for further processing purposes such as conditional jumps. In direct mode, the result is only 
output in the “value” field of the reply, without affecting the accumulator. See chapter 0 for a complete parameter 
list.   
 
Internal  function:  The  parameter  is  read  out  of  the  correct  position  in  the  appropriate  device.  The  parameter 
format is converted adding leading zeros (or ones for negative values).   
 
Related commands:  SGP, STGP, RSGP, AGP 
 
Mnemonic: GGP <parameter number>, <bank number> 
 
Binary representation: 
INSTRUCTION NO. 
TYPE 
MOT/BANK 
VALUE 
10 
(see chapter 6) 
<bank number> 
see chapter 6 
            (don't care) 
 
Reply in direct mode: 
STATUS 
VALUE 
100 – OK 
(don't care) 
 
 
Example: get the serial address of the target device 
Mnemonic: GGP 66, 0 
 
Binary: 
Byte Index 
Function 
Target- 
address 
Instruction 
Number 
Type 
Motor/ 
Bank 
Operand 
Byte3 
Operand 
Byte2 
Operand 
Byte1 
Operand 
Byte0 
Checksum 
Value (hex) 
$01 
$0a 
$42 
$00 
$00 
$00 
$00 
$00 
$4d 
 
 
Reply: 
Byte Index 
Function 
Host- 
address 
Target- 
address 
Status  Instruction  Operand 
Byte3 
Operand 
Byte2 
Operand 
Byte1 
Operand 
Byte0 
Checksum 
Value (hex) 
$02 
$01 
$64 
$0a 
$00 
$00 
$00 
$01 
$72 
 
 
  Status=no error, Value=1