Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Position

Our application is an open looped stepped motor and we are using the trajectory output count to count for the traveled distance.
So, I would like to set the trajectory output count to zero after homing, to make sure every traveled distance is correct.
Is there any function can be called in VB that can reset position in the current trajectory data?
0 Kudos
Message 1 of 2
(3,077 Views)

Hello,

Thank you for contacting National Instruments.

The function you are needing is either flex_reset_pos or reset_pos, depending on your motion board and the driver software (FlexMotion or ValueMotion, respectively). The FlexMotion version of this function will reset the position to any desired value. I use this function often with open-loop steppers (no encoders hooked up), and it does behave as expected. The ValueMotion version, however, will only reset the position to 0.

For FlexMotion, you can find complete function documentation in the Program Files>>National Instruments>>NI-Motion>>Documentation directory or at the following link: NI-Motion Function Help.

Documentation for ValueMotion can be found in a similar Start Menu location or at the following link: ValueMotion Software Reference.

Best Regards,

Jesse D.
Applications Engineer
National Instruments

0 Kudos
Message 2 of 2
(3,077 Views)