Flipped image when cutting

When I import an image to be cut the image itself is correct on panel but when machine goes to cut the image it is flipped on wood.

You probably imported from a machine with a different coordinate system/home position. This should be easy to correct.

In your Device Settings in LightBurn, the ‘Origin’ setting controls the orientation of what gets sent to your laser. For example, if you have the origin for the device set incorrectly, your output will be mirrored or upside down when run.

We have a guide on how to change your origin in our documentation here: Wrong Orientation - LightBurn User Guide

I am having the exact same issue but the only thing that has changed was updating LB to the newest RC. My origin is still set to the front left corner and I an using User Origin left front corner on the main screen. Under device settings it shows I have the front left corner as well.

I am only using LB to generate the gcode then using Centroid CNC12 to run my CNC with a laser. I have not changed CNC12.

When I use the same DXF file and create the gcode in Vectric and open it in CNC12 orientation is correct.

Something changed in LightBurn Pro 2.2.00-RC-2 @ 79be2e4 Qt6.11.2



Oh and my Post Processor settings have not changed either but here is the stuff that is in the beginning of my cut file.

;LightBurn Pro 2.2.00-RC-2 @ 79be2e4 Qt6.11.2
;Custom GCode device profile, user origin
;Bounds: X-0.177 Y-0.177 to X77.45 Y213.249
G00 G17 G40
G21;Restore metric mode
G54

G90;Restore absolute mode
G0 X0 Y0
G91;Restore relative mode
M3

;USER START SCRIPT
;Generated for CNC12

G64 OFF ;This will turn off exact stop mode. It will leave smoothing alone. Add ON or OFF if you want to set smoothing
G21 ; select Metric units
G90 ; absolute positioning
G0 X0 Y0 ; rapid to X0Y0
Z0 ; Move to Z zero
G37 ON ; PWM Velocity Modulation ON (varies Laser power based on machine velocity)
M3S0 ; Laser power off
M37 ; Laser on

;go to work start position
G0 X0Y0
G0 Z0

;USER START SCRIPT
;Offset @ 649.998 mm/min, 100% power

G91;Restore relative mode

G0 X-16.032 Y-14.191
G0 Z-1

Interesting, it looks mirrored in both X and Y. Or rotatated from Quadrant #1 to Quadrant #3.

Try it on your own machine. Set your origin to front right and see how it’s flipped or to something else.

If I remember correctly, crossing the X axes it mirrors it vertically and the Y axes it’s mirrored horizontally.

You have four options for the software origin in the Device settings. This is a collage of 4 screenshots. Each one has a green square, that tells you the selected origin, original at front/left. I have my screen setup for a center cross.

:grinning_cat:

What is really strange is the cut area stays at the left front corner where I have homed and set my 0,0,0 but almost centered on the left side of the project because the Y travel is split half above my 0,0 and half below so I get an error that the Y area will be outside of my machine area.

It is also weird is that the preview in LB shows it running the way it should.

I needed to get this done so I re-did it all in Vectric and cut it just fine.

Clueless here about how that works…

It’s not weird, considering Lightburn is configured one way the machine another. That’s what makes this occur. Generally speaking, it’s usually the software and hardware origins are not the same.

Most machines won’t let you pick it’s home location, that’s usually defined by the machine, so the software needs to know that. Some grbl types can have offsets applied, but it still homes into the same corner. The only reason you home it, is to set 0, 0 and tell the controller which quadrant it’s operating within.

Nevertheless, I’m glad you’re up and running.

:grinning_cat:

I wasn’t exactly up and running. I had to use a completely different program.

I also posted this in Centroid’s forum and someone had the fix.

“Go in to device settings and turn off the “CNC Machine” toggle. It will probably be turned on and green.”

And that one little toggle was the problem. I didn’t change it. LB changed it in an update. Once I toggled it off everything worked correctly.

Hopefully @Aaron.F can forward this to dev group, if there’s an bug found. I don’t run 2.1, so I don’t know, but they generally don’t like an update changing these things.

My Ruida only works with positive integers…

Hang in there, thanks for letting us know.

:grinning_cat:

Yes, the “CNC Machine” toggle should only be enabled “if you use a CNC machine with a rear-right origin, and negative workspace coordinates”.

@Onawa220 do you remember which version of LightBurn you upgraded from?
It’s not impossible that this option activated itself automatically when the feature was introduced. I’d like to look into that.

I don’t think I ever saw it “not enabled”. However, seeing it reminds me that it is an option for some users.

This became a problem upgrading to 2.1.04. I don’t believe I had this problem with 2.0.05. Don’t have any granularity between those releases.

Are you saying the “CNC Machine” toggle turned itself on after upgrading from 2.0.05 to 2.1.04?

I ran a quick test, and couldn’t make that happen so far.

That’s what I THOUGHT had happened. But I went and installed 2.0.05 on a clean machine and then upgraded to 2.1.04. I checked that setting after each update and the toggle remained off. So I’m not sure if there is some specific instance that makes the toggle go on (@Onawa220 and I are both using a custom G-Code device for output) or if it’s just a very simple user error to see a setting marked “CNC Machine” and turn it on. If the latter, I don’t know how this user (Me) didn’t switch 'CNC Machine" on in the years I’ve used it before.

In either case, having that toggle ON makes all the G-Code negative, but there isn’t a good way to see that’s happened until the G-Code is exported and viewed in a ‘neutral’ G-Code viewer. The user origins in Lightburn continue to show "front left’ as origin and the first move in Lightburn Preview mode moves from front left to the center of the screen. It does not move from ‘right-rear’ in Preview. You only see it in G-Code

I looked to see if I still had the download of the last RC I installed but I don’t. It would have been a couple of months back.

After reading the comments after finding the toggle was the issue, I’m very confused. My Machine’s origin is the front left corner. So I don’t understand how that toggle made it work correctly. Do most lasers controlled by LB have a right rear origin?

Yep, It must have toggled itself off from one update to the other. Every time I’ve updated to the newest RC I have never gone into the settings and checked or changed anything because everything has worked fine until now.