Homing a gantry with two motors, one switch input, and zero clue

More
6 years 4 months ago #171672 by Bats
After nearly a year's delay (due to mostly unrelated circumstances) I'm taking a second crack at migrating my machine to linuxCNC. This time around, I've made it a little farther - thanks in no small part to rodw, andypugh, my slightly younger (but no better looking) self, and the marks we all scratched into the wall of this here forum those many months ago.

So far I've got homing more or less working for the Y & Z axes, but I'm having a little trouble with the gantry (which, as you may be surprised and/or horrified to discover, I've named "X"). My original plan was to use four limit/home switches and, hopefully, get linuxCNC to square the gantry for me - and I think I might even have the config set up for that. Unfortunately I got about as far as unspooling the wire for the fourth switch before noticing that my Gecko only has four inputs - currently occupied by X (or one side thereof), Y, Z, and a touch plate.

I have this vague suspicion that there might be some clever trick of wiring and HALing to work around the issue and achieve my initial goal, but figuring it out has proved far beyond my batty little brain, so I find myself, once again, throwing myself on the mercy of the forum.

If I'm wrong (as is oh so very frequently is the case), I'd also be satisfied with some pointers on twiddling my HAL to perform a plain ol' non-squaring sort of homing. I figure if I can get that far, I can take another (and hopefully better-informed) crack at it down the road when I'm ready to Mesa-fy the system.... but somehow the cracks I did take seem to have been the sort that turn into breaks.

Any suggestions would be welcome.


-Bats
(suggestions other than "get lost, you smell funny" will be given precedence)
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #171674 by PCW
One simple way would be to connect your single X home
/limit switch to motions joint 0 _and_ joint 1 home and
min limit inputs:

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

Alternatively, you could free up a pin by sharing the Y and Z
home/limits allowing gantry squaring when homing.

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #171675 by Bats

PCW wrote: One simple way would be to connect your single X home
/limit switch to motions joint 0 _and_ joint 1 home and min limit inputs:

I thought something like that would work, but my attempts just seemed to end in disaster (well, very minor & not particularly destructive disaster... but disaster. sort of).

But I went back to try again, and saw [strike]exactly the same thing[/strike] that I'd apparently botched the direction of my HOME_OFFSET, causing it to home nicely, and then grind itself into the switches as hard as it could get away with. Now it seems to be behaving better. Thanks!

Alternatively, you could free up a pin by sharing the Y and Z
home/limits allowing gantry squaring when homing.

Now this was something I vaguely suspected - and that would let me cling to my dreams of self-squaring gantries - but had no idea how to go about. Now that I know it's possible, I'll try to take another pass at the docs tomorrow.

I'll almost certainly be back here begging for more details by tomorrow night anyhow... but hopefully it'll be a somewhat better informed sort of begging.

Thanks again.

-Bats
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #171685 by bbsr_5a
how stiff is your gantry to get the 2 motors separate homing after it triggers one
linuxcnc.org/docs/html/man/man9/gantry.9.html

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #171713 by tommylight

Bats wrote: (suggestions other than "get lost, you smell funny" will be given precedence)

LOL :)

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #171796 by Bats

bbsr_5a wrote: how stiff is your gantry to get the 2 motors separate homing after it triggers one

It's a aluminum extrusion (C-beam) based router, so not nearly as stiff as I'd like it to be... but I'm not sure I understand the rest of the question, and I'm afraid the link (at least without more context) went a little over my head. It sounds like something that would only be applicable if I got the fourth switch wired (presumably by sharing pins as PCW suggested), rather than something to be used with the current three switches/four joints?


-Bats

Please Log in or Create an account to join the conversation.

Time to create page: 0.141 seconds
Powered by Kunena Forum