Home and Index in Motion Control
Use the Find Home command to locate the home switch. During a Find Home, the motor moves in one direction until it hits either a home switch or a limit switch. If the home switch is reached first, the controller stops the motor, giving the user an opportunity to set the encoders to zero or to some arbitrary position value. If the motor hits a limit switch before detecting a home switch, it reverses direction and continues until it hits either a home switch or a limit switch. If there is no home switch, the controller stops searching when it hits the second limit switch. Some common applications for home switches are as follows:
- An industrial robot that needs to quickly go back to the same place in space every time it is power cycled in order to define its coordinate system.
- An XY table that needs to know where it's (0,0) spot is every time the controller is turned on.
- The motor never travels more than one revolution because it is driving a rotary stage and typically will use a high resolution encoder. Find Index is used in place of Find Home.
- After a find home sequence, find index is used to achieve greater precision in calibration. Find Home is used as a coarse find while Find Index is used as a fine find. This is due to mechanical slack between the lead screw and stage.
When enabled, the home switch is treated as a limit switch. During movement through home, the axis inhibit becomes active. For this reason, after a Find Home (and Find Index) sequence, the user should disable the home limit switch.
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
