
Publication 2098-PM001E-EN-P — July 2002
2-36 Referencing the Motion Library
Gear Attributes
float GearGetVel(void);
Returns the gear velocity in counts/second.
long GearSetRatio(float ratio);
Sets the default count-to-count electronic gear ratio. If gearing is
enabled, the ratio is changed to the specified ratio subject to any Gear
Slew settings. If the gearing is not enabled, the value is set and will
take effect when gearing is enabled.
Returns 0 if successful, or -1 on an error.
long GearSlewSetAcc(float acc);
Sets gearing slew acceleration. Acceleration is in gear ratio/sec.
Returns 0 if successful, or -1 on an error.
long GearSlewSetDec(float dec);
Sets gearing slew deceleration. Deceleration is in gear ratio/sec.
Returns 0 if successful, or -1 on an error.
Gear Services
long GearDisable(void);
Disables electronic gearing.
Returns 0 if successful, or -1 on an error.
long GearEnable(void);
Enables electronic gearing at a pre-set ratio. It provides a direct
edge-to-edge lock between the two axes – no maximum velocity,
acceleration, or deceleration limits are used. The speed, acceleration,
and deceleration of the subordinate axis are determined by the
motion of the master axis and the gear ratio specified in the
GearSetRatio function.
Returns 0 if successful, or -1 on an error.
Comentarios a estos manuales