G38.x and acceleration (not stopping)

More
10 years 5 months ago #75238 by arhi
linuxcnc.org/docs/2.6/html/gcode/gcode.html#sec:G38-probe

I wanted to use G38 to touch the top of the pcb (copper surface) with a drill while just connecting drill and pcb as ends of the probe but when I tried it out (of course without a drill, manually connecting ends of the probe wires) I see that when probe "connects" linuxcnc initiate the stop but the acceleration/deceleration settings prevent the head to "stop" but it moves further until it decelerate to a standstil. No idea how to solve this, however "slow" I setup the feed it still moves "past the probe point". .. my Z acceleration is rather low (1mm/s/s) and I'd like to keep it that way but I'd like linuxcnc to stop "immediately" when probe touches... any way to do it?

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

More
10 years 5 months ago - 10 years 5 months ago #75241 by Rick G
Replied by Rick G on topic G38.x and acceleration (not stopping)
linuxcnc.org/docs/2.4/html/gcode_main.ht...38.2:-Straight-Probe

The move stops (within machine acceleration limits) when the programmed point is reached, or when the requested change in the probe input takes place.


It seems you are asking linuxcnc to stop faster than the physical limits of the machine. A slow probe speed should help and you could possibly probe, stop, pause, reverse and use the point where contact is lost to set the height.

Rick G
Last edit: 10 years 5 months ago by Rick G.
The following user(s) said Thank You: arhi

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

More
10 years 5 months ago #75244 by arhi
Replied by arhi on topic G38.x and acceleration (not stopping)
Hi,
Yes, exactly what I want :D to stop "faster then set limit" ... is that possible?
If not, any idea how to calculate "stopping length"? So if I have Fx (feed rate of x mm/min), max acceleration of Y mm/sec/sec, what will be the stopping distance?
Will the simple
S = 1/2 a*t*t where t = F/a
(10mm/sec) / (1mm/sec/sec) = 10sec
0.5*1mm/sec/sec*100sec*sec = 50mm
work?
If so I might be able to get a speed that's slow enough but still .. it will always go past the mark, for XY this is ok as I can always design the touch probe to have some space to follow trough, I will lose some mm's on the travel but I will be able to make precision positioning, but for Z I can't do this, I want to touch the copper plate with the drill, it's 0.25mm drill bit, if I plunge it into copper it will break so I need to stop "immediately" ... any ideas how to solve this? if I set acceleration to super high value and set feed to a slow value this works it stops immediately but I can't have machine then work that slow nor have acceleration that high (stopping is not a problem, starting is) so either is there a way to make starting and stopping acceleration value different or is there a way to override acceleration settings for the axes from g-code? then I can set acceleration to infinite, feed to slow, touch off with G38 and then restore original acceleration settings?

Thanks!!

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

More
10 years 5 months ago #75245 by arhi
Replied by arhi on topic G38.x and acceleration (not stopping)
thing is I have a puny machine, simple ER11 chuck, so I need to rehome the Z every time I change a tool, and what I want to do with it is often drilling pcb's ... now for drilling I can even bring the drill to hover above the copper and that's good enough, I still drill more then 1mm deeper then I need to so that's ok, problem is with milling pcb's there I really need to touch it, doing it manually is possible (attm I use a simple buzzer) but would be cool to automate it :D

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

More
10 years 5 months ago #75251 by Rick G

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

More
10 years 5 months ago #75253 by arhi
Replied by arhi on topic G38.x and acceleration (not stopping)
Thanks, this shows me how to deal with different length drill bits, great, as for the probe, he plunges his tool into the button quickly and then retracts and go slowly .. if I plunge into anything 0.25mm drill bit will disintegrate :D ... it does give me an idea.. is there a way to have 2 different probes in the same time? I see only one assignment for the "probe-in" - is there a way to have 2 probes? so I go down fast till I hit probe1 and then stop and go further more crawling till I hit probe2 ? ...

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

Time to create page: 1.818 seconds
Powered by Kunena Forum