GR |
Syntax: | Explicit or Implicit |
| Operands: | _GRn | |
| Burn: | burnable with BN | |
Gear Ratio | Hardware: | DMC40x0 DMC41x3 DMC21x3 DMC18x6 DMC18x2 DMC300x0 |
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.
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.
_GRn contains the value of the gear ratio for the specified axis.
| Usage | Value |
|---|---|
| While Moving | Yes |
| In a Program | Yes |
| Command Line | Yes |
| Controller Usage | All |
| Default Value | 0 |
| Default Format | 3.4 |
GA - Master Axis for Gearing
GM - Gantry Mode
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