09-20-2018 03:16 AM
Hello all,
I am trying to configure the stepper controller limit switches. But I get this error, and I have no idea what is causing it. Could anyone help me with this?
Thanks
09-21-2018
05:01 AM
- last edited on
11-21-2024
09:10 AM
by
Content Cleaner
Hi
We're going to need more info than this.
- what have you done up until this point? what debugging have you done?
- were you able to run the example you based your code on?
- what hardware are you using?
i know there is a known issue causing this error described here. have you seen this?
Help us help you 😉
09-21-2018 05:10 AM
Hello Andreas_OP,
For the debugging part I added every argument under a property node as seen in the VI attached.
I am using SMD-7615 stepper controller with Soft Motion.
I was able to run the hardware using the default example code provided by NI.
The issue described in the page you have suggested is for Read Motion I/O, which I am able to do it after the motor state is active.
What I am not able to do is to configure the stepper axis for a mechanical limit.
09-21-2018 07:35 AM
Hi NavinTerabee
I see that it's the "enable forward limit" that is causing you the errors.
I know that LabVIEW has a couple of known issues related to Ethernet steppers property and invoke nodes.
What happens if you disable automatic Error handling, and clear the error after the property node?
Auto Error handling should almost always be disabled anyway.
Cheers
09-26-2018 06:59 AM
Do you use an external limit switch?
If yes, make sure that it is connected to the corrrect digital port on the motor drive. In SoftMotion, you can configure the behaviour when the limit switch engages, by right-clicking on the Axis in the project tree and going on Axis Configuration. There you have to choose the correct digital ports.
As far as I know, Labview produces and error or warning when a limit switch engages. Remember that limit switches can be active high and active low.
09-28-2018 04:06 AM
Thank you Lysandros89 for the response. I designed a program to control the stepper motor using the software CW and CCW limits. It does exactly what it is supposed to, which is to stop exactly when a limit switch is pressed. I don't get an error when a limit switch is active.