EDIT: I think i got it replicated.
Will update asap

I seem unable to replicate it my side

Could i ask

Starting from current position, after burning the final position is now offset from starting position X+16, Y-16. Please click Save Gcode → Save as XY.gcode

Disabling “Swap X/Y output to laser” solves the problem… but I would appreciate to activate this option Please click Save Gcode → Save as NoXY.gcode

@gilaraujo Thank you for your very fast response !
There is progress… but sadly it is not totaly fixed.

This is quite interesting : the fix works for circles but not for squares or rectangles ; it works for some triangles but not all (!) : it looks like it depends upon the rotation angle of the triangle.
Let’s simplify

Laser offset is enabled : X = 0, Y = -16mm

Burning from Current position, Job position = Top Left, Cut selected graphic = On, Use Selection Origin = On, Optimize Cut Path = On

In Lightburn create a triangle : “Create regular polygon” , shape properties = 3 sides. This is our initial triangle.

Burning this initial triangle, finish position is now offset from start position : X+22mm

Now, rotating this triangle with different values, we have this results :
** Rotation of initial triangle to 60° : finish position is now equal to start position
** Rotation of initial triangle to 30° : finish position is offset from start position : X+22mm
** AND Rotation of initial triangle to 15° : finish position is offset from start position : X-22mm (yes, the opposite side)

Please note however that the framing is always correct and finishes in start position.

EDIT : this forum don’t authorize me to send more than two files at once.

Good evening @gilaraujo
I try to figure out what’s going wrong and this is not easy…
I have found that there are problems with two parameters :

When Optimize Cut Pass is ON, AND Optimization Settings > Choose Best Starting Point is ON, sometimes the finish point is not the starting point

There is another problem with Job Origin : starting with Current position, changing Job origin from Top Left to Bottom Right give different finish points

I’m not familiar with Gcode, but typing this code in the Console should move the pointer and revert it to it’s start position, isn’t it ?
G91 G0 Y0X-16 G0 Y0X16

But for me it is not the case, finish position is offset from start position to Y+22mm

For my pointer to go back to start position, I have to type this code :
G91 G0 Y0X-16 G0 Y0X+16

XTool doesn’t actually use real GRBL firmware - they’ve hacked in a “GRBL compatibility” mode that doesn’t return normal results for settings or GCode state.

Have you tried the current public beta version (1.6.02) ?

Hi.
Thank you for your response.
Sorry for the delay.
Thank you for the link to the 1.6.02 beta version. I have tried it and the problem is still there.
I have done countless tests to find what is wrong, and this is what I have found :

If I do not swap X/Y I have no problems

If I swap, sometimes it’s ok and sometimes not… this is irritating !

Now, simplifiyng the process, I have looked at the gcode and I’ve found that if I modify slightly the code generated by LightBurn, the problem is solved.

Example, this is the original gcode from LightBurn :

That does not make any sense at all. The + should not be required because “15” is already a positive value. I wonder if the firmware is getting confused by the Y-0 (ie, the negative sign in front of the zero).

What happens if you remove the - sign in front of the zero, so it looks like this?