Notifiche
Cancella tutti

script to drop temperature during ramming  

Pagina 5 / 5
  RSS
snapper194
(@snapper194)
New Member
RE: script to drop temperature during ramming

I have a new MMU2S and this helped me so much with my tips for PETG, thank you!  Before I started using the script the PETG was so stringy.

 

Not sure if anyone is still working with script or not, but the problem that I'm having now is that the cool temp that I'm having to use (225) is so low that the purge block is not working well - the temp is so low that the filament extruded onto the purge block doesn't adhere well (it tends to stick up), and subsequent prints to the purge block will then come in contact with filament on that block that didn't lay down well.

 

Any suggestions?

 

 

Postato : 23/03/2021 1:41 pm
ANTALIFE
(@antalife)
Trusted Member
snapper194
(@snapper194)
New Member
RE: script to drop temperature during ramming

Thanks - I had seen your PrusaSlicer with Dribbling, but haven't tried it yet.  Any chance you're going to update to 2.3.0?  I'm using the paint on supports quite a bit.

Are people using the PrusaSlicer with Dribbling successfully with PETG?  What PETG and what filaments settings are you using?  So far I've tried Atomic and Overture PETG with this script (as well as lots of experimentation without the script), and it has fixed my issues with stringing tips, but now all kinds of issues with the purge block (because the print temperatures are much lower when purging).

 

 

Postato : 23/03/2021 8:51 pm
Madcamper
(@madcamper)
Eminent Member
RE: script to drop temperature during ramming

I've read through this forum and can't quite pin point how to run/configure this script. I am trying to get good tips on my MMU3 with petg. I've currently got it printing OK at 223c but strings are causing jams after about 100 filament changes. I'm running on windows and I've installed python. I've changed the start of the python script to where my python is installed. If anyone has some screenshots from prusa slicer post processing window or can lay out the steps exactly as to how to make it work, that would be helpful.

"#!C:\Users\myuser\AppData\Local\Programs\Python\Python311 python"

In Prusaslicer, under the "Post-processing scripts" of print settings I input "C:\Users\myuser\Downloads\cool_ram.py -t 205"

Doing this prusaslicer throws an error "Failed starting the script C:\Users\myuser\Downloads\cool_ram.py -t 205 C:\Users\myuser\AppData\Local\Temp\.26916.gcode.pp, Win32 error: 193"

Is this the correct way to make this script work? I've also tried manually in powershell and command prompt. Command prompt throws an access denied error(I have full control over all the files involved) and powershell does nothing.

Postato : 16/08/2023 12:52 pm
sz racing
(@sz-racing)
Utenti
RE: script to drop temperature during ramming

It seems like you're trying to use a Python script to post-process G-code generated by PrusaSlicer for your MMU3 with PETG filament. However, there might be some issues with your approach and configuration. Let's break down the steps and troubleshoot the problems you're encountering:

Script Configuration:

The shebang line at the beginning of your script looks correct, pointing to your Python installation.Make sure your Python script (cool_ram.py) is saved in the correct directory (C:\Users\myuser\Downloads in this case).

Post-Processing Configuration in PrusaSlicer:

It's important to provide the full path to the Python script when specifying it in PrusaSlicer.However, it seems you're trying to pass arguments to the script directly within the path. PrusaSlicer's post-processing scripts don't work this way.

Here's how you should set up the post-processing configuration in PrusaSlicer:

Save your Python script in an accessible location, for example: C:\Users\myuser\Documents\cool_ram.py.

In PrusaSlicer, go to "Printer Settings" (not Print Settings) and then "Custom G-code."

Scroll down to the "End G-code" section and add the following line at the end of your existing end G-code (if you have any):

javaCopy code; Post-processing script M117 Cooling RAM system('C:\Users\myuser\Documents\cool_ram.py -t 205')

Note: Make sure to adjust the path to the script and the desired temperature (-t 205) accordingly.

Save your printer profile settings.

This configuration will run the post-processing script after the print finishes, and it will use the system command to execute the Python script with the desired arguments.

Regarding the errors you're encountering:

Access Denied Error: Make sure that the user account running PrusaSlicer has the necessary permissions to access and execute the Python script. Right-click on the script file and check its properties to ensure the necessary permissions are granted.

PowerShell Not Responding: If you're testing the script in PowerShell and it's not responding, ensure that you're running the correct command, including the full path to the script. You might also want to check the script's content to see if it's expected to produce any visible output.

Remember to troubleshoot one step at a time. Verify that your script works when run directly from the command line, and then implement it into PrusaSlicer's post-processing accordingly. If you're still encountering issues, consider seeking help on Prusa forums or related communities, where users with similar setups might provide further guidance.

 

