Safer Probing Macros

More
6 years 3 days ago #187716 by lllars
Safer Probing Macros was created by lllars
This is a set of modified macros to use with basic_probe that aims to reduce the chances of crashing your probe.

The stock probe routines generally have some G0 and G1 setup moves before, between, and after the actual G38 probe moves. Currently, if your probe makes contact during the G0 or G1 moves, the machine does not stop, and there is a good chance it will break the probe. I found a couple bug reports that would solve this, but they haven't had any action since 2017 (see 371 and 368 ).

As a workaround, I modified the default probe macros, replacing "G0" and "G1" with G38.3 wherever possible. An individual G38.3 move will stop the machine when the probe makes contact. The routine will then continue with the next move. If the next move is another G38.3 or a G38.2 (as is typical), then the probe routine will be aborted with an error like "probe already tripped at beginning of G38 move."

To use these macros, unzip and then move the macros folder into <your_home_directory>/linuxcnc/nc_files/probe/probe_basic/
The following user(s) said Thank You: JohnnyCNC

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

More
6 years 1 day ago #187980 by cmorley
Replied by cmorley on topic Safer Probing Macros
IIRC (should test) if the probe trips while in G1 moves, linuxcnc will error.
So if you change the G0 to G1 (with hi feed rate) then it will be safer too.
I think it would be nicer if you could use an M code to turn 'error on trip while not probing' on and off...

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

More
6 years 13 hours ago #188011 by MaHa
Replied by MaHa on topic Safer Probing Macros
Wondering if i missed something, i tested on my machine. In MDI F5 mode, feed and rapid moves get aborted when the probe is triped, and an error is displayed. Same behaviour on manual F3 mode and keyboard jogging.
But running a .ngc file, the machine happily continues movement when probe is triped outside of a G38.n

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

More
5 years 11 months ago #188134 by lllars
Replied by lllars on topic Safer Probing Macros
@cmorely, I did test that before modifying the macros, and neither G0 or G1 error out when the probe trips (when called from a g-code file). They do error in MDI and MAN modes as MaHa points out. An M-code such as you mention would be the ideal solution. As far as I know, such an M-code does not exist yet, thus this workaround for the meantime.

@MaHa, I observed the same behavior as you, so I don't think you are missing anything. That is the reason I replaced G0 and G1's with G38's in the macros.

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

More
5 years 11 months ago #188182 by cmorley
Replied by cmorley on topic Safer Probing Macros
Ahh i see - yes i tested with a MDI based test.
I'd add a feature request or bug fix entry on github for this.

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

More
5 years 11 months ago #188234 by lllars
Replied by lllars on topic Safer Probing Macros
Thanks Chris. Note that there are already a couple relevant github issues. See the links in my original post.

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

Moderators: cmorley
Time to create page: 0.222 seconds
Powered by Kunena Forum