How much force is going to be on the motor? If there is a low load you could simply stop the motor once the limit switch is enabled. If there is going to be a large load on the motor and you have an encoder you can set the motor to stop once the limit switch is enabled. You could then measure the position of your motor angle and create a control loop to maintain this position until an external event occurs like a fire command.
Wear National Instruments Product Support Engineer