SKR PRO Laser

Hi, I’ve started a new topic because I switched my card from Ramps to SKR PRO.

I’m using: V1CNC_SkrPro_Dual_2209-2.1.1 with no changes.

When I execute this: M42 PC9 S1, my laser works, but when I start a cut, the laser doesn’t light up. I think M107 isn’t working correctly. Here’s my G-code:

;Header Start
;header_type: laser
;file_total_lines: 40
;max_x(mm): 16.5
;max_y(mm): 18.5
;max_z(mm): 0
;min_x(mm): -16.5
;min_y(mm): -18.5
;min_z(mm): 0
;thumbnail: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGG0lEQVR4nO3YzS2FURSG0X3FTIxRiZ+RSvSiGaUYMNAEGriX6aeDK57kTGStAt49O09ydtu2bQMAf3S6avjzc+bhYeb2dtUFAI55fp55epq5uFizvywg+/3M6+vM/f2qCwAc8/Iy8/W1bn+36gvr42Pm+nrm/X3FOgC/ubqaeXububxcs3+yZhaA/05AAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEB

IBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIBEQABIBASAREAASAQEgERAAEgEBIDkdNXw4TCz3888Pq66AMAxh8PM9/e6/WUBOT+fubmZ2bZVFwA45u5u5uxs3f5u2zzxAPzdDxYzLkrCct5KAAAAAElFTkSuQmCC
;End of Header
; LightBurn 1.5.00
; SnapMaker device profile, current position
; Bounds: X-16.5 Y-18.5 to X16.5 Y18.5

;USER START SCRIPT
M3 I
;USER START SCRIPT

G21
G91
; Cut @ 1000 mm/min, 80% power
M107
M05
G0 X16.5 Y-18.5 F0
; Layer C01 Pass 1 of 2
M03 P80 S204
G1 X-33F1000
G1  Y37
G1 X33
G1  Y-37
; Layer C01 Pass 2 of 2
G1 X-33
G1  Y37
G1 X33
G1  Y-37
M107
M05
; return to starting position
G0 X-16.5 Y18.5 F0

I think the inline mode is ok, but I suspect the M107 command is incorrect. I assume I need to change a parameter in LightBurn, but I’m not sure which one.

With the M3 I command the G1 commands need an “S” parameter to tell the laser how much power to use. The scale is settable, but I believe defaults from 0 to 255.

Without the “S” parameter on the G1 commands, the laser will stay off.

I found the parameter, but is not working, I haven’t the S on my G1 command.

What are you using to generate the g-code?

There are three different ways you can drive your laser:

  • Use M3/M5 to turn the laser on and off. The V1 firmware as configured will work just fine with these commands, but you will get a lower quality result from your laser work.

  • Use inline commands. The V1 firmware as configured will work with inline commands. Whatever tool you are using to generate your g-code must be capable of generating inline commands, and, as Dan stated, you need the “M3 I” at the top of the file. Inline commands produce, by far, the best leaser cutting and engraving results.

  • Use M106/M107 commands. Using these commands will require you to reconfigure the firmware. M106/M107 commands are designed to turn fan pins on and off. To make it work for PC9, you will need to define PC9 as the fan pin in the firmware. M106/M107 will produce the lowest quality results of the three methods.

I highly recommend Lightburn as your tool for generating your laser g-code. In order to use inline commands, you need to have this setting configured for inline commands:

image

Edit: Your screen shot appears to be Lightburn. I didn’t recognize it at first due to the different language. The setting above is under Basic Settings, and sometimes the dialog/window needs to be resized for it to appear (bug in Lightburn). In addition, you must have set up the device as Marlin. The setting does not appear for GRBL devices.

Hi, I change my mac and it’s works, but I have an other problem. I’ll create a new topic.
And I don’t have the laser Control Commands option, I don’t know why.
Thanks

Sorry for the slow response. I’ve seen two reasons why the laser control commands do not appear:

  • There is a bug in some versions of Lightburn on some displays where the dialog needs to be
    resized bigger before the commands appear.

  • These controls only appear if you’ve set up the device as Marlin. They don’t appear for GRBL.

No problem, Yes is I work as Marlin machine, I can see inline mode