So now that I have my diode laser build done and running off the Jackpot controller, I’m looking to improve my overall work environment by having the Jackpot control the on/off power functions for my laser module and the exhaust fan. I’m waiting on the 5V output module that I just ordered from Bart Dring, but in the mean time I wanted to get input from the forum on whether or not I’m on the right track…
In my config.yaml file I’ll have 3 spindles defined:
- Laser: as tool 0
- relay: as tool 1 to control 24V power to the laser module itself so I don’t hear the fan noise
- relay: as tool 2 to control 120VAC power to the exhaust fan
Then in Lightburn’s user-defined Start GCode I’d do this:
M6 T2; Select the relay: spindle to control the exhaust fan power
M3; Turn on the exhaust fan
G4 P3.0; Wait 3.0 seconds
M6 T1; Select the relay: spindle to control the laser module power
M3; Turn on the 24V power to the laser module
G4 P3.0; Wait 3.0 seconds
M6 T0; Select the Laser: spindle
For the user-defined End GCode I’d do this:
M6 T1; Select the laser module relay: spindle
M5; Turn off the laser module
M6 T2; Select the exhaust fan relay: spindle
G4 P10.0; Wait 10.0 seconds
M5; Turn off the exhaust fan
I’ve never dealt with tool changes on my own like this, so I’m assuming the M3 & M5 commands are only relevant to the currently selected tool.
All feedback appreciated, thanks!