Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Modal Error at Start Motion.flx

When I try to move an axis past a limit swich using a joystick and the Start Motion .flx subvi I get the following Modal Error.
 
Error # -70119 occured at Start on Axis 3
Possible reasons:
Motion: -70119 (NIMC_limitSwitchActiveError)
The desired move cannot be completed because the limit input is active in the direction of travel.
 
I know exactly why the error comes up. My question is:
 
How can I trap the error before the modal dialog box shows up? I want to be able to hande this error in a more graceful way.
 
Whe it happens with the Start Motion.flx, the resulting Modal Error is not very damaging to the user experience. However, when it happens during a BLEND move the results are disastrous. Help.
 
I am using
LabView 7.1 & NI Motion 7.2
 
Thanks,
 
Alejandro
0 Kudos
Message 1 of 2
(3,530 Views)
Alejandro,
 
    It looks like you have a user that is controlling this motor, and if they happen to hit a limit, you don't want an error to pop up, correct?  There are a couple ways to attack this.  I'm not positive that this would work, but there is a VI called Clear Errors.vi that clears out the errors that leave a VI.  It may be able to clear the error.  The better, though a little more time consuming option, would be to set up code to watch for the limits.  If the limit switches are on, there can be a case structure that checks if a requested movement goes outside of the limits, and if it does, your program can edit the movement to stay within the limits.  Let me know if you have any questions, or want anymore suggestions.  Thank you!
 
-Allison S.
-Allison S.
Calibration Services
Product Support Engineer
0 Kudos
Message 2 of 2
(3,517 Views)