I have exactly the same problem. My start code I have used on earlier versions ie 4.9 and earlier and the {settings-key} has been replaced with the correct value into the Gcode. I am using Linux Mint 18.3 Sylvia and hence using the appimage.
18 hours ago, adlong said:I have exactly the same problem.
I'll ask the exact same question then:
On 7/8/2021 at 10:01 PM, ahoeben said:Can you save a project file (using File -> Save project...) and post a link to it here? Then I can have a look at your exact start gcode, as well as any postprocessing and other settings that could affect this.
10mm_cube.3mf Attached is a copy of the project file and a generated Gcode file.
GregValiant 1,115
Good morning @adlong and @ahoeben.
Adlong - One typo can ruin your whole day and two can make things twice as difficult.
G1 Y5.1 X200.0 Z0.28 F{print_speed] E15 ; Draw the first line
There are two things here.
- The ending square bracket is one typo and is interfering with ALL the replacements.
- {print_speed} doesn't exist as a keyword. {speed_print} would work but it's in mm/sec rather than mm/min. What you are trying to do can't be done at this time. There are a couple of requests on GitHub for a replacement keyword in mm/min but it hasn't happened yet.
What it appears you want is for the line to read:
G1 Y5.1 X200.0 Z0.28 F3600 E15
What you get with the curly brackets fixed and "speed_print" inside will be:
G1 Y5.1 X200.0 Z0.28 F60 E15
which is 1mm/sec and will be extremely slow.
-
1
Thank you. The code now works. the typo and wrong keyword must have occurred when editing whil trying to reduce speed of lines for elastic material
GregValiant 1,115
I have a second Ender 3 Pro installed in Cura for TPU. The StartUp Gcode is the only difference and that was to account for the print speed of the purge lines.
Greg. I have now deleted the purge lines and now just use a skirt with a minimum length, or make a brim big enough.
Recommended Posts
ahoeben 1,851
To answer the second part of your question: no, there is no way to do simple math with the replacement patterns.
Link to post
Share on other sites
ahoeben 1,851
I don't see why/how the pattern replacement is not working from the snippet you posted; the spelling seems correct.
Can you save a project file (using File -> Save project...) and post a link to it here? Then I can have a look at your exact start gcode, as well as any postprocessing and other settings that could affect this.
Link to post
Share on other sites