Optima DMC-1xxx and DMC-18x2 Command Reference
GD
i
95
GD
FUNCTION: Gear Distance
DESCRIPTION:
The GD command sets the distance of the master axis over which the specified slave will be
engaged, disengaged or changed to a new gear setting. The distance is entered as an
absolute value, the motion of the master may be in either direction. If the distance is set
to 0, then the gearing will engage instantly.
ARGUMENTS: GD n,n,n,n,n,n,n,n
where
n is an integer in the range 0 to 32767; the units are in encoder counts
n = 0
will result in the conventional method of instant gear change
n = ?
will return the value that is set for the appropriate axis
USAGE: DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
1.0
Command Line
Yes
Controller Usage
OPERAND USAGE:
_GDn contains the distance the master axis will travel for the specified slave to fully engage,
disengage, or change ratios.
RELATED COMMANDS:
"_
GP
"
Gearing Phase Differential
"
GR
"
Gear Ratio
"
GA
"
Gear Axis
EXAMPLES:
GA,X
Sets the X axis as the gearing master for the Y axis
GD,5000
Set distance over which gearing is engaged to 5000 counts of the master
axis.
JG5000
Set the X axis jog speed to 5000 cts/sec.
BGX
Begin motion on the X axis
ASX
Wait until X axis reaches the set speed of 5000 couts/sec
GR.1
Engage gearing on the Y axis with a ratio of 1:1, the distance to fully
engage gearing will be 5000 counts of the master axis
WT1000
Wait 1 second
GR,3
Set the gear ratio to three. The ratio will be changed over the distance set
by the GD command
WT1000
Wait 1 second
GR,0
Disengage the gearing between the Y axis slave and the master. The
gearing will be disengaged over the number of counts of the master
specified with the GD command above