Converting to PrusaSlicer from Cura, Can Someone Help with Start/End Gcodes?
 
Notifications
Clear all

Converting to PrusaSlicer from Cura, Can Someone Help with Start/End Gcodes?  

  RSS
James Olmstead
(@james-olmstead)
Membre
Converting to PrusaSlicer from Cura, Can Someone Help with Start/End Gcodes?

Hi All, I have an Ender 3 Pro with a Sprite Pro extruder and running with Sonic Pad and BL Touch. I used prusa slicer when I first got this printer way back before i did any upgrades and when I went to sonic pad everything pointed me to using cura so I learned cura. However, in many cases I find that PusaSlicer gives me better prints and I want to get back to using PrusaSlicer again. I have it working currently but I dont like the start/end gcodes I have. I would like to have them act the same as they do in my cura settings. Can someone help me get the gcode right or at least point me in the right direction of where I can learn. i will add my Cura gcodes below. Thank you for any help. I will greatly appreciate it.  ...Jim

Start

; Set Movement...

G90; Use absolute positioning.

M83; Use relative extrusion.

 

; Heat Bed...

M140 S{material_bed_temperature_layer_0}; Start heating bed.

 

; Home Axis...

G28; Home all axis to know where everything is.

 

; Bed Mesh 

M104 S150; Start pre-heating hotend without oozing filament.

M190 S{material_bed_temperature_layer_0}; Wait for bed temperature when creating new bed mesh.

M109 S150; Wait for hotend pre-heat temperature to create new bed mesh with everything heated.

BED_MESH_CALIBRATE

 

; Ready Nozzle...

G1 Z2.0 F3000; Move Z Axis up to avoid bed.

G1 X2.0 Y20 F5000; Move above purge-line start, so any hotend oozing is out the way.

G1 Z0.28; Drop and wait for temperature.

 

; Await Bed+Nozzle Temp...

M104 S150; Start pre-heating hotend without oozing filament.

M190 S{material_bed_temperature_layer_0}; Wait for bed temperature before printing.

M109 S{material_print_temperature_layer_0}; Set and wait for hotend to reach temperature.

 

; Purge Nozzle...

G92 E0; Reset extruder.

G1 X2.0 Y140 Z0.28 F1500 E10; Draw the first line.

G1 X2.3 Y140 Z0.28 F5000; Move to side a little.

G1 X2.3 Y10 Z0.28 F1500 E10; Draw the second line.

 

M82; Use absolute extrusion.

; Print...

 

End

G91 ;Relative positioning

G1 E-2 F2700 ;Retract a bit

G1 E-2 Z0.2 F2400 ;Retract and raise Z

G1 X5 Y5 F3000 ;Wipe out

G1 Z10 ;Raise Z more

G90 ;Absolute positioning

 

G1 X0 Y{machine_depth} ;Present print

M106 S0 ;Turn-off fan

M104 S0 ;Turn-off hotend

M140 S0 ;Turn-off bed

 

M84 X Y E ;Disable all steppers but Z

Publié : 27/10/2025 10:48 pm
ruggbg
(@ruggbg)
Membre
RE: Converting to PrusaSlicer from Cura, Can Someone Help with Start/End Gcodes?

specifically, what is acting different? Ask CoPilot this question = how does this command work differently in cura vs prusa slicers

Lots if ideas

Publié : 28/10/2025 2:26 pm
James Olmstead
(@james-olmstead)
Membre
Topic starter answered:
RE: Converting to PrusaSlicer from Cura, Can Someone Help with Start/End Gcodes?

interesting. Its worth giving a try.

Publié : 29/10/2025 12:32 am
Neophyl
(@neophyl)
Illustrious Member
RE: Converting to PrusaSlicer from Cura, Can Someone Help with Start/End Gcodes?

Looking at your start/end code the only things you should need to change are the software specific placeholders.

S{material_bed_temperature_layer_0}; 
S{material_print_temperature_layer_0};  < those are Cura specific.

The equivalent in PS are  -

S[first_layer_temperature] ; set extruder temp
S[first_layer_bed_temperature] ; set bed temp

or the following if you need to define a filament for a multi extruder setup

S{first_layer_temperature[0]} ; set extruder temp
S{first_layer_bed_temperature[0]} ; set bed temp

You can find the names of PS placeholders by hovering you mouse over input fields in the profiles, the tool tip will often have a parameter name for that setting.

There is also https://help.prusa3d.com/article/list-of-placeholders_205643   

Publié : 29/10/2025 7:25 am
Neophyl
(@neophyl)
Illustrious Member
RE: Converting to PrusaSlicer from Cura, Can Someone Help with Start/End Gcodes?

Sorry forgot about the Y{machine_depth} ;Present print one.  Not 100% sure what the equivalent PS one is but you can just use some specific value in there based on your bed size anyway.

Publié : 29/10/2025 7:27 am
Partager :