Help Converting Cura Start/End G-Code for Ender 5 Plus
Hi,
I've been using PrusaSlicer for my MK3S for months now, and I'm quite impressed with it. Some things are a lot more easy to do in PrusaSlicer as opposed to Cura. I also have an Ender 5 Plus that I use Cura to slice objects. I want to use the following Linear Advance Tower on my Ender, but the instructions are for PrusaSlicer and I can't figure out how to convert the script that changes the K value into Cura.
https://projects.ttlexceeded.com/3dprinting_techniques_calibrating_LA.html
I think it might be easier for me to get my Ender up and running in PrusaSlicer. I've already created the profile, but I'm concerned with the start and end g-code and I was hoping someone can either validate that I can just transfer my g-code to PrusaSlicer or help me convert it. Thanks in advance.
Start G-Code (Cura)
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
M420 S1 Z0 ;Enable ABL using saved Mesh and Fade Height - commended out to remove triangle wipe 17-Sept-2020
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
End G-Code (Cura)
G91 ;Relative positioning
G1 E-0.5 F2700 ;Retract a bit
G1 E-0.5 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X{machine_width} 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
Thanks,
-p
RE: Help Converting Cura Start/End G-Code for Ender 5 Plus
That looks fairly generic, all except for the Machine_width and Machine_depth place holders. Prusa Slicer wont understand those as they are Cura specific.
There is already a profile for the Ender 5 Plus in PS. It contains start and end gcode as well as all the machine settings. The values entered into Printer Settings>Machine Limits will automatically get added to the start gcode if the option Emit to G-Code is selected in the dropdown, which it is in the ender 5 plus profile by default so you wont need those initial M201 etc.
I'd highly suggest you install the pre-built profile and then modify that as your current listing is missing some basic ones, like setting the bed and filament temps. Once you compare the 2 it should be pretty obvious what to change, the built in one is also well commented.
RE: Help Converting Cura Start/End G-Code for Ender 5 Plus
I'm fine with playing around with the stock start/end g-codes provided with the profile. I am wondering about the "G29" (Stock PS) vs the "M420 S1 Z0" that my Cura slicer currently uses. I think I needed to make that change because Cura caused some weird triangle to print as it was priming. Is there any consensus on which is better to use?
RE: Help Converting Cura Start/End G-Code for Ender 5 Plus
Change
G1 X{machine_width} Y{machine_depth} ;Present print
To
G1 X{print_bed_max[0]} Y{print_bed_max[1]} ;Present print
Or
G1 X{print_bed_size[0]} Y{print_bed_size[1]} ;Present print
(The first moves to the edge of the defined printable area, the second to the edge of the defined bed size)
RE:
"G29" performs Bed Leveling (creating a new bed mesh in the process), while "M420 S1 Z0" restores the previously saved bed mesh (and disables Z Fade height)
RE: Help Converting Cura Start/End G-Code for Ender 5 Plus
Thank you