0.9.15 START & START script

hi,
i’m using grbl 1.1h and CNC shield v3
i did download for latest version 9.15

i’m using M08 for vacuum pump vacuum pump and M07 for air assist option
so some times i need to run M07 or M08 only.

i tried to use gcode script feature with M08 and M07 but this commands not working because there is M09 comming after and disable it if air assist feature is disabled
please how to solve this issue?


; LightBurn 0.9.15
; GRBL-M3 (1.1e or earlier) device profile, absolute coords
; Bounds: X27 Y32 to X130 Y126

;USER START SCRIPT
M08
;USER START SCRIPT

G00 G17 G40 G21 G54
G90
; Cut @ 2000 mm/min, 100% power
M9
M5
G0X27Y32
G0Z-60
; Layer C00
M3
G1Y126S255F2000
G1X130
G1Y32
G1X27
M5
G0Z0
M5
M9
G1S0
G90
; return to user-defined finish pos
G0 X0 Y0
M2

;USER END SCRIPT
M09
;USER END SCRIPT

M9 is “air assist off”. It happens automatically when you disable air assist for a layer, and M8 will be emitted when you turn it on.

There’s a patch coming soon to fix the labels - but the bottom one is the End Script.
However, please note that the start and end scripts ONLY add that gcode in addition to what was already being generated by LightBurn.
It would seem you don’t have the “Air Assist” option enabled in your cut settings which is why we are emitting that M9 at the beginning of the gcode (but after your start script).
Why are you trying to enable air assist from the start/end gcode scripts instead of just enabling it in the cut settings?

It’s worth noting this release also enabled the air assist commands for Marlin, so if you’re using the Start / End code just to do that, you don’t need to any more.

@LightBurn That was my thought too but they are using Grbl

Ah - I missed the “sometimes I need M07 or M08”. That’s going to be a problem, honestly, because they’re not controlled independently - one is “mist coolant” and the other is “flood coolant”, and both are turned off with a single command, so every time you disable air assist, you will also turn off the vacuum, pump. You’ll need a different way to control that.

Is there any do remove M09 from start of Gcode?
If there is no M09 at the start my issue will be solved

There is not - If you have air assist turned off for a layer, we have to emit the M9 command to turn it off - we can’t assume that it’s not on already.

Also i have another issue
I’m using M05 and M03 to switch on/off laser power Via relay.
The issue when i do test engraving the relay got damage after time due to fast switching.
Is there any way to keep M03&M05 at star and end of gcode and control the laser from PWM power only when machine jump from path to another?

There is no way to set LightBurn to do this, no.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.