Chapter 10
Electronic Gearing and Camming
10-2
ni.com
Algorithm
Figure 10-1.
Electronic Gearing Algorithm
The gear ratio is used to determine how far the slave axis must move in
proportion to the master when gearing is enabled. The gear ratio can be
absolute or relative.
Slave axis move = Master axis position
×
Gear ratio
Relative gearing allows you to change the gear ratio on-the-fly. The master
move is calculated based on the master reference position, which is updated
when gearing is enabled and is updated each time a new gear ratio is loaded.
Set the Gear Ratio
Load Move Constraints
Set Operation Mode
Load Target Position
Start Motion on Slave Axis
Enable gearing on the
Slave Axis
Gearing
Superimposed
Straight-line Move
(optional)
Designate a Master Device
The device can be one of the following:
•
the trajectory generator of another axis
•
an encoder driven externally
• αν
analog sensor connected to one
of the analog channels of the motion
controller
The slave axis now moves in
proportion to the master device.