GR

Syntax:Explicit or Implicit
Operands:_GRn
Burn:burnable with BN

Gear Ratio

Hardware: DMC40x0 DMC41x3 DMC21x3 DMC18x6 DMC18x2 DMC300x0

Full Description

GR specifies the Gear Ratios for the geared axes in the electronic gearing mode. The master axis is defined by the GA command. The gear ratio may be different for each geared axis. The master can go in both directions. A gear ratio of 0 disables gearing for each axis. A limit switch also disables the gearing unless gantry mode has been enabled (see GM command).

When the geared motors must be coupled "strongly" to the master, use the gantry mode GM.

Arguments

GR n,n,n,n,n,n,n,n      or          GRA=n           where
n is a signed numbers in the range +/-127, with a fractional resolution of 1/65536.
n = 0      Disables gearing
n = ?      Returns the value of the gear ratio for the specified axis.

Operand Usage

_GRn contains the value of the gear ratio for the specified axis.

Usage

Usage and Default Details
UsageValue
While MovingYes
In a ProgramYes
Command LineYes
Controller UsageAll
Default Value0
Default Format 3.4

Related Commands

GA - Master Axis for Gearing
GM - Gantry Mode

Examples:

REM setup gearing where B axis is master for A and C axes.
#GEAR	
MOB;'          Turn off servo to B motor
GAB,,B;'       Specify master axis as B
GR .25,,-5;'   Specify A and C gear ratios
SHB;'          Enable B axis
PRB=1000;BGB;' Move B axis 1000 counts
'              A axis will be commanded to move 250 counts positive
'              C axis will be commanded to move 5000 counts negative (-5000)
EN;'           End program