How do people "home" or "touch off" Z axis consistently?
- uptown47
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
05 Dec 2018 10:38 #121858
by uptown47
How do people "home" or "touch off" Z axis consistently? was created by uptown47
Hi all,
I'm just experimenting (and learning!) with my CNC machine. Eventually I'll have working homing switches on X and Y but I'm not planning on having a switch on Z.
Currently I'm driving the 'bit' to the bottom left of the material and manually clicking "home" in linuxCNC for each axis and also making sure that the G54 values are all '0'.
Then I click the 'run' button and off it goes. This is working fine (in the main) for experimenting but I'm finding that it's difficult to get a consistent Z position? I've fitted a 'dust shoe' now so can't really see what it's doing and I found last night (after it had been running for an hour) that it was just cutting fresh air!
I wondered if there's a recognised way of getting a consistent Z position? Do people lower the Z on to a bit of wood of a known height? Or do people take the Z to a set switch and then somehow 'offset' it from that position minus the depth of their wood or... ???
I'm probably approaching this all wrong but if anyone could explain this to me (preferably - explain it to me like I'm 5) then it would be very much appreciated.
Cheers
I'm just experimenting (and learning!) with my CNC machine. Eventually I'll have working homing switches on X and Y but I'm not planning on having a switch on Z.
Currently I'm driving the 'bit' to the bottom left of the material and manually clicking "home" in linuxCNC for each axis and also making sure that the G54 values are all '0'.
Then I click the 'run' button and off it goes. This is working fine (in the main) for experimenting but I'm finding that it's difficult to get a consistent Z position? I've fitted a 'dust shoe' now so can't really see what it's doing and I found last night (after it had been running for an hour) that it was just cutting fresh air!
I wondered if there's a recognised way of getting a consistent Z position? Do people lower the Z on to a bit of wood of a known height? Or do people take the Z to a set switch and then somehow 'offset' it from that position minus the depth of their wood or... ???
I'm probably approaching this all wrong but if anyone could explain this to me (preferably - explain it to me like I'm 5) then it would be very much appreciated.
Cheers
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19504
- Thank you received: 6540
05 Dec 2018 11:14 #121860
by tommylight
Yes and yes, on both counts.
With no home switches, most tend to use a piece of paper and slowly lower Z till it touches the paper so it does not move freely any more and home Z there. The paper is generally regarded as 0.1mm thick so that would be the best you can get for repeatability, but i would not bet on it. 0.2 or 0.3 is a margin of error.
Replied by tommylight on topic How do people "home" or "touch off" Z axis consistently?
I wondered if there's a recognised way of getting a consistent Z position? Do people lower the Z on to a bit of wood of a known height? Or do people take the Z to a set switch and then somehow 'offset' it from that position minus the depth of their wood or... ???
Yes and yes, on both counts.
With no home switches, most tend to use a piece of paper and slowly lower Z till it touches the paper so it does not move freely any more and home Z there. The paper is generally regarded as 0.1mm thick so that would be the best you can get for repeatability, but i would not bet on it. 0.2 or 0.3 is a margin of error.
The following user(s) said Thank You: uptown47
Please Log in or Create an account to join the conversation.
- uptown47
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
05 Dec 2018 13:29 #121868
by uptown47
Replied by uptown47 on topic How do people "home" or "touch off" Z axis consistently?
Thanks Tommy. I'll give the paper trick a go! I never even thought of that!!
I'm going to eventually fit X and Y homing but I'm struggling to see how I'll ever get Z homing fitted. I'm sure it's possible but will need some serious thought.
For now a bit of paper will be more than adequate for my needs I think.
Thanks again
John
I'm going to eventually fit X and Y homing but I'm struggling to see how I'll ever get Z homing fitted. I'm sure it's possible but will need some serious thought.
For now a bit of paper will be more than adequate for my needs I think.
Thanks again
John
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
06 Dec 2018 03:28 #121920
by JohnnyCNC
Replied by JohnnyCNC on topic How do people "home" or "touch off" Z axis consistently?
I built a touch plate that has a button on it which starts the probing process.
I just set it on top of the stock, jog the cutter to within 1/4 inch of the plate and press the button. As soon as the bit touches the plate it records the Z height minus the thickness of the touch-plate.
I just set it on top of the stock, jog the cutter to within 1/4 inch of the plate and press the button. As soon as the bit touches the plate it records the Z height minus the thickness of the touch-plate.
The following user(s) said Thank You: uptown47
Please Log in or Create an account to join the conversation.
- uptown47
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
06 Dec 2018 08:57 #121933
by uptown47
Hi Johnny
Thanks for the info. I'm intrigued by this. Can you give me more details on how it works? How does the 'bit' know it's made contact with the plate? And also how does it automatically enter the Z height into the software?
Thanks
Replied by uptown47 on topic How do people "home" or "touch off" Z axis consistently?
I built a touch plate that has a button on it which starts the probing process.
I just set it on top of the stock, jog the cutter to within 1/4 inch of the plate and press the button. As soon as the bit touches the plate it records the Z height minus the thickness of the touch-plate.
Hi Johnny
Thanks for the info. I'm intrigued by this. Can you give me more details on how it works? How does the 'bit' know it's made contact with the plate? And also how does it automatically enter the Z height into the software?
Thanks
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4861
06 Dec 2018 17:52 #121975
by andypugh
Replied by andypugh on topic How do people "home" or "touch off" Z axis consistently?
I don't think that "home" is ever the right way to set the coordinate system...
Much better to push the machine all the way to the end-stops when powered down, then home, then do all your other touch-off with touch-off.
Better still to fit limit switches.
"Home" is to tell the system where the axes are in their travel limits.
"Touch off" is how you set the part origin and tool lengths.
Much better to push the machine all the way to the end-stops when powered down, then home, then do all your other touch-off with touch-off.
Better still to fit limit switches.
"Home" is to tell the system where the axes are in their travel limits.
"Touch off" is how you set the part origin and tool lengths.
The following user(s) said Thank You: uptown47
Please Log in or Create an account to join the conversation.
- uptown47
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
06 Dec 2018 19:31 #121984
by uptown47
Thanks Andy. I'm going to be getting my homing switches fitted and working over chrimbo all being well.
Thanks for your help matey.
Cheers
John
Replied by uptown47 on topic How do people "home" or "touch off" Z axis consistently?
I don't think that "home" is ever the right way to set the coordinate system...
Much better to push the machine all the way to the end-stops when powered down, then home, then do all your other touch-off with touch-off.
Better still to fit limit switches.
"Home" is to tell the system where the axes are in their travel limits.
"Touch off" is how you set the part origin and tool lengths.
Thanks Andy. I'm going to be getting my homing switches fitted and working over chrimbo all being well.
Thanks for your help matey.
Cheers
John
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
06 Dec 2018 20:56 #121987
by JohnnyCNC
Replied by JohnnyCNC on topic How do people "home" or "touch off" Z axis consistently?
I'll send more detail this evening.
The following user(s) said Thank You: uptown47
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
Less
More
- Posts: 543
- Thank you received: 100
07 Dec 2018 00:29 #121991
by JohnnyCNC
Replied by JohnnyCNC on topic How do people "home" or "touch off" Z axis consistently?
I built this touch-plate.
To use it you set it on the material then bring the tool within a 1/4 inch of the plate. Then connect the alligator clip to the tool. This ensures a good ground connection. Then press the button on the probe. That signal causes the probe routine to be executed. The probe routine will move the tool very slow down until contact with the plate is made or the probe distance is exceeded. If the plate is contacted the current Z position minus the height of the touch-pate is stored and represents where the top of the material is. The Z will rapid up the specified distance. One inch in my case. If the probe distance is exceeded without making contact the probe motion with stop and an error will appear on the screen
To set this up do the follow or some variation of it. I got this info from somewhere on this site so I am not the original author.
Put the following lines in a file named 100.ngc and place the file in your nc_files folder.
<pre>
o100 sub
G20
( Set current Z position to 0 so that we will always be moving down )
G10 L20 P0 Z0
( Probe to Z-.5 at F2 [Uses machine units, I work in inch, this is meant to be slow!] )
G38.2 Z-.25 f2
( Set Z0 at point where probe triggers with offset of +1.004 [this is the thickness of my touch plate. You must adjust this for your plate / setup] )
(G10 L20 = Set Coordinate System // P - coordinate system 0-9 0 = Not active)
G10 L20 P1 Z1.004
( Rapid up to Z.5 above the material )
(G10 L20 P1)
(Use machine coordinates)
G90
G53 G0
(Incremental mode)
G91
(Rapid Z up 1 inches)
G0 Z1
o100 endsub
</pre>
You MUST change this above to match your touch-plate.
Add this line to your .ini file in the [HALUI] section. Note that in my case it is the 4th MDI_COMMAND in the HALUI section. You will need this number later.
[HALUI]
MDI_COMMAND=G28
MDI_COMMAND=M7
MDI_COMMAND=M9
MDI_COMMAND=o100 call
MDI_COMMAND=…
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=G10 L20 P1 X0
MDI_COMMAND=G10 L20 P1 Y0
MDI_COMMAND=G10 L20 P1 Z0
MDI_COMMAND=G0 X0
MDI_COMMAND=G0 Y0
MDI_COMMAND=G0 Z0
Add this line in the .hal file. This connects the pin on BOB (a Mesa 7i76 in my case) to the o100 routine. Change the hm2_5i25.0.7i76.0.0.input-06 to the hal pin that represents the physical pin that you connected the button to on the touch-plate.
net run-touch-btn <= hm2_5i25.0.7i76.0.0.input-06 => halui.mdi-command-04
Add these lines to the hal file. These lines take care of detecting when the tool touches the plate.
#limits debounce to stop false triggers
loadrt debounce cfg=1 #change to the number you want
setp debounce.0.delay 100 #this sets the delay 100 iterations of the servo-thread
addf debounce.0 servo-thread
net deb-probe-in debounce.0.0.in <= hm2_5i25.0.7i76.0.0.input-05-not
net probe-in debounce.0.0.out
net probe-in => motion.probe-input
#Change hm2_5i25.0.7i76.0.0.input-05-not to be the pin that you connected the touch-plate surface to. Note the "-not" at the end. This inverts the logic.
This is a useful link when working in the hal file.
Manual
I hope this helps and if I misspoke with incorrect info that someone chimes in. I've only been at this just under year.
John
To use it you set it on the material then bring the tool within a 1/4 inch of the plate. Then connect the alligator clip to the tool. This ensures a good ground connection. Then press the button on the probe. That signal causes the probe routine to be executed. The probe routine will move the tool very slow down until contact with the plate is made or the probe distance is exceeded. If the plate is contacted the current Z position minus the height of the touch-pate is stored and represents where the top of the material is. The Z will rapid up the specified distance. One inch in my case. If the probe distance is exceeded without making contact the probe motion with stop and an error will appear on the screen
To set this up do the follow or some variation of it. I got this info from somewhere on this site so I am not the original author.
Put the following lines in a file named 100.ngc and place the file in your nc_files folder.
<pre>
o100 sub
G20
( Set current Z position to 0 so that we will always be moving down )
G10 L20 P0 Z0
( Probe to Z-.5 at F2 [Uses machine units, I work in inch, this is meant to be slow!] )
G38.2 Z-.25 f2
( Set Z0 at point where probe triggers with offset of +1.004 [this is the thickness of my touch plate. You must adjust this for your plate / setup] )
(G10 L20 = Set Coordinate System // P - coordinate system 0-9 0 = Not active)
G10 L20 P1 Z1.004
( Rapid up to Z.5 above the material )
(G10 L20 P1)
(Use machine coordinates)
G90
G53 G0
(Incremental mode)
G91
(Rapid Z up 1 inches)
G0 Z1
o100 endsub
</pre>
You MUST change this above to match your touch-plate.
Add this line to your .ini file in the [HALUI] section. Note that in my case it is the 4th MDI_COMMAND in the HALUI section. You will need this number later.
[HALUI]
MDI_COMMAND=G28
MDI_COMMAND=M7
MDI_COMMAND=M9
MDI_COMMAND=o100 call
MDI_COMMAND=…
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=...
MDI_COMMAND=G10 L20 P1 X0
MDI_COMMAND=G10 L20 P1 Y0
MDI_COMMAND=G10 L20 P1 Z0
MDI_COMMAND=G0 X0
MDI_COMMAND=G0 Y0
MDI_COMMAND=G0 Z0
Add this line in the .hal file. This connects the pin on BOB (a Mesa 7i76 in my case) to the o100 routine. Change the hm2_5i25.0.7i76.0.0.input-06 to the hal pin that represents the physical pin that you connected the button to on the touch-plate.
net run-touch-btn <= hm2_5i25.0.7i76.0.0.input-06 => halui.mdi-command-04
Add these lines to the hal file. These lines take care of detecting when the tool touches the plate.
#limits debounce to stop false triggers
loadrt debounce cfg=1 #change to the number you want
setp debounce.0.delay 100 #this sets the delay 100 iterations of the servo-thread
addf debounce.0 servo-thread
net deb-probe-in debounce.0.0.in <= hm2_5i25.0.7i76.0.0.input-05-not
net probe-in debounce.0.0.out
net probe-in => motion.probe-input
#Change hm2_5i25.0.7i76.0.0.input-05-not to be the pin that you connected the touch-plate surface to. Note the "-not" at the end. This inverts the logic.
This is a useful link when working in the hal file.
Manual
I hope this helps and if I misspoke with incorrect info that someone chimes in. I've only been at this just under year.
John
The following user(s) said Thank You: uptown47, Project_Hopeless
Please Log in or Create an account to join the conversation.
- uptown47
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
07 Dec 2018 15:23 #122006
by uptown47
Replied by uptown47 on topic How do people "home" or "touch off" Z axis consistently?
John, a massive thanks for putting all that info together for me. I'll look further into this as it looks ideal for me. I'm on my holiday at the moment but will certainly have a play around with things when I get back.
Thanks again for all that.
Cheers
John
Thanks again for all that.
Cheers
John
Please Log in or Create an account to join the conversation.
Time to create page: 0.102 seconds