40 W Laser GRBL oder Marlin

Liebe NG,

mir ist völlig unklar wie nun der 40 W Laser über Lightburn angesteuert wird. In der Konsole zeigt M115 Marlin V3.2.3… an, der erzeugte GCODEscheint reiner GRBL-Code zu sein.
Stellt der GRBL-Code eine Untermenge von Marlin-Code dar, so dass er verstanden werden kann? Ist die Verwendung von GRBL-Code ein Kompromiss um Lightburn nutzen zu können?
Ich verstehe es einfach nicht.

Liebe Grüße Sakura

Ich nutze Marlin Inline für normales laser gravieren und schneiden. Für rotary mussen Sie Snapmaker Marlin nutzen mit chunck und B für Ausgang.

1 Like

Vielen Dank für die Antwort. Was meinst du mit Marlin intern, bzw. B als Ausgang?
Ich würde gerne verstehen, warum die Ansteuerung so undurchsichtig ist. Und vor allem, warum es scheinbar kaum jemandem stört. Inzwischen organisiere ich meine Schnitte mit LightBurn, exportiere es mit DXF und schneide es dann mit Luban aus. Dann weiß ich wenigstens, dass die MAschine richtig angesteuert wird.

Erst fur Rotary bild nach bild.
In devices/

1: Die Machine einstellungen.


2: Die name fur diese profil. Und grosse.

3: Start platz.

4:

Druck finish.

5: Druck auf ‘rotation’ symbol.


6: Rotary einstellen.

Richtige einstellung für rotary. Mit ‘B’ ausgang. Diameter oder circumference is object abhängig.
7: Jetzt is das rotation symbol mit gruner punkt.

In folgendes Marlin Inline.

1: In new devices.


Rest wie oben bis 4.
2: Under ‘edit’ => device settings diese Einstellungen.

Wichtig inline, S-value max und baudrate.
3: Meine G-code wie erklärt from Skreelink auf diese forum in lightburn tutorials. Die 2W IR and 40W laser sind die Neueste.

Begin:

M106 P0 S255

G28

G53

; !!! Attention test yourself your Z value by own calibration!
; IMPORTANT, the Z value here is YOUR LASER HEIGHT on the touchscreen.
; Taking over the Z value without verification may lead to harm seriosly your rails, bed or laser module!!!

; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; !!!! If you agree and setup your settings then comment in the line M1999 below by a semicolon !!!
; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; this will restart your machine as long as you do not admit
;M1999

; comment out or in corresponding your module and machine

; 10W Laser - Example value only for orientation, use at own risc!!!
;G0 Z110 F6000

; 20W Laser - Example value only for orientation, use at own risc!!!
;G0 Z31.1 F6000

; 40W Laser - Example value only for orientation, use at own risc!!!
G0 Z189.1 F6000

; for half diode mode on 40W uncomment the next line AND unccomment the return line in the end code
;M2000 L23 P0

;
; General II
; ;;;;;;;;

; Changes back to Work Coords
G54
; This sets Z Work Origin to 0, making your laser height as 0.
G92 Z0
; Moves the toolhead back up out of the way.
G0 Z100
; Back to machine coords!
G53
; IMPORTANT, this is the offset you found following my laser guide!
G0 X156 Y-6 F6000
G0 B180 F3000
; Oops, we’re back in work coords.
G54
; Yep, we gotta set 0,0 on B as well!
G92 B0 Y0

; This is a safety line, it brings the laser online at 0 power, basically a ready state.

M3 S0
; Light recommended to 30-50%
M1010 S3 P50

; !!! Attention: uncomment door sensor at own risc !!!
; door sensor off
;M1010 S0

; Fan Air to 100%
M1010 S4 P100

; see AirPurifier gcode: https://snapmaker.github.io/Documentation/gcode/M1011M1011 ; choose between F1, F2, F3 gear working
M1011 F3 S1

;
; Section II for 20W/40W Laser
; ;;;;;;;;

; Air Assist ON (M7, M8 both works)
;M7
M8

; CrossHair Pointer off
M2002 T3 P0

4: end G-code

; Endcode

; source: First version from https://forum.snapmaker.com/t/full-lightburn-control-guide/27638
;         by Skreelink
; Update: timeJunky - 04.12.2023 Extended and commented
; 1) see gcode reference guide for SnapMaker https://snapmaker.github.io/Documentation/gcode/G000-G001
; 2) https://marlinfw.org/meta/gcode/

;
; Section: General I
; ;;;;;;;;
; Safety line, ensures the laser is offline and actually off.
M05

; return to full diode mode
;M2000 L23 P1

; Custom line to rapid toss the toolhead up out of the way.
G0 Z300 F6000
;De rotary terug naar 180° brengen.
G0 B180 F3000

; Custom line to rapid the bed forward.
G0 Y350 F6000
; Safety home, I’ve noticed sometimes my machine is offset if I don’t home every now and then.
G28
; Light to 100%
M1010 S3 P100
; Fan to 100%
M1010 S4 P100
; see AirPurifier gcode: https://snapmaker.github.io/Documentation/gcode/M1011M1011 ; choose between F1, F2, F3 gear working
M1011 F3 S1
; wacht 1 minuut
G4 S60

; Fan Air to 0%
M1010 S4 P0

; Enable door opening trigger
M1010 S1
; Refresh door Status
M1010 S12

; see AirPurifier gcode: https://snapmaker.github.io/Documentation/gcode/M1011M1011
;Air Purifier Off
M1011 F0

;
; Section: 20W/40W Laser
; ;;;;;;;;
; AirAssist to 0%
M9

G54
; Yep, we gotta set 0,0 on B as well!
G92 B0

5: additonal settings