Rotary setup as A but orientation along the Y

Hi all

To start, I don’t have a laser machine but a 6040 CNC machine on which I’ll be adding a laser module.
I want to use Lightburn to generate the G-code.
I downloaded the trial version.
My rotary setup is along the Y axis, not the X.
If I select A in the rotary setup then the gcode uses X and A.
Any way to change the orientation of the rotary?

There is no option to switch cables around, or attach the the Y to the rotary. My machine is setup perfectly for milling, I’m not tinkering with that :slight_smile:

Thx.
Benny

Welcome to the forum, Benny.

If a plain GRBL device doesn´t work for you, maybe if you set a Custom GCode Device has the editable settings you need.
Here is the official doc on the subject:

You can’t turn it 90 degrees?

If the Custom GCode allows it we can set it in other ways…

No. It will clash with the gantry :blush:
Like I said, its setup perfectly fir milling.

Ill check it out.
Thx!

In device settings, you can also swap the axis (swap x/y output to laser). That might also solve your problem.

Hi

No that just assumes you connect your motor for the rotary to that axis. Not what I’m looking for.
I’m looking into the custom gcode thing but I don’ fully understand it yet.
My laser hasn’t arrived yet either so I can’t test it anyway, but the simplest method I found now is to rotate my drawing 90° and simply replace all the X with Y in the gcode file :smile:

That will give me time to test the laser, I’ll get into the custom gcode if I decide to buy Lightburn. :smile:

No. You said you wanted to have Y and A instead of X and A. That’s what you said in the beginning. Then this option will do that for you.
Custom gcode doesn’t let you swap the axis.

I will double check but I looked at the Gcode. If you select either X or Y then the program asumes your rotary is either X or Y and maps the rotary to that axis still using X and Y in the Gcode. I did not find any option to have Y and A in the gcode.

Correct. But that’s not what I was talking about. I meant you should select A as the rotary axis as desired. But you said, you wanted to use Y and A instead of X and A.
So, you can use this option:


Which will change the workspace orientation for you, which will actually change the x and y axis in the back.
I have to add that I don’t know how calculations in the backend are done, if X and Y are just flipped or if it does something different. If it just changes X and Y, this would replace your workflow of manually changing X to Y in the gcode.

Ow I see. I misunderstood.
I’ll take a look at it. Thx!

Drag this device into LightBurn workspace to add it atomatically.

6040__.lbzip (65.2 KB)

Test the rotary for a complete turn and back.

Put some round stock in your Rotary, like the inner of a kitchen paper roll and attach a pencil marker to your router head. Align the pencil tip with the center of the roll.

Test with this file:
6040.lbrn2 (18.5 KB)

If the output is like B all ok.
If it´s like A disable Mirror Output to Rotary.

Use Start From Current Position always
Design with Rotary Toggle in Off position


and Enable when sending (Start) the project to the CNC (laser).
Also check if your CNC has the Origin at back-right.
Maybe the CNC controller don´t have Laser Dynamic Mode and we have to change the Device to GRBL-M3.
As his the mark shoul start from near to far from the front of the machine.

If anything slips…

Be prepared to press The Big Red Button.

.
Ask if you need more help.

This does seem to work for the rotarty, but then X and Y are flipped without rotary :sweat_smile:
So I have to remember to flip the workspace if I’m working for rotary or not.
Anyway, I’ll play around with it a bit when the laser is on the machine.

Thx!

Thx for the effort but That wont work. My machine has 0 point left bottom. And as you mentioned my controller (UCCNC) does not have a laser function so I need to GRBL-M3 to rutn off the laser before every G0 rapid move.
I’ll repost if I can’t figure it out!
Thank you.

Sorry didn´t check your profile.
Here is a GRBL-M3 one:
6040__ UCCNC.lbzip (65.3 KB)
You can test it as flat first to check the output.

In the Custom GCode there´s a UCCNC flavor but don´t know if it´s connected to the Swap X/Y, have to test.

No need to remember just keep 2 devices one for rotary and the other for flat.

Good point!
Thx