What is the Gcode for turning on the laser

What is the actual Gcode that turns on the laser. I have a friend who is trying to help fix my issues with the laser turning on before it gets to the starting point and is curious as to what turns on the laser. I never got any answers from my last thread about this issue. Is it M4 or M9 that turns it on Here is the first few lines of my project code:
; LightBurn 1.0.01

; GRBL device profile, user origin

; Bounds: X335.67 Y502.91 to X400.89 Y565.91

G00 G17 G40 G20 G54

G90

G0 X0 Y0

G91

M4

; Scan @ 4999.998 mm/min, 100% power

M9

G0X1.1758Y0.0043

; Layer C00

G1X0.216F196.85S1000

G1X0.072Y0.0079S0

G1X-0.3601S1000

G1X-0.0511Y0.0079S0

G1X0.4624S1000

G1X0.0405Y0.0078S0

G1X-0.5435S1000

You can turn on your laser with this code:
G1M3S30F1000
And turn it off with this code:
G1M5S0

Are you using a Jtech Laser. setup as GRBL in Lightburn. I don’t find either of these codes in any of my Gcode files.

Enter the command to turn on the laser in the field I specified and see if your laser turns on or not:
Screenshot (3)_LI

The m9 command is used to turn off the Coolant
The m3, m4 commands are used to turn on the laser
The m5 command is used to turn off the laser

I cant do that function. My control does not have a USB port to connect to my laptop. It is connected to my Onefinity CNC.

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