Optima DMC-1xxx and DMC-18x2 Command Reference
TP
i
192
TP
FUNCTION: Tell Position
DESCRIPTION:
The TP 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:
"PF"
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.
:PF 7
Position format of 7
:TP Return
A,B,C,D
positions
0000200,-0000010,0000000,-0000110
TPA
Return the A motor position
0000200
TPB
Return the B motor position
-0000010
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