G38.x and acceleration (not stopping)
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.
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
Please Log in or Create an account to join the conversation.
Yes, exactly what I want 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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You could set the switch on top of your workpiece and probe with the drill. Down at med speed, back up then slow probe down. (the switch has some overt travel to protect the drill)
The point that the switch triggers would then be .5" above the work. So you have found the top of the work without gouging the work piece.
Rick G
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I ask because in "my cnc world" (3d printing) we use M201 (max acceleration during "work move"), M202 (max acceleration during "idle move"), M204 (default acceleration), GRBL also support "$120, $121, $122" for setting acceleration, never used it so not sure how that works and is is run-time or only configuration..
Please Log in or Create an account to join the conversation.
btw just to confirm, me not finding a way to "override" acceleration for axis is correct, there's no way to do it with linuxcnc?
It has come up before, but i know of no easy solution. I believe the best bet is to set up the machine for the best reliable acceleration and control the probe speed with the F command. The reason for a fast probe then a slow probe is to reduce the time of the probe if it has a long distance to go. If you get the probe close 1st then a slow probe which will stop faster than a fast probe is fine.
Rick G
Please Log in or Create an account to join the conversation.