bCNC icon indicating copy to clipboard operation
bCNC copied to clipboard

Z-probe - G92 setting isn't persistent

Open mj8w opened this issue 3 years ago • 3 comments

I have created a new button "Z-Probe". I want it to touch the tool off to a 15mm thick contact.

It has this g-code:

G38.2 Z-25 F10; G92 Z15; G90 G0 Z25.0

This appears to work correctly, in that I can run a job with it.

But if I have a follow-on job with the same tool, it loses the z-height. This means that the second job always removes more material than it was supposed to.

I see that when I run the Z-Probe menu item, it sets some settings in the list of workspaces. I'm not sure what it is actually doing in the gcode it produces, or how to duplicate it in my script.

Probing via the menu is harder, I have to change menus and then press the "Probe" button, and then set the z-height manually to 15, and then raise the tool afterward. I was really hoping it would be easy to use the G38.2 command from the script.

mj8w avatar Jan 18 '22 03:01 mj8w

G92 isnt persistent

MARIOBASZ avatar Jan 18 '22 07:01 MARIOBASZ

Is there a way to achieve what I am trying to do? Maybe I should look at what happens when I manually set the Z height? I will look, but if someone knows where that code is, I would appreciate it.

mj8w avatar Jan 18 '22 15:01 mj8w

bCNC variables are persistent for as long as bCNC is running. You could store your Z-probe value in a variable and then have a button to re-set G92 manually after each job.

Unfortunately, user buttons are also broken currently (see #1674) but a fix for that is in the works

jsiddall avatar Feb 23 '22 15:02 jsiddall