108
•
PR
DMC-1000/1500 Command Reference
DMC-1000
DMC-1500
PR
FUNCTION:
Position Relative
DESCRIPTION:
The PR command sets the incremental distance and direction of the next move. The move is
referenced with respect to the current position. If a ? is used, then the current
incremental distance is returned (even if it was set by a PA command). Units are in
quadrature counts.
ARGUMENTS:
PR x,y,z,w PRX=x PR a,b,c,d,e,f,g,h where
x,y,z,w are signed integers in the range -2147483648 to 2147483647 decimal.
"?" returns the current incremental distance for the specified axis.
USAGE: DEFAULTS:
While Moving
No
Default Value
0
In a Program
Yes
Default Format
Position Format
Command Line
Yes
Can be Interrogated
Yes
Used as an Operand
Yes
OPERAND USAGE:
_PRx contains the current incremental distance for the specified axis.
RELATED COMMANDS:
PA Position
Absolute
BG Begin
AC Acceleration
DC Deceleration
SP Speed
IP Increment
Position
PF Position
Formatting
EXAMPLES:
:PR 100,200,300,400
On the next move the X-axis will go 100 counts,
:BG
the Y-axis will go to 200 counts forward, Z-axis will go 300
counts and the W-axis will go 400 counts.
:PR ?,?,?
Return relative distances
0000000100,0000000200,0000000300
:PR 500
Set the relative distance for the X axis to 500
:BG
The X-axis will go 500 counts on the next move while the
Y-axis will go its previously set relative distance.