Diode Laser Air Assist

The controller has to be able to switch something and that output has to have the proper mechanism to actuate whatever you are using…


This is a solid state (ss) switch from Amazon… controls my ventilation system… it is turned on by the Ruida output pin specifically indicating the machine is running, when it does the ss switch turns on the ventilation. It switches the 120V mains.

You still have to be able to generate the signal …

:smile_cat:

alright i will look into see what kind of controller i have and if there are any “pins” for said signal sending…

:money_mouth_face:

thank you JW

you are definitely smarter than i can even grasp, but i am a sponge - a large dry porous sponge.

Then don’t forget, you can get soaked also … :face_with_spiral_eyes:

:smile_cat:

Hi Community, a question for all;

Hey all, I liked your conversation on the air assist switch. I just wanted to throw something out there for all.
For the last 40 + years I have been running, set up, maintanance and programming CNC turret punch presses.
Back in the early 80’s, there was no CAD/CAM computers atleast where I was. We had to program our parts on
machine console, and then manually back up our programs via a paper tape punch. I never forgot any of the gcode.
One command was M00 which was a machine stop. It could be put any where in the program, and it would stop
the machine operation until the start button was pressed. These programs ran line to line from the ; at the end
of each line.

G92 X72.0 Y50.0;
G72 X12.0 Y34.0;
G28 I .75 J 45.0 K4 T304;
M00; (the machine stops here)
X17.345 Y8.123 T256 (continue punching)
G50;

I know this is a laser forum and nothing to do with CNC punch presses, but this is what I was talking about,
a feature that could one day be added in Lightburn. Someone earlier in this post said to just run two programs,
the first for the engraves and the second for the cuts and that is fine. I am using the air assist pump that came
with the Xtool, and for what I do it is ok. I just turn it off and on at the switch when I need it.

Thanks,
Tim

1 Like

The gotcha is that the controller on the laser (or CNC machine) must recognize the command, then activate an output pin connected to whatever you want to control.

So:

  • The microcontroller must have an available pin
  • The pin must be wired to a terminal on the PCB
  • The G-code dialect must have a usable command
  • The microcontroller must recognize the command
  • … and activate the pin
  • LightBurn must provide a way to send that command

Typically, GRBL running on low-end microcontrollers recognizes M7 or M8 for air assist. Back in the day, those commands controlled the flood coolant valve, but the key point is having the microcontroller recognize the command and do something.

Cheap diode lasers seem to use knockoff GRBL implementations that may not recognize the “usual” commands, may not “do something” as a result, don’t have an available pin, lack a terminal, and definitely don’t have a built-in relay to control a fan.

Bonus: Ruida controllers don’t use G-Code. They have an entirely different (binary!) command language.

So LightBurn already has everything required to control air assist, but it can’t do that unless everything else in the chain is available and working.

1 Like

awesome.

:money_mouth_face:

Too bad I didn’0t see a post like this when I was trying to figure out why all my engravings were coming out like mud on my xtool D1Pro. Everyone always said to leave the air assist on all the time, so I did, until one time I forgot to turn it on and the engraving came out super nice. I was pulling out my hair and about to take the whole thing and chuck it into the river.

I ended up getting a variable switch off Amazon. For engraving, I put it on very low, and for cutting, I open it up all the way.

And I can confirm what everyone has already said. The AA switch in Lightburn does nothing because the xtool controller is blind to it. I run all my engraving first, seeing an alarm on my phone, then come back out and turn on the air assist full blast for cutting. It works, but it’s a time waster.

Anyone have a list of lasers that will recognize the AA switch in Lightburn. I’m looking to move up to a CO2 laser, but the two makes I’m looking at (OMTech and Monport) are just like the xtool and incapable of being controlled by Lightburn.

thank you.

I’d suggest you post the m00 option in the feature suggestions and let us vote on it…

Maybe one of the developers will find this and tell us about it… :pray:

I know it would be beneficial to people like you who need the time to push buttons and fire up the air compressor…

@ednisley is looking at it for software control, and I’m viewing it for a way to halt the machine between layers… so you can do the manual thing…

I have no idea how you start from a machine halted by the m00 state, but I suspect the lightburn people are aware of codes.

Probably no real reason to include it, or if it even works with these grbl machines.


