Macros for Multiple Zero Locations

Hopefully this might be helpful for storing multiple Zero locations and it may have been covered elsewhere. I created the first user macro by finding the lower left corner of my (secondary) spoilboard using the BitZero v2 tool. Then created a macro with the following G-Code:

G10L2P1X818.088Y419.150Z-14.350
G53G0Z-0.197
G0X0Y0

You can substitute the X and Y values that you want…
The Z axis zero value should be reset appropriately for the material used.

The first line sets the zero coordinates.
The second line raises the spindle to a safe location.
The third line moves the spindle to the new X and Y zero location.

It seems to work fine on my Shapeoko Pro.

I created a second macro that does the same thing except it zeros and moves to the center of my spoilboard:

G10L2P1X432.100Y215.325Z-79.825
G53G0Z-0.197
G0X0Y0

Any suggestions/improvements welcomed!

2 Likes

Just for safety, I would add a unit selector as the first line - G21 for mm, G20 for inches.

Also should have a G90 to force absolute position mode.

G21 G90

2 Likes

Where are the XY coordinates measured from? I thought G10 L2 measures from the homing position / machine zero. Why are they not negative numbers? Is this currently working?

Would you insert a line at the top or prepend the G21 G90 to the existing first line?

Tod, I don’t know why the XY values are not negative. It does work as is.

1 Like

I don’t think it matters. I would put it on it’s own line, so it doesn’t clutter the next one.

This topic was automatically closed after 30 days. New replies are no longer allowed.