Macros Files for BB | Official Thread

I worked on this g-code last year sometime to easily find the middle of a workpiece by going to opposite corners and running the code. Now that MACROs exist, i’m excited I can assign it to a macro button called “Go to Midpoint”.

The g-code I figured out is

M70	; Save modal states
G54 G91 G0 X[#5420/-2] Y[#5421/-2] ; go to half the distance between current location and origin
M72	; Restore modal states

I’m not an expert, so by all means let me know if this can be improved!

I made a not-very concise video demo…

I’m also hoping I can figure out similar code to find the center of a circle based on three points on it.

6 Likes