User manual
PDx-113-57/60-SE / TMCM-113-57/60-SE Firmware Manual (V1.10 / 2009-OCT-28) 45
Copyright © 2009, TRINAMIC Motion Control GmbH & Co. KG
Global parameters of bank 2, which can be used for GGP:
Bank 2 contains general purpose 32 bit variables for the use in TMCL
TM
applications. They are located in RAM
and can be stored to EEPROM. After booting, their values are automatically restored to the RAM.
Number
Global parameter
Description
Range
0
General purpose variable #0
for use in TMCL
TM
applications
-2
31
…+2
31
1
General purpose variable #1
for use in TMCL
TM
applications
-2
31
…+2
31
2
General purpose variable #2
for use in TMCL
TM
applications
-2
31
…+2
31
3
General purpose variable #3
for use in TMCL
TM
applications
-2
31
…+2
31
4
General purpose variable #4
for use in TMCL
TM
applications
-2
31
…+2
31
5
General purpose variable #5
for use in TMCL
TM
applications
-2
31
…+2
31
6
General purpose variable #6
for use in TMCL
TM
applications
-2
31
…+2
31
7
General purpose variable #7
for use in TMCL
TM
applications
-2
31
…+2
31
8
General purpose variable #8
for use in TMCL
TM
applications
-2
31
…+2
31
9
General purpose variable #9
for use in TMCL
TM
applications
-2
31
…+2
31
10
General purpose variable #10
for use in TMCL
TM
applications
-2
31
…+2
31
11
General purpose variable #11
for use in TMCL
TM
applications
-2
31
…+2
31
12
General purpose variable #12
for use in TMCL
TM
applications
-2
31
…+2
31
13
General purpose variable #13
for use in TMCL
TM
applications
-2
31
…+2
31
14
General purpose variable #14
for use in TMCL
TM
applications
-2
31
…+2
31
15
General purpose variable #15
for use in TMCL
TM
applications
-2
31
…+2
31
16
General purpose variable #16
for use in TMCL
TM
applications
-2
31
…+2
31
17
General purpose variable #17
for use in TMCL
TM
applications
-2
31
…+2
31
18
General purpose variable #18
for use in TMCL
TM
applications
-2
31
…+2
31
19
General purpose variable #19
for use in TMCL
TM
applications
-2
31
…+2
31
20..55
General purpose variables
#20..#55
for use in TMCL
TM
applications
-2
31
…+2
31
Example:
get the serial address of the target device
Mnemonic: GGP 66, 0
Binary:
Byte Index
0
1
2
3
4
5
6
7
8
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
0
1
2
3
4
5
6
7
8
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