Ender 5 plus using PrusaSlicer failing to print
Hi every one I'm totally new here and Im new with 3d printing but since 6 month my learning carve started 🙂
I do have Ender 5 plus and recently started to modify the printer to get more out of it hardware wise moved to SKR pro with Hemera direct extruder. now I'm searching for a better slicer, PrusarSlicer is a totally different level ( it's amazing the way it controls the print process), but my prints keeps failing wondering why? tried to figer out the reason behind that and I found that the slicer is using G1 to move the bed while Cura uses G0. I replaced all the G1 with G0 in PrusaSlicer and it worked perfectly :). I noticed that with G1 the Z motors are loosen up while printing while G0 keeps the motors stiff. what exactly happing I'm not sure but if I'm going to use PrusaSlicer then I need to modify the G-code file very time before the print 🙁
Is there any way from the slicer software to generate G-code using G0 for bed movements instead of G1?
Appreciated
Regards,
Koda
RE: Ender 5 plus using PrusaSlicer failing to print
It is an advanced option, but one way is to make a post script changing all G1 moves with X and/or Y and not E parameter to G0 moves instead.
Another way is to change Printer settings -> Firmware -> G-code flavor to another setting - you need to be in Expert mode to see this option. I'm not sure, how the G-code output is changed when selecting another firmware output flavor. But it is easy to try and compare the result.
Have a look at my models on Printables.com 😉
RE: Ender 5 plus using PrusaSlicer failing to print
@area51
Since I'm working with Marlin I selected Marlin hopping that it will generate G0
RE: Ender 5 plus using PrusaSlicer failing to print
@area51
No luck, tried all of them. they are all with G1. 😭 in this case i need to change them manually.. but this is really inconvenient 🙁
RE: Ender 5 plus using PrusaSlicer failing to print
Then the remaining option is to write a post processing script turning all relevant G1 to G0.
Some info on post scripts can be found in the Slic3r manual: Post-Processing Scripts
Have a look at my models on Printables.com 😉
RE: Ender 5 plus using PrusaSlicer failing to print
Looking at the Marlin website it looks like G1 is supposed to be used for moves with extrudes and G0 for fast non print moves. It looks like Prusa have decided that as Slicer is designed for only printers they are just going to use G1 and not worry about having G0.
RE: Ender 5 plus using PrusaSlicer failing to print
I made this python3 PrusaSlicer post script as an example:
#!/usr/bin/python3
#####################################################################
# Example PrusaSlicer python3 post script.
# The script replaces G1 moves with G0 when there is no extrusion.
#
# ==> Use at your risk!
#
# Area51, 02.05.2020, version 0.1
#####################################################################
import sys
import re
# Get input filename
inFileName = sys.argv[1]
# Create output filename, appen '2' to the name
outFileName = inFileName + '2'
# Read all lines into memory
with open(inFileName, "r") as f:
lines = f.readlines()
# Process and write modified lines to output file
with open(outFileName, "w") as of:
# Iterate over all lines
for line in lines:
if line.startswith('G1 ', 0): # Line with G1
match = re.search('E[0-9.-]+', line)
if not match: # Line not having extruding
line = 'G0' + line[2:] # Change G1 to G0
of.write(line)
of.close()
f.close()
# End of script
It matched every line with G1 and not having extruder moves.
No guaranties given, use at your own risk! Just made as an example of a post script. May contain errors.
Have a look at my models on Printables.com 😉
RE: Ender 5 plus using PrusaSlicer failing to print
@neophyl
True, but the printer reacts differently with G1 then G0
RE: Ender 5 plus using PrusaSlicer failing to print
@area51
😀 it did not work .. but thanks for your try
RE: Ender 5 plus using PrusaSlicer failing to print
@koodaa
Depending on your system (I use Linux) python3 needs to be installed for the given script to run.
Post scripts are just executables that is run after G-code is generated - the "script" get the filename as the first parameter and it is then up to the script to "do what is has to do" with the generated G-code. In Windows it could be a .bat, .cmd or PowerShell file that changes G1 moves to G0 moves.
If you have a command line text editor, that can properly be used too...
Have a look at my models on Printables.com 😉
RE: Ender 5 plus using PrusaSlicer failing to print
@area51
I think i will go with Manual way since i have no clue with programming, but thank for all your support it means a lot to me 🙂