Gcode being produced negative

When exporting gcode to run on a linuxcnc controlled diode laser it positions the work “negative”. The machine is set with origin front left, as are the test rectangles. When the code is generated the bounding box coordinates at the top of the file are correct (positive), but the actual cut moves are all negative. This place the work upside down and to the left of the origin (completely off the work surface. Have tried all sorts of origin and start from combinations to no avail. x-y reverse is not set.
Lightburn Pro 2.2.01, Windows 11. Custom machine using Linuxcnc gcode. All other aspects of the code are fine and will run on the machine fine if you play games with the start point, but you should not have to do it.
Looking at the gcode and running on a separate simulation computer both confirm the problem.
The machine is set up front left origin with +x and +y from there.
I don’t recall having this issue in the past but not sure which version of Lightburn it worked OK on as there have been a number of updates since I last used this particular laser with it. My other laser, Ruida controller, works fine.

Any insight appreciated. Thanks, Stephen
Test 2.gcode (623 Bytes)

Test 2.lbrn2 (2.9 KB)

Assuming you’ve set up a separate Device for the CNC machine to handle all the differences from the absolutely non-CNC Ruida.

For that Device, is CNC machine enabled?

Does the Device Origin match the CNC machine home position?

Yes, I actually have three separate machines set up in LightBurn. The one in question does have CNC machine enabled. The device origin is set at the lower left position (or front left depending on your terminology) which matches the machine.

After a further read in the reference you sent I turned the CNC Machine selection off, and just like that - everything works as expected. I did not realize that setting overrode all of the other origin settings.

Thanks so much for your quick response and pointing me in the right direction. Things work so much nicer when you don’t have to do workarounds.

Looking forward to trying MillMage next for my CNC as I am finding LightBurn to be excellent.

Stephen