Cura start end code

I am not able to find a Cura 4.8 nor 4.10 start and end code for the snapmaker original. Is there one out there? If there isnt any what should i use?

You could simply take the gcode from Luban.
You have to open a previously printed . gcode file with a text editor and copy/paste the start end gcode to cura.

Thank you i will try that

What I’m using in cura 4.xx

Start Code:

M104 S{material_print_temperature_layer_0} ;Set Hotend Temperature
M140 S{material_bed_temperature_layer_0} ;Set Bed Temperature
G28 ;home
G90 ;absolute positioning
G1 X-10 Y-10 F3000 ;Move to corner 
G1 Z0 F1800 ;Go to zero offset
M109 S{material_print_temperature_layer_0} ;Wait for Hotend Temperature
M190 S{material_bed_temperature_layer_0} ;Wait for Bed Temperature
G92 E0 ;Zero set extruder position
G1 E20 F200 ;Feed filament to clear nozzle
G92 E0 ;Zero set extruder position

End code:

M104 S0 ;Extruder heater off
M140 S0 ;Heated bed heater off
G90 ;absolute positioning
G92 E0 ;Retract the filament
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z{machine_width} E-1 F3000 ;move Z up a bit and retract filament even more
G1 X0 F3000 ;move X to min endstops, so the head is out of the way
G1 Y{machine_depth} F3000 ;so the head is out of the way and Plate is moved forward

Are the settings in brackets meant to be set or are they auto filled in on execution?

i.e M140 S{material_bed_temperature_layer_0} ;Set Bed Temperature

Should I set the temp I want?

They are/were auto-filled assuming they match up. Probably look at one g-code file in a text editor and check it’s replaced them all. It’s worth noting they could change the name at any time, but I think that _0 suffix is since they started developing for the second nozzle so no breaking changes expected.

Now I needed prusaslicer variables so sticking the start and end code here for v2.5

I’d also been messing with bed levelling and mine is now off by default, so I’ve added the M420 S1 command after G28 as marlin recommends.

##Start


;; Leave hotend for later

;; M104 S{first_layer_bed_temperature[0]} ;Set Hotend Temperature

M140 S{first_layer_bed_temperature[0]} ;Set Bed Temperature

G28 ;home

M420 S1 Z2; Activate Bed Level Mesh from EEPROM (check with M503)

; Fade height set by Z, Z0 means maintain offsets for whole print.

G90 ;absolute positioning

G1 X-10 Y-10 F3000 ;Move to corner

G1 Z0 F1800 ;Go to zero offset

M104 S{first_layer_temperature[0] - 10} ;Start reaching Hotend Temperature -10

M190 S{first_layer_bed_temperature[0]} ;Wait for Bed Temperature

M109 S{first_layer_temperature[0]} ;Wait for Hotend Temperature

G92 E0 ;Zero set extruder position

G1 E30 F200 ;Feed filament to clear nozzle

G92 E0 ;Zero set extruder position

End code is same as listed for cura but with placeholders for bedsize replaced with the value 125.

It seems you fixed the problem I have with the bed levelling.
After terrible first layer prints I added M42O S1 Z2 after G28 thinking my Snapmaker 2 A350 will finally use the bed mesh. The result is that the nozel crash into the bed after going to X-10 Y-10.
So I deleted the line code again and started a new print. The new problem now is that the z is so close to the bed that no filament is coming out. Calibration dosent help, even if I set the z in the center of the bed to Z0.2 away from the calibration paper.
Maybe you know the reason why M420 didn´t.

M104 S{material_print_temperature_layer_0} ;Set Hotend Temperature

M140 S{material_bed_temperature_layer_0} ;Set Bed Temperature

G28 ;home

M420 S1 Z2 ; Use mesh level upto 2mm

G90 ;absolute positioning

G1 X-10 Y-10 F3000 ;Move to corner

G1 Z0 F1800 ;Go to zero offset

M109 S{material_print_temperature_layer_0} ;Wait for Hotend Temperature

M190 S{material_bed_temperature_layer_0} ;Wait for Bed Temperature

G92 E0 ;Zero set extruder position

G1 E20 F200 ;Feed filament to clear nozzle

G92 E0 ;Zero set extruder position