GD

Syntax:Implicit Only
Operands:_GDn
Burn:burnable with BN

Gear Distance

Hardware: DMC40x0 DMC41x3 DMC21x3 DMC18x6 DMC18x2 DMC300x0

Full 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

Operand Usage

_GDn contains the distance the master axis will travel for the specified slave axis to fully engage, disengage, or change ratios.

Usage

Usage and Default Details
UsageValue
While MovingYes
In a ProgramYes
Command LineYes
Controller Usage
Default Value0
Default Format(1.0 for 18x2 & 21x3) (5.0 for 18x6 & 4xxx)

Related Commands

_GP - Gearing Phase Differential
GR - Gear Ratio
GA - Gear Axis

Examples:

#A	
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 counts/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
EN	;'End program