When I click the home button in OpenBuilds Control it works great and moves to the vertical top and closest left point on the machine. It previously would also set my x,y,z to 0 on the screen but hasn’t done that since a lot of versions ago. What I want to achieve is via GCode in my file, is there a command to return to the machine’s homed location?
Review the GRBL documentation. There is the Work Coordinates and Machine Coordinates, what you seem to be asking is for the Machine Coordinate 0's. If so, I found this here G Code Introduction | MillRight CNC, LLC (this may or may not be up to date) Code: G0 G21 G90 G54 X-100 Y-100 G53 X-100 Y-100 G0 X-100 Y-100
We include the GCODEs we use on the menu item as a bit of learning assistance Option 1: Returns to where you last did a SETZERO Option 2: Pulls Z up and out of the way to G53's Z-5 (Z0 would hit the switch, so we stop just 5mm short of that to prevent an alarm) and then brings XY where-ever you had last done a SETZERO, and then drops Z down to where you had last SETZEROd Z. Option 3: Returns you to where you homed - provided your Grbl settings are correct. That was a bug, you cannot return to Machine Zero because that will hit the switches, you have to stop just short of them to prevent an alarm. Thus the G53 G0 Z-5 and then G53 G0 X-5 Y-5 - note to send it on two seperate lines, you want to get Z up and away before attempting any XY moves to prevent crashes G53 in front of the command, tells it to move in Machine Coordinates
Hard coded, no complaints in the last couple years. You move to just before the switch trigger point, you don't trigger the switch. Pull off is there to "clear the switch" ie after a hit. If you never hit it, you should never need to clear out of it.
Maybe a nice to have feature request to squeeze out those last few mm of travel. Depending on the switch type, might be able to use a smaller pull off. But otherwise I was not complaining, was just curious.