After homing X and Y, can I auto move to a non 0,0 location?

More
19 Apr 2025 16:06 #326716 by pgf
I've recently gotten switch-based homing working on my 12"x12" DIY xyz mill.  The mill is the style where the spindle is stationary, and the bed moves in two directions underneath.  (I'm sure there's a name for that.)

0,0 is at the near left corner of the bed (of course), and after homing, with the spindle above that point, the bed is basically as far from me as possible.

I'd prefer it to home to 12,12 instead of 0,0, which would leave the bed as close to me as possible.  I've tried homing against the upper limits instead of the lower limits, with a HOME_OFFSET of 12, thinking that would help, but after homing at the near corner, the mill once again moves all the way to the other end, in order to end up at 0,0.

Is there a way to accomplish what I want?  If I can't convince it to actually home to the near corner, is there a way to automatically invoke an arbitrary move after homing?  

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

More
19 Apr 2025 17:26 #326725 by spumco
Post your INI file please and we'll see what needs editing.

And yes, homing is a never-ending struggle for LCNC users - both new and old-but-rusty.
The following user(s) said Thank You: pgf

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

More
19 Apr 2025 17:56 #326728 by PCW
Also make sure you read this entire document:

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

It seems like HOME is the INI variable you need to change.
The following user(s) said Thank You: pgf

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

More
20 Apr 2025 12:00 - 20 Apr 2025 12:02 #326756 by pgf
Thank you both. I'm certain you're right: Home is set to 0. So if I switch to homing at the 12,12 corner, and change HOME to 12 for both X and Y, it will almost certainly do what I want. INI file attached, in any case.   If HOME had been grouped with the other HOME_* variables, I might have noticed.  :-)
Attachments:
Last edit: 20 Apr 2025 12:02 by pgf. Reason: typo

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

More
20 Apr 2025 12:15 #326759 by pgf
I also need to stop using google to find linuxcnc docs, rather than having some known-good bookmarks on hand. Not only does google often point to old versions of the docs, it will also take you into the middle of the document. While I'd read most of the page @PCW linked to, I think I'd never even seen the first several sections, with the excellent colorful diagrams. Wish I had!

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

More
20 Apr 2025 12:45 #326762 by rodw
Ahh you see the light! Be sure to read the correct version of the documents for the version you are using. Everything you need to know is there in those docs!
The following user(s) said Thank You: pgf

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

More
20 Apr 2025 14:53 #326767 by pgf
Well reading the (correct, even) documentation hasn't helped.

Clearly, my expectations are wrong.  I have an axis that goes from 0 to 12.  I want to home at the "12" end.  It's a "bed moves" mill, so the motions are all backwards from the POV of the config, which is clearly expecting a "spindle moves" mill.  

Here's what I have.  The SEARCH and LATCH phases work fine, both searching negative.  But when the axis engages HOME_FINAL_VEL, it also heads in the negative direction to find HOME.  To be clear: HOME_SEARCH_VEL, HOME_LATCH_VEL, and HOME_FINAL_VEL are all moving the axis in the same, negative, direction.

With the INI as shown, it moves .5" before stopping.  (I've replaced "HOME=12" with "HOME=.5" for testing, simply so the axis doesn't move so far in the wrong direction.  I'm testing in the middle of the bed, simulating by activating the limit switch by hand.)

What do I need to do?

MIN_LIMIT = -0.001
MAX_LIMIT = 12.0
HOME_IS_SHARED = 1
#HOME = 12
HOME = .5
HOME_OFFSET = 0.1 
HOME_SEARCH_VEL = .2
HOME_LATCH_VEL = 0.015
HOME_FINAL_VEL = .15
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2

 

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

Time to create page: 0.057 seconds
Powered by Kunena Forum