Home > Resources > Example Programs > Position teach

Position teach

Description

This program allows the user to “teach” the product a +/- move profile based on manually positioning the motor shaft. The shaft is manually moved to a position, then an input is toggled to store that position in encoder counts to a user variable. The shaft is moved to second position, the input is again toggled to store the second position in a second variable. The motor will then move between the two stored positions.

Note that the input settings are undefined in the program, as the default settings are used.

The code shown on the right may be copied and pasted into the program editor window of the Motion Control Programmer application, or a zip file containing the program files may be downloaded below.

Requirements

Example program

Liberty* MCodeMDrive MCode
 

 

When it comes to your form, fit and function requirements, don’t settle. Get precisely what you need working with us. We know motion.

Contact us with any questions about how we can help you with your motion application or for assistance with your IMS products.

Browse our resource section and find the most useful tools and documents for all our products.