Problem while autofocusing in lightburn

Howdy folks,
I’ve recently set up an Atomstack A12 pro and repleced the stock head mount with the Atomstack L2 one, which provides autofocus functionality to the machine. I’ve set up a macro on lightburn with the command [ESP500] to focus at the right distance, but everytime I use that command, after the Z axis regolation the machine moves the head to the home position.
Why is that happening?
Is it possible to avoid it?

Thanks

Claudio

Congrats Claudio and welcome, glad you found Lightburn and this forum.

Read the following documene:

Post back if you have more issues.