Command Descriptions
59
D
Distance
Type
Motion
Syntax
<a_><!>D<r>
Units
r = distance units (scalable by SCLD)
Range
±
999,999,999.99999
Default
4000
Response
D: *D+4000
See Also
[ D ], DMEPIT, DRES, ERES, GO, IF, MA, MC, PSET, SCLD, TSTAT,
VARI, WAIT
Product Rev
GT6K 6.0
GV6K 6.0
The Distance (
D
) command defines either the number of units the motor will move or the absolute position
it will seek after a
GO
command. In the incremental mode (
MAØ
), the distance value represents the total
number of units you wish the motor to move. In the absolute mode (
MA1
) the distance value represents the
absolute position the motor will end up at; the actual distance traveled will vary depending on the absolute
position of the motor before the move is initiated.
In the incremental mode (
MAØ
), you can specify a negative distance by placing a dash or hyphen (-) in front
of the distance value (e.g.,
D-10000
). Otherwise, the direction is considered positive. You can change
direction without changing the distance value by using the
+
,
-
, or
~
operators (e.g.
D+
, or
D-,
or
D~
); the
tilde (
~
) is a means of toggling the direction.
The distance remains set until you change it with a subsequent distance command. Distances outside the valid
range are flagged as an error, returning the message
*INVALID
DATA-FIELD
x
, where
x
is the field number.
UNITS OF MEASURE
and
SCALING
: refer to page
16
.
ON-THE-FLY CHANGES
: You can change distance
on the fly
(while motion is in progress) in two ways.
One way is to send an immediate distance command (
!D
) followed by an immediate go command (
!GO
).
The other way is to enable the continuous command execution mode (
COMEXC1
) and execute a buffered
distance command (
D
) followed by a buffered go command (
GO
).
Direction of Motion for Rotary Motors:
Positive distance values (e.g.,
D20000
) represent clockwise motion and
negative values (e.g.,
D-20000
) represent counter-clockwise motion. This
assumes you connected the motor (and feedback device for servos) according
to the
Hardware Installation Guide
instructions.
Counter-clockwise
(negative counts)
Clockwise
(positive counts)
Example:
SCALE1
; Enable scaling
SCLA25000
; Set the acceleration scaling factor for to 25000 steps/unit
SCLV25000
; Set the velocity scaling factor to 25000 steps/unit
SCLD1
; Set the distance scaling factor to 1 step/unit
DEL proga
; Delete program called proga
DEF proga
; Begin definition of program called proga
MA0
; Incremental positioning mode
MC0
; Preset positioning mode
A10
; Set the acceleration to 10 units/sec/sec
AD1
; Set the deceleration to 1 units/sec/sec
V1
; Set the velocity to 1 units/sec
D100000
; Set the distance to 100000 units
GO1
; Initiate motion
END
; End definition of program called proga
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...