TMCM-142 TMCL
TM
Firmware Manual (V1.06 / 2014-JUN-24)
75
Copyright © 2009, TRINAMIC Motion Control GmbH & Co. KG
6.7.25
GCO (get coordinate)
This command makes possible to read out a previously stored coordinate. In stand-alone mode the
requested value is copied to the accumulator register for further processing purposes such as conditioned
jumps. In direct mode, the value is only output in the value field of the reply, without affecting the
accumulator.
Please note that the coordinate number 0 is stored in RAM only, all others are also stored
in the EEPROM.
Internal function:
The desired value is read out of the internal coordinate array, copied to the accumulator
register and -in direct mode- returned in the
value
field of the reply.
Related commands:
SCO, CCO, MVP
Mnemonic:
GCO <coordinate number>, 0
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
31
<coordinate number>
(0…20)
0
*
(don't care)
* motor number is always 0 as only one motor is involved
Reply in direct mode:
STATUS
VALUE
100 – OK
(don't care)
Example:
Get motor #0 value of coordinate 1
Mnemonic:
GCO 1, 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
$1f
$01
$00
$00
$00
$00
$00
$23
Reply:
Byte Index
0
1
2
3
4
5
6
7
8
Function
Target-
address
Target-
address
Status Instruction Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Checksum
Value (hex)
$02
$01
$64
$0a
$00
$00
$00
$00
$86
Value: 0