"CNC Machine" Does not seem to work / coordinates reversed

Howdy–I added a laser to my FluidNC-based CNC with homing switches in the right rear corner, such that the entire workspace is negative: the front left corner is -900, -900.

In gSender this has worked fine for years, and I believed I could get the same behavior in Lightburn by setting origin to “right rear” and enabling “CNC Machine”. However, as can be seen in the images below, Lightburn treats the upper right as the origin and both axes as positive in the workspace. Changing “CNC Machine” or “Machine Coordinates” or using “Current Location” to start appears to have no effect: the machine always errors out when attempting to run any job, and the move arrow directions are reversed. Is there anything I can do to fix this?


I have tried this on both Mac and Windows and tried restarting the app after changing each setting, to no effect.

I have worked around this by setting “positive_direction: false” under homing for the X and Y axes, and inverting (“:low”) the direction pin for each motor on these axes.

This makes the machine’s coordinate system match what Lightburn thinks it is, but is less than ideal as a solution because it means I have to run different configs for my laser and CNC spindle, which means I have to re-probe to process with one and then the other.

Welcome Kelly!

From the FluidNC Wiki:
positive_direction determines which direction the axis moves to reach the switch

This, and the direction pin in the Fluid config should not need to be changed.

I’d advise reverting those changes so that it works with gSender again, and please send us the console output of these commands:
$H
$#
?

This will home the machine and query the position, as well as eventual offsets.

In fact, let’s try @NicholasL ‘s new tool for gathering the information!
This will also dump the machine config for investigation.

To run, first close any existing connection to the machine then follow the link below using a Chrome or Edge browser:

Then, use the ‘Discourse Copy’ button to copy and paste the connection log back here.

1 Like