Galil Motion Control manc 18x 6 Page 208
DMC-18x6 Command Reference
200
TP
FUNCTION: Tell Position
DESCRIPTION:
This command returns the current position of the motor(s).
ARGUMENTS: TP nnnnnnnnnn
where
n is A,B,C,D,E,F,G or H or any combination to specify the axis or axes
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
Position Format
Command Line
Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_TPx contains the current position value for the specified axis.
RELATED COMMANDS:
Position Formatting
EXAMPLES:
Assume the A-axis is at the position 200 (decimal), the B-axis is at the position -10 (decimal), the
C-axis is at position 0, and the D-axis is at -110 (decimal). The returned parameter units are
in quadrature counts.
:TP Return
A,B,C,D
positions
200, -10, 0, -110
TPA
Return the A motor position
200
TPB
Return the B motor position
-10
PF-6.0
Change to hex format
TP
Return A,B,C,D in hex
$0000C8,$FFFFF6,$000000,$FFFF93
Position =_TPA
Assign the variable, Position, the value of TPA