Laser Focus Script

Did someone make a GRBL version of this code?
okok, 18 to 26 mm 600 mm/s 70% (mine was spot on @ 21mm)

grbl-focus.gcode (497 Bytes)

M3 inline 2mm Z steps test file

You can use this and replace the “Z2” with a smaller number to really try to dial in your focus.
G1 X50 F750 S255
G0 Y1 F6000
G0 Z2 F2000
G0 X-40 F6000

2mm focus.gcode (933 Bytes)

Is this linked in the docs?

Not yet. Still messing with it. Not sure if inline is the best option yet. Each one seems to have trade offs.