Atomstack A24 Pro autofocus macro doesnt work

HI.

Cant get the ESP500 working.
It doesnt do anything. Laserhead rises, lowers and does anything I just figure to ask ( and know how to) but ESP500 autofocusing doesnt do anything.

I can HZ it to home Z. I can lower it so it stops to probe hitting material, I can rise it and lower etc…
HZ rises to laser and touches 2 times top. Starting to be really desperate
What is wrong, what can I do.?

Screen shot of your macro setting.

Do you mean the Esp500 auto focus macro?:thinking:
I can provide screenshot but it’s [ESP500]

That’s the correct code. It should work if your machine has that capability. I was looking on line and i dont see where the A24 Pro has a Z axis drive. Am I wrong.

I upgraded A24 pro with atomstack L2.
So now there is z axis.

Controller board too? The autofocus is a controller function. Lightburn just sends the command to execute.

The. Why atomstack studio can do it.
I tried. Worked. Just don’t want to use atomstack studio. It sucks…

There must be gcodes to complete auto focus.

And manual with the L2 says nothing about controller upgrade.

If it works with Atomstack Studio then controller must be OK. I assume Z axis is enabled in Lightburn and you can manually jog Z axis up and down

I can move it manually from. Top to bottom and both ends stops to microswitch. I can home z it travels up and touches 2 times and it’s OK. And all manual controls is OK. Just auto focus doesn’t do anything.

Does the auto focus button on the controller work? Or is there not one.

Some more information:

Make sure Homing is turned on for the Z axis. They also recommend for Z axis “Relative Moves”.

Read everything below

To enable Z-axis autofocus in LightBurn, navigate to Edit > Device Settings, and under Z Control, ensure Enable Z axis is checked. This will allow the Z-axis to be controlled for auto-focusing.

Detailed Steps:

  1. 1. Open Device Settings:

In LightBurn, go to Edit > Device Settings.

  1. 2. Enable Z-axis:

In the Device Settings window, locate the Z Control section and check the box for Enable Z axis.

  1. 3. Configure Z-axis settings:

The Z Control section also offers options like Z Offset (mm), Z step per pass (mm), and Relative Z moves only. These settings can be adjusted based on your specific machine and needs.

  1. 4. Test Autofocus:

After enabling the Z-axis, you can use LightBurn’s built-in autofocus features, such as the focus test, or use a custom G-code for auto-focusing, as outlined in the forum discussions and documentation.

Important Considerations:

  • Homing:

Make sure Enable Homing is also turned on for the Z-axis, as auto-focusing often relies on the homing process to establish a reference point, as discussed on the LightBurn Software Forum.

  • Relative Z moves:

When working with auto-focus, it’s generally recommended to use Relative Z moves only in the Z Control settings.

  • Calibration:

For accurate auto-focusing, it’s crucial to calibrate your Z-axis and lens properly, as described in the LightBurn documentation and the forum.

  • Controller settings:

If you open the console then try the Autofocus do you get any messages in the console

Not now on the computer but I tried it earlier.

It says something like:
Stream started
Stream completed 00:00

I guess im out of ideas. The only other thing i can think of is look at the machine settings and see if there is anything there that may not be enabled.

I tried to look and as far as I know there is nothing what could be enabled. But I can’t be sure.

I think it would work if there just was some gcode lines to do the same as esp500..?? Maybe.?

Now o do it manually dropping it down to “alarm stop” and raising 4mm or 8mm with macro…

But can’t put them to same macro because lower stop causes alarm.
Some command should be put there to not make it’s stop fully from bottom switch…:grimacing:

One last idea… Contact Atomstack to see if they will tell you what will work with your controller. Although the Studio works, it may be doing it with discrete commands rather than the ESP500 macro. Your controller board may not actually support this macro command like the L2 controller board does.

I was secretly hoping that someone here has that or done that allready.

But what I’m asking from atomstack is to giveaway their softwares “secret ingredients” :joy:

Also… Sir, just use our software…

No I won’t. It sucks… :face_with_peeking_eye:

Maybe try laserGrbl and see if it works there. If it does maybe there’s some way to see what code is sent to make the autofocus work.

That I was hoping someone would tell how…
Thata one point to come here asking these things :ok_hand::ok_hand: