Live Z offset gcode command

I am using my A350 with octoprint so I can’t use the live Z offset on the touchscreen. I tried using the standard marlin gcode M290, but the printer does not recognise the command. I also checked the Snapmaker wiki, and I did not find any gcode for live Z offset adjustment.
I even tried enabling M111 S1 to get the printer to echo any command that is sent to it, and when I use the touchscreens’ live Z offset, it does not echo any command; it just says it changed Z offset.

Does anyone know if there is a gcode command to adjust the Z offset, or any way to adjust the Z offset through Octoprint?

1 Like

Are you looking to query the current Z offset, or move the head to a specific offset?

The Octo would know what the current Z offset is, if the machine is in absolute position mode (G90) but not relative (G91). In absolute, the current Z offset is the last G0 or G1 command that included a Z arguement. ie, G0 F4800 X5.6 Y119.4 Z0.04 is at Z offset 0.04mm.

If you want to move the head to a specific Z offset, just add a G0 Z# command to the GCode, or issue it manually over a serial console.

1 Like

https://snapmaker.formcrafts.com/support-ticket

You can submit a ticket at the same time in case the technical staff or fellow users in the forum don’t respond promptly.

I asked Snapmaker support, and they said there is no Gcode command for live z offset, so the z offset can only be changed on the touchscreen