SKR PRO echo:Unknown command: "$$"

Hello, I’m encountering an issue: my laser finally works, but its power is too low. Thus, I’d like to adjust the maximum power setting from 255 to 1000 for the ‘S’ parameter. However, in Lightburn, nothing changes when I make this adjustment. Oddly enough, the commands M9, M5, $i, and $$ are not recognized. I’m using the V1CNC_SkrPro_Dual_2209-2.1.1 on an SKR Pro 1.2 board.

Thanks for any assistance you can provide.

(Why didn’t I just purchase an Xtool at €2500 ?)

Commands starting with $ are, as far as I know, are GRBL related commands, and while they do work with GRBL-compatible firmware such as FluidNC, they don’t work with Marlin firmware, which is what runs on SKR boards.

There is a fairly well discussed issue with power settings mismatch problems, in which 0-255 is one scale in use, while 0-1000 is another scale in use. I’m not an expert on it. We need someone who is an expert, such as @robertbu, to chime in.

However, Lightburn detects my CNC with GRBL M3.
Ok, I’ll wait for that response then.

thanks

As per Lightburn docs, if you are running Marlin, then in Lightburn you should create the device entry manually (not do auto detect):

The simplest way to proceed is to click Find My Laser and let LightBurn locate and identify your laser. If that doesn’t work, your laser may connect with Ethernet, or if you have a Marlin device, you’ll need to use Create Manually.

…And in the dropdown list you should manually select “Marlin” as the device type.

I tried that, but my CNC doesn’t work after that. ChatGPT says it’s normal for Lightburn to detect GRBL-M3.

I’ve used LightBurn with Marlin based lasers. On an SKR Pro, even, but I save gcode and put it on an SD card. I had some funny stuff happen with LightBurn directly connected via USB and just stopped doing that.

Regardless, Marlin will not respond to $$ commands.

I’m starting to despair; I’ve been trying for nearly two months to get my CNC to work properly, but I always encounter a problem. Is there a stable and functional version of Marlin available?

Marlinbuilder releases will have firmware for the SKR Pro. You either want the Dual or DualLR variant for the SKR Pro depending on which machine you’ve built

Yes I use : V1CNC_SkrPro_Dual_2209-2.1.1.zip
and before an others on ramps.

1 Like

@Jeff_frenchy

You didn’t mention if you were using a Primo or a Lowrider. The software you’re noting above is for the Primo, with dual endstops.

If you’re using a LR you need to get the V1CNC_SkrPro_DualLR_2209-2.1.1.zip

Mike

It’s a primo :slight_smile:

That firmware should work fine, and manage a Primo just fine.

So you need to define a machine to LightBurn based on Marlin. I’m going off of old memory here, but a something that it might be not allowing it to work:

  • Baud rate. V1 Marlin IIRC uses 250000 baud for the serial port. Most things want to default to 57600.

Aside from that, keep in mind the different firmware language, home is G28 and not $H

I recommend you try to connect using a plain serial connection (I like putty) and see if you can do some things. Commands to try:

G28 ; home the machine
G0 X10 ; move 10mm to the right
G0 Y10; move 10mm away
1 Like

Thanks, but I would like to use Lightburn as normal cnc.

Perfectly fine, but you have a system that isn’t working. As such, we want to test the individual parts.

Part 1. Can you connect to the mainboard? So you seemed to be able to connect as a GRBL controller, but you say nothjng works as Marlin. Well, if you can connect and get a response from a plain serial connection, it proves that the connection works.

Part 2. Get LightBurn configured for a Marlin board. You need LightBurn to generate the correct gcode flavour, or else you’re no further ahead. The SKR runs Marlin, I don’t think it has a GRBL port available. So get LightBurn configured to connect correctly. This requires that it generates Marlin gcode.

Once you have those parts in place, you should be rid of the error, and have a working machine.

1 Like

Part 1. If I’m not wrong marlin is a fork of GRBL, so it’s normal than my cnc work as GRBL in lightburn. But doesn’t work entiretly.

Part 2. That’s the point, I don’t know how to configure as marlin, in Lightburn. Now I work only as Marlin machine.

there my gcode for a simple rectangle :

;Header Start
;header_type: laser
;file_total_lines:54
;max_x(mm): 19
;max_y(mm): 18
;max_z(mm): 0
;min_x(mm): 0
;min_y(mm): 0
;min_z(mm): 0
;thumbnail: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAClklEQVR4nO3XsVFqUQBF0csfi5DEITBUI/qwIRPagpgGSHBGI4fBMq4N/Nnpe8FaFZxkB2cz55wD+K9/Sw+ANRMIBIFAEAiEh+PxOH5+fsZ2u116C6zG/X4fu91ubN7f3+fn5+d4fn5eehOsxtfX13h5eRkPr6+vY7/fj4+Pj6U3wWocDocx5/RBoAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCAIBIJAIAgEgkAgCASCQCA8XC6Xcb1ex/l8XnoLrMb39/d4e3sbm9PpNG+323h8fFx6E6zG7+/veHp6Gps551x6DKyVDwJBIBAEAkEgEP4ALZg0Y8QgM8oAAAAASUVORK5CYII=
;Header End
; LightBurn 1.5.03
; SnapMaker device profile, current position
; Bounds: X0 Y0 to X19 Y18
G21
G91
; Cut @ 300 mm/min, 90% power
M107
M05
G0 X19 Y0 F0
; Layer C00 Pass 1 of 6
G1 X-19F300 I S900
G1  Y18
G1 X19
G1  Y-18
; Layer C00 Pass 2 of 6
G1 X-19
G1  Y18
G1 X19
G1  Y-18
; Layer C00 Pass 3 of 6
G1 X-19
G1  Y18
G1 X19
G1  Y-18
; Layer C00 Pass 4 of 6
G1 X-19
G1  Y18
G1 X19
G1  Y-18
; Layer C00 Pass 5 of 6
G1 X-19
G1  Y18
G1 X19
G1  Y-18
; Layer C00 Pass 6 of 6
G1 X-19
G1  Y18
G1 X19
G1  Y-18
M107
M05
; return to starting pos
G0 X-19 Y0 F0

At one point, long ago, sure. but the flavours of gcode that the two run are now significantly different, and GRBL has an entire class of gcodes that Marlin will not recognize at all, as well as some that behave differently. There’s a reason that LightBurn has a different setup for the two.

This may be where I don’t understand what you’re having trouble with.


in the Device settings tab, I have mine set up like this. note the “Inline” for laser commands, I believe that this is the most recommended way.

In the Gcode tab, you will need to have

M3 I

in order to initialize the system to receive ion-line laser power commands. Set up like this, LightBurn will issue the G1 commands with an “S” parameter for the laser power.

Also note there, that I have the laser power for this machine set up on a scale from 0 to 1000. (the "S max value box below the Inline command) Marlin may be set up for that max value to be 255, so you should set that.

Ok, I have a good new.
I’m remove the data:image.
Remove the M107 and M05 and replace by M03
And it’s works !

BUT

I can’t cut, It’s on 90% on plywood 5mm, It’s seem cut only 1mm I don’t understand.

It’s works ! My focus was bad :slight_smile:

Thanks a lot for your help. I need to change my gcode all time but I don’t care for the moment