After homing X and Y, can I auto move to a non 0,0 location?
- pgf
- Offline
- Premium Member
-
Less
More
- Posts: 86
- Thank you received: 13
19 Apr 2025 16:06 #326716
by pgf
After homing X and Y, can I auto move to a non 0,0 location? was created 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?
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.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 1937
- Thank you received: 775
19 Apr 2025 17:26 #326725
by spumco
Replied by spumco on topic After homing X and Y, can I auto move to a non 0,0 location?
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.
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.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18460
- Thank you received: 5042
19 Apr 2025 17:56 #326728
by PCW
Replied by PCW on topic After homing X and Y, can I auto move to a non 0,0 location?
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.
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.
- pgf
- Offline
- Premium Member
-
Less
More
- Posts: 86
- Thank you received: 13
20 Apr 2025 12:00 - 20 Apr 2025 12:02 #326756
by pgf
Replied by pgf on topic After homing X and Y, can I auto move to a non 0,0 location?
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.

Last edit: 20 Apr 2025 12:02 by pgf. Reason: typo
Please Log in or Create an account to join the conversation.
- pgf
- Offline
- Premium Member
-
Less
More
- Posts: 86
- Thank you received: 13
20 Apr 2025 12:15 #326759
by pgf
Replied by pgf on topic After homing X and Y, can I auto move to a non 0,0 location?
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.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11194
- Thank you received: 3732
20 Apr 2025 12:45 #326762
by rodw
Replied by rodw on topic After homing X and Y, can I auto move to a non 0,0 location?
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.
- pgf
- Offline
- Premium Member
-
Less
More
- Posts: 86
- Thank you received: 13
20 Apr 2025 14:53 #326767
by pgf
Replied by pgf on topic After homing X and Y, can I auto move to a non 0,0 location?
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?
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.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 1937
- Thank you received: 775
20 Apr 2025 21:14 #326776
by spumco
Replied by spumco on topic After homing X and Y, can I auto move to a non 0,0 location?
Just to be sure about this...where are the limit switches physically located in relation to the travels?
With the table all the way back and to the right?
With the table all the way back and to the right?
Please Log in or Create an account to join the conversation.
- rodw
-
- Away
- Platinum Member
-
Less
More
- Posts: 11194
- Thank you received: 3732
20 Apr 2025 21:49 #326778
by rodw
Replied by rodw on topic After homing X and Y, can I auto move to a non 0,0 location?
You have to remember you are dealing with cartesian coordinates.
You can home to any corner you wish. Homing to the lower left of the worktable means all x,y coordinates are in the positive quadrant.
Homing to another corner will mean at least one axis will count in the negative direction. Think of the graphs you drew at school
I did have a machine where the home switch was at max Y but I added a home offset to make the home position at min Y
Thinking about it after using it, I realized I could have homed it at the home switch position so the Y axis would count in the negative direction beecause once you zero G54 offsets at lower left on your workpiece, everything would count in a positive direction anyway.
You can home to any corner you wish. Homing to the lower left of the worktable means all x,y coordinates are in the positive quadrant.
Homing to another corner will mean at least one axis will count in the negative direction. Think of the graphs you drew at school
I did have a machine where the home switch was at max Y but I added a home offset to make the home position at min Y
Thinking about it after using it, I realized I could have homed it at the home switch position so the Y axis would count in the negative direction beecause once you zero G54 offsets at lower left on your workpiece, everything would count in a positive direction anyway.
Please Log in or Create an account to join the conversation.
- pgf
- Offline
- Premium Member
-
Less
More
- Posts: 86
- Thank you received: 13
21 Apr 2025 00:53 #326781
by pgf
Replied by pgf on topic After homing X and Y, can I auto move to a non 0,0 location?
@spumco may be onto something? My limit switches are shared: both switches on one circuit. Maybe that's the problem?
@rodw -- My impression and hope was that if I homed to the upper right, I could somehow let the mill know that that point was 12,12 , and that therefore both axes would, yes, count in the negative direction, but not actually ever be negative. They would still go from 0 to 12, but it wouldn't be the 0,0 corner that homing was finding.
Does that make sense?
@rodw -- My impression and hope was that if I homed to the upper right, I could somehow let the mill know that that point was 12,12 , and that therefore both axes would, yes, count in the negative direction, but not actually ever be negative. They would still go from 0 to 12, but it wouldn't be the 0,0 corner that homing was finding.
Does that make sense?
Please Log in or Create an account to join the conversation.
Time to create page: 0.063 seconds