Millright Mega V Controller Change

More
6 years 1 day ago #187824 by emoseman
I recently purchased a Millright Mega V XL and the GRBL controller that comes with it drops out consistently during jobs so I swapped out the controller with a Mesa 7i96 and I'm trying to use LinuxCNC to control the 7i96 board. I initially used the Pncconf tool to generate the configuration for LinuxCNC. This machine has limit switches installed for the X, Y, and Z axes'. I've been able to get to the point where the machine is now jogging on all axes'. The problem is when I attempt to home the machine in any axis. When I try this I get the errors: "hit limit switch in home state 7" followed by "Joint 0 on limit switch error".

I've tried everything I can think including tracing the logic through the control.c and homing.c (software engineer) and I can't figure out why these errors are being generated.

I've attached my latest ini and hal files.

Any help is greatly appreciated!

--
Evan

Please Log in to join the conversation.

More
6 years 1 day ago #187825 by PCW
if you have a combined home/limit switch on a joint you need to have

HOME_IGNORE_LIMITS = YES

on that joint

linuxcnc.org/docs/html/config/ini-homing.html

Please Log in to join the conversation.

More
6 years 1 day ago #187826 by emoseman
If I use that setting on that joint and try to home that axis it just crashes into the side of the machine ignoring the limit switch.

Is there another setting that I need in order to use that limit switch?

Please Log in to join the conversation.

More
6 years 1 day ago #187827 by PCW
I suspect you didn't tell pncconf that you have shared home/limit switches
(so LinuxCNCs joint home inputs are unconnected in the hal file)

That is:

net x-home-sw => joint.0.home-sw-in
net min-x => joint.0.neg-lim-sw-in

would need to change to

# net x-home-sw => joint.0.home-sw-in
net min-x => joint.0.neg-lim-sw-in joint.0.home-sw-in

etc

Please Log in to join the conversation.

More
6 years 23 hours ago #187831 by emoseman
With these changes my machine is finally homing correctly!

I just have to figure out how to reverse the direction of the Y axis according to LinuxCNC and it might actually be working!

Please Log in to join the conversation.

More
6 years 23 hours ago #187836 by Clive S

emoseman wrote: With these changes my machine is finally homing correctly!

I just have to figure out how to reverse the direction of the Y axis according to LinuxCNC and it might actually be working!


Have you tried changing STEP_SCALE = -57.288 to 57.228 that should change the motor direction.

But then you would need to change the signs on the homing so they move in the correct direction

Please Log in to join the conversation.

More
6 years 11 hours ago #187871 by Mike_Eitel
I would try to swap two wires between y motor and y driver. That way you do not have to remember those "inversions" over coming years. Or write good documentation in your hal file.
m5c
Mike

Please Log in to join the conversation.

More
6 years 6 hours ago #187910 by emoseman
This is what I ended up having to do to get the Y axis moving in the right direction.

Thanks for the tip!

Please Log in to join the conversation.

Time to create page: 0.181 seconds
Powered by Kunena Forum