Software 'Homing' on Marlin

Is it possible to jog and then set the home (0, 0, 0) position (on Marlin firmware) without having to power-cycle the board?

Yes.

G92 X0 Y0 Z0

Since you’re using either an LCD/SD or a computer with a gcode sender, you have a way of either sending the raw gcode, or one of the default LCD menu items is a zero function.

https://docs.v1engineering.com/tools/milling-basics/

3 Likes

I don’t know if Ryan’s newest version includes the patches, but Marlin 2.x also includes workspace coordinates as well… :wink:

1 Like

This did not seem to work.

Here is the first few lines of my GCODE. Do I need to delete or modify the G90 code in addition to adding the G92? I figured it needed to be prior to the engraving portion.

;Created by Estlcam version 11 build 11.118
;Machining time about 00:02:17 hours

G90
M03 S24000
G00 X0.0000 Y0.0000 Z0.0000 F2100
G00 Z5.0000 F480

G92 X0 Y0 Z0
;No. 1: Engraving 9
G00 X24.5519 Y20.1842 F2100
G00 Z0.5000 F480
G01 Z-1.0000 F180 S24000
G01 X24.6746 Y20.0043 F900
G01 X24.8085 Y19.8325
G01 X24.9529 Y19.6696

If you want to put the G92 into your gcode, it should be before the first G00 command…
Note that this assumes you have already (manually or via jogging) moved the head to (0,0) - AND have adjusted your endmill tip to the top of your workpiece.

What you have there now is first moving back to (0,0,0) then to (0,0,5) (up 5 in Z), then the G92 is saying treat that location as (0,0,0).

Instead of adding the G92 to your gcode work file - I would instead suggest you use either the LCD or your PC software (repetier, etc) to issue the G92 command. If you have an LCD hooked up there is an entry in the “Custom Commands” menu called something like “Reset all Coordinates” which (in effect) issues the G92 command. If you don’t have an LCD hooked up, but are using something like Repetier on a connected PC - you can type the G92 X0 Y0 Z0 into the gui (on the manual control tab) and send that to the machine. So, the workflow would be:

  • Adjust X-Y position of your router to the origin on your workpiece
  • Adjust the Z height so the tip of the cutter is just at the top of your workpiece
  • Then issue the G92 command
  • Finally, kick off your gcode file (without a G92 added to it)

Good luck.

2 Likes

Thanks! I have an older version of the Marlin firmware, so I think I’ll need to update that to issue the Reset All Coordinates command.