Postato : 17/08/2023 6:43 am
1 persone hanno apprezzato
digitalbrush
(@digitalbrush)
Active Member
RE: script to drop temperature during ramming

 

Posted by: @paul-meyer

I apologize did someone ask already but how do you use this script? I have a Windows 10 base PC to run slic3r and use octopi pi on rasp 3.

You have several options. On Windows, I would start here:

https://docs.python.org/3.3/using/windows.html

This will show you how to install python3 on Windows.

Then look at this:
https://docs.python.org/3.3/using/windows.html#launcher

Which describes how to set up your paths, etc. You should then be able to run this in a command shell.

py hello.py

==========

btw, I suspect (from some of the errors earlier in the thread) that Windows10 has a default python2 install. In that case, you might be able to skip all of the above and just type "py cool_ram.py -h" in the command shell, and then look at the help/examples there to figure your way forward.

==========

Alternatives:
- If you are comfortable with Linux, ssh into your raspberri pi, copy the gcode files there, run on raspbian linux.
If you have the default raspbian build, python3 is located at /usr/bin/python3, so edit the first line of my script appropriately, or simply run "python3 cool_ram.py -t 190 ..." instead of executing the script directly.

- Install "Linux subsystem for windows". Good excuse to get yourself a good command shell and basic scripting capabilities on Windows. I have not tried this myself.

==========

If you get it working, or run into any issues, please report back here to help others in the same boat.

I have searched high and low, and believe this script appears to be the most effective for the pesky tip tuning. My mmu2 has bee upgraded to an mmu3, and I'm only now discovering this. Always had problems when trying to use the mmu2. Never really messed with the filament retraction settings until now, and with no success.

This script has given me the most success with stringing so far.

Now, how do I get this into the Prusa Slicer Post-Processing settings so I don't have to run it from the Linux command terminal every time I want to use it? I think it's something along the lines of what you're saying about the raspberry pi, but it's going over my head a little.

I'm running Linux Mint if that helps, and when I run "which python3", mine does come up as "#!/usr/bin/python3". 

When I do try to put it in the post-processing section of Slicer, it spits an error that I need to provide the input file name. Any way to automate this so it processes before saving out the bgcode/gcode?

Postato : 01/08/2025 8:10 pm
digitalbrush
(@digitalbrush)
Active Member
RE: script to drop temperature during ramming

 

Posted by: @sz-racing

It seems like you're trying to use a Python script to post-process G-code generated by PrusaSlicer for your MMU3 with PETG filament. However, there might be some issues with your approach and configuration. Let's break down the steps and troubleshoot the problems you're encountering:

Script Configuration:

The shebang line at the beginning of your script looks correct, pointing to your Python installation.Make sure your Python script (cool_ram.py) is saved in the correct directory (C:\Users\myuser\Downloads in this case).

Post-Processing Configuration in PrusaSlicer:

It's important to provide the full path to the Python script when specifying it in PrusaSlicer.However, it seems you're trying to pass arguments to the script directly within the path. PrusaSlicer's post-processing scripts don't work this way.

Here's how you should set up the post-processing configuration in PrusaSlicer:

Save your Python script in an accessible location, for example: C:\Users\myuser\Documents\cool_ram.py.

In PrusaSlicer, go to "Printer Settings" (not Print Settings) and then "Custom G-code."

Scroll down to the "End G-code" section and add the following line at the end of your existing end G-code (if you have any):

javaCopy code; Post-processing script M117 Cooling RAM system('C:\Users\myuser\Documents\cool_ram.py -t 205')

Note: Make sure to adjust the path to the script and the desired temperature (-t 205) accordingly.

Save your printer profile settings.

This configuration will run the post-processing script after the print finishes, and it will use the system command to execute the Python script with the desired arguments.

Regarding the errors you're encountering:

Access Denied Error: Make sure that the user account running PrusaSlicer has the necessary permissions to access and execute the Python script. Right-click on the script file and check its properties to ensure the necessary permissions are granted.

PowerShell Not Responding: If you're testing the script in PowerShell and it's not responding, ensure that you're running the correct command, including the full path to the script. You might also want to check the script's content to see if it's expected to produce any visible output.

Remember to troubleshoot one step at a time. Verify that your script works when run directly from the command line, and then implement it into PrusaSlicer's post-processing accordingly. If you're still encountering issues, consider seeking help on Prusa forums or related communities, where users with similar setups might provide further guidance.

 

 

I also tried to follow this, and put

javaCopy code; Post-processing script M117 Cooling RAM system('/home/drakkan/Documents/prusa_mmu2_coolram_script/mmu2_ram_cool-master/cool_ram.py -t 195 -nwr -nwt')

In the "End G-code" section of "Custom G-code" in my Printer setting. But this yielded no temperature changes. 

Postato : 01/08/2025 10:06 pm
Pagina 5 / 5
Condividi: