in my case the laser is insalled in the place of the engraving motor.
so when it moves up, the beam focus changes
in my case the laser is insalled in the place of the engraving motor.
Are you using “Relative Z Moves only” in Device Settings? If so, perhaps disable it. Then use Material Height and Z offset to set the focal distance.
Not certain but I think that should allow you to have the machine focus for you.