With our automated wire wrap machines, we had to manually enter a boot routine, in hex, from front panel switches for it to load a program on punched paper tape… The paper tape loaded the disk i/o software, which loaded the control program…

What I miss are the punched cards… they were the best for bookmarks and quick notes…

:smile_cat:

GRBL has RUN and HOLD inputs that, at least on CNC-ish boards, come from header pins:

I added control buttons to my 3018 CNC:

And a simple pendant for my MPCNC:

So, at least in principle, poking the RUN button would start the program after it stopped at an M0 command.

I expect most customized laser controller PCBs do not wire those pins to headers and their customized GRBL-oid firmware has surely lost the ability to use those inputs.

Have I got a deal for you:

:grin:

Hi Community,

I liked the photos of the punch cards, collectors items from the past like the paper tape
and paper tape punches I used in 1983. And yes on these punch presses I worked on
everyday, I would just add an M00 whenever I needed to stop the machines to drag
pieces of scrap off the turret bed. I would add two in a row for safety and just press
the start button twice, as these programs ran from line to line. I would vote on this feature.
In Lightburn there is all the cut layers at the bottom with 2 tool layers. Maybe there
could be a layer added that would do nothing but stop the machine and it could be
added anywhere in the cut layer sequence run. In my case, I had the three engrave layers
and the 2 cut layers. I could just INSERT this after the last engrave, the machine would stop,
then I could manually turn the air assist on to finish the last two cut layers, and restart
the machine.

C1, engrave layer,
C2, engrave layer,
C3, engrave layer
C100 stop, “added machine stop layer - M00”
(then press start button to continue)
C4, cut layer
C5, cut layer

Maybe someday someone on the team will come up with something like this. It was
an idea. As usual thanks to all here for the help I have got from ya’ll in the past.

Thanks,
Tim

1 Like

i would vote for this!

great idea @CNC_auto_index

:money_mouth_face:

The control of Air Assist via Lightburn was the reason I bought the SCULPFUN S20 Pro Max. Its incredibly useful. The laser itself is a dream. Highly recommended! Just don’t buy it from Tomtop. They literally pocketed my money (AUD $1277) and I’m still waiting for my machine nearly 5 months later. Had to buy elsewhere as Tomtop dont even answer my messages any more.

Make sure the layers that need air assist are listed last. Set these layers to NOT output. The job will stop after your engrave layers are complete. Then set these completed layers to NOT output and those the require air assist to output and start the job again. This will work like having a pause.

Right-click on the output header, the pull down lets you invert them all in one click… and includes some useful global options.

image

I use this a lot with the fiber…

:smile_cat:

1 Like

Here is something I’d like to add:

There are some other ways to make it work, depending on what configuration you have:

If your laser doesn’t support automatic air assist and has a proprietary mainboard, you most likely need to change it, but you can test first:

Most firmwares use either original grbl code (8bit boards) or a clone of grbl for ESP32 (32bit boards). Both grbl firmware types support the M7/M8/M9 commands (one of them, typically) to toggle on pin on the board. You just need to find, where it is :slight_smile:

I can confirm this for these boards:
8bit:
Sculpfun S6/S9
MKS DLC
32bit:
MKS DLC32
Sculpfun S10
Sculpfun S30 (this board already features a full AA control port)

All these boards can use automatic air assist, either by adding a relay and/or changing the firmware (in most cases not even that). I have a full guide here: Relay Control - Diode Laser Wiki

If you have a board that is capable of running FluidNC as a firmware, it’s most likely even easier to use that pins.

And regarding the M00 command: sounds interesting, but since you have the option in LigthBurn already, you could also use the M7/M8 command. Those are automatically inserted in the gcode where the air assist should be turned on. If you have some firmware with the M00 command, you can export the gcode, search and replace the M8 by M00 and you should be done.

Can you provide a reference that describes that are good for upgrades? I have a TwoTrees TS20 -20W

If I look at the product page of the TS20, they offer the official MKS touch screen as an add-on. So, I think they use the MKS DLC32 mainboard as well. If so, you can already add the automatic air assist control as described in the wiki article linked above (see the MKS DLC32 section) without any board upgrades.

1 Like

I have this board, but haven’t put it into the jl1 it was purchased for. Most of these will support ~20mA, have you seen it documented?

:smile_cat: