TMCL™ Firmware Manual - Trinamic
TMCL™ Firmware Manual - Trinamic
TMCL™ Firmware Manual - Trinamic
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
PD-109-57 V2 TMCL <strong>Firmware</strong> <strong>Manual</strong> (V1.00/2010-FEB-18) 48<br />
Global parameters of bank 2, which can be used for GGP:<br />
Bank 2 contains general purpose 32 bit variables for the use in TMCL applications. They are located in RAM<br />
and can be stored to EEPROM. After booting, their values are automatically restored to the RAM.<br />
Number Global parameter Description Range<br />
0 general purpose variable #0 for use in TMCL applications -231…+231 1 general purpose variable #1 for use in TMCL applications -231…+231 2 general purpose variable #2 for use in TMCL applications -231…+231 3 general purpose variable #3 for use in TMCL applications -231…+231 4 general purpose variable #4 for use in TMCL applications -231…+231 5 general purpose variable #5 for use in TMCL applications -231…+231 6 general purpose variable #6 for use in TMCL applications -231…+231 7 general purpose variable #7 for use in TMCL applications -231…+231 8 general purpose variable #8 for use in TMCL applications -231…+231 9 general purpose variable #9 for use in TMCL applications -231…+231 10 general purpose variable #10 for use in TMCL applications -231…+231 11 general purpose variable #11 for use in TMCL applications -231…+231 12 general purpose variable #12 for use in TMCL applications -231…+231 13 general purpose variable #13 for use in TMCL applications -231…+231 14 general purpose variable #14 for use in TMCL applications -231…+231 15 general purpose variable #15 for use in TMCL applications -231…+231 16 general purpose variable #16 for use in TMCL applications -231…+231 17 general purpose variable #17 for use in TMCL applications -231…+231 18 general purpose variable #18 for use in TMCL applications -231…+231 19 general purpose variable #19 for use in TMCL applications -231…+231 20…55 general<br />
#20..#55<br />
purpose variables for use in TMCL applications -231…+231 Example:<br />
Get the serial address of the target device<br />
Mnemonic: GGP 66, 0<br />
Binary:<br />
Byte Index 0 1 2 3 4 5 6 7 8<br />
Function Target- Instruction Type Motor/ Operand Operand Operand Operand Checksum<br />
address Number<br />
Bank Byte3 Byte2 Byte1 Byte0<br />
Value (hex) $01 $0a $42 $00 $00 $00 $00 $00 $4d<br />
Reply:<br />
Byte Index 0 1 2 3 4 5 6 7 8<br />
Function Host- Target- Status Instruction Operand Operand Operand Operand Checksum<br />
address address<br />
Byte3 Byte2 Byte1 Byte0<br />
Value (hex) $02 $01 $64 $0a $00 $00 $00 $01 $72<br />
Status=no error, Value=1<br />
Please refer to chapter 8 for more information about bank 0 to 2.<br />
Copyright © 2010, TRINAMIC Motion Control GmbH & Co. KG