Homing with probe input
- blazini36
- Away
- Platinum Member
- Posts: 925
- Thank you received: 143
So if you made the statement "cheap, improperly spec'd inductive proximity sensors work like shit" I'd certainly agree. You just said inductive switches in general, which is not true at all.
Just so ya know I'm not trolling, these are all of my axes limits and the spindle index installed on the head. I paid $70 for 10 of these switches brand new a couple years ago on Ebay and I still have 4 left, so there's nothing too crazy about any of it.
Attachments:
Please Log in or Create an account to join the conversation.
- mBender
- Offline
- Premium Member
- Posts: 113
- Thank you received: 11
But what I want is more a custom home cycle. Like I described above. A limit switch which, as soon as activated reduces the speed for the final approach which is then connected to a different input. I wonder if that would work with the mux in the hal.
Regarding the rest of the discussion which sensor to use or not. Why would I spend money for a sensor which at the end is never as good and simple as the probe input? I simply make the machine a mechanical switch which is connected on touch. It's just a question if that can be realized in the software.
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
- Posts: 925
- Thank you received: 143
I think nobody really understood what you're asking.
Yeah you can do that......you're going to do that for multiple axes within a standard homing sequence? That's where you'll run into problems.But what I want is more a custom home cycle. Like I described above. A limit switch which, as soon as activated reduces the speed for the final approach which is then connected to a different input. I wonder if that would work with the mux in the hal.
If you want to write a "custom homing sequence" then just do that. Write a Gcode file with a subroutine that alters the inihal home pins on inputs from the touchprobe. You can have it do whatever you want but you'll be responsible for the entire sequence, there's nothing canned about it. You run a standard LinuxCNC homing sequence to normal home/limit switches just like normal to get the machine in some reasonable coordinates, then run the sub file to do whatever you want with the probe. You can set NO_FORCE_HOMING = 1 in the ini file so you'll never have to run standard homing in LinuxCNC, so as long as the machine is somewhere near the correct position you'll only have to run the sub to use the probe to alter home.
Honestly I wouldn't do any of it, if accuracy is that important to you buy better home switches. LinuxCNC is meant to use home/limit switches, not a touch probe.
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
- Posts: 10780
- Thank you received: 3550
Because it means that you are not fighting the paradigm. Life is always simpler if you follow the paradigm with any computer it stuff.Why would I spend money for a sensor which at the end is never as good and simple as the probe input?
You can still use the probe and set the G5X offsets before running any code.
Please Log in or Create an account to join the conversation.
- Mecanix
- Offline
- Platinum Member
- Posts: 446
- Thank you received: 216
True. Using unleashed creativity and extra time, a whole lot can be done with hal. Alternatively you could create your own cycle & logic using remap and subroutines for instance. At the end of the day it's all about whether it really worth the effort tolerance-wise. In my case; I sneeze on the machine and an offset of 0.01mm is automated!! (rigidity issue), let alone the afternoon sun (thermal expansion) sending my entire machine-tool out of whack, to name a few. Lastly I don't know anyone who needs to pay for sub-atomic size tolerances anyway, less myself. My manufacturing & drawings tol are twice more than what a dumb mechanical switch throws.But what I want is more a custom home cycle. Like I described above. A limit switch which, as soon as activated reduces the speed for the final approach which is then connected to a different input. I wonder if that would work with the mux in the hal.
Unrelated (but related) I've moved on to On-Machine and In-Process probing "in CAM". Currently writing automated subroutines that does all that where & what coordinates and tool offsets work at the start of each program. Therefore Home Pos[n] becomes pretty redundant at this stage. Consider this remapping idea I've given you, worth looking into custom cycles. gl
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
- Posts: 925
- Thank you received: 143
Why would I spend money for a sensor which at the end is never as good and simple as the probe input?
Because it means that you are not fighting the paradigm. Life is always simpler if you follow the paradigm with any computer it stuff.
You can still use the probe and set the G5X offsets before running any code.
Amen to that! As I was thinking about how you could actually do it and yeah, it is possible.......I'm thinking "why the hell wouldn't you just buy better switches than go through all this"
Please Log in or Create an account to join the conversation.
- mBender
- Offline
- Premium Member
- Posts: 113
- Thank you received: 11
I think I will proceed with a regular homing cycle and then write a small subroutine which touches off at a fixed point in the machine workspace and set the G53 coordinates for X Y and Z to a fixed offset once the probe input is triggered.
Would that work with G10 L2 P0 x<coordinate> set the G53 X position? The manual says P1 is G54 and P0 is active. Since I never executed any coordinate system change, is the machine still in G53?
Please Log in or Create an account to join the conversation.