# Macro to help with G2 Focus Finder

**URL:** <https://forum.sienci.com/t/macro-to-help-with-g2-focus-finder/10405>\
**Category:** 🔥 Laser\
**Created:** [November 26, 2023, 6:55am UTC](https://forum.sienci.com/t/macro-to-help-with-g2-focus-finder/10405 "2023-11-26T06:55:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NCNC](https://forum.sienci.com/user_avatar/forum.sienci.com/ncnc/32/6040_2.png) [@NCNC](https://forum.sienci.com/u/NCNC)\
**Post date:** [November 26, 2023, 6:55am UTC](https://forum.sienci.com/t/macro-to-help-with-g2-focus-finder/10405/1 "2023-11-26T06:55:59Z")

</div>

Doing the laser focus steps get old pretty soon, I was at times forgetting to zero all coordinates after finding the focus distance and also I was not being constant in finding the middle spot between the long and short sides of the G2 Focus finder, so I created this macro where all I need to do, is set the laser to the long height of my G2 Focus finder (usual first step) and then just run this macro:

It will lower itself by 2.5mm (the approximate distance between the long and short distances/focus-range of the G2 focus finder tool), and zero all coordinates after that.

G91 (INCREMENTAL MODE)  
G21 ( mm MODE )  
F245 ( SPEED FOR G01: 245 mm/min)

G01 Z-2.5 ( MOVE 2.5 mm DOWN)  
G92 X0 Y0 Z0 ( RESET X, Y, Z COORDINATES TO ZERO)
