Git Product home page Git Product logo

prusascripts's Introduction

PrusaScripts

Collection of Post-Processor Scripts for Prusa GCode

Post Process MMU Temp Fix

This script searches through GCODE files generate for the Prusa MMU and locates any temperature changes that occur between filament changes. It then moves these temperature commands after any cooling moves take place.

Background

The default operation in Prusa Slicer (as of version 2.0.0) performs the temperature change before any cooling moves take place. This causes issues as the hotend will heat up or cool down while the previous filament is still in the chamber. My fix for this is to edit the GCODE to request the temperature change after all cooling moves just before the current filament is extracted from the hot end. Ususally there is still plenty of time to get the hotend to the desired temperature (or very close) by the time the MMU loads the next filament to the hotend.

Details

The script look for any M104 commands that occur immediately after a retract (G1 E-.....). It then moves the M104 command to right after the G4 command that is the configured delay to wait before unloading (usually 0).

Therefore this:

G1 E-15.0000 F6000
G1 E-24.5000 F1200
G1 E-7.0000 F600
G1 E-3.5000 F360
M104 S200 ;TEMP CHANGE
G1 Y144.940 ;START OF COOLING MOVES
G1 X229.250 E20.0000 F488
G1 X178.820 E-20.0000 F434
G1 X229.250 E20.0000 F380
G1 X178.820 E-20.0000 F326
G1 E-35.0000 F2000
G1 Y144.800 F2400
G4 S0 ;DELAY 0s
T4 ;CHANGE TO EXTRUDER #4

Would become:

G1 E-15.0000 F6000
G1 E-24.5000 F1200
G1 E-7.0000 F600
G1 E-3.5000 F360
G1 Y144.940 ;START OF COOLING MOVES
G1 X229.250 E20.0000 F488
G1 X178.820 E-20.0000 F434
G1 X229.250 E20.0000 F380
G1 X178.820 E-20.0000 F326
G1 E-35.0000 F2000
G1 Y144.800 F2400
G4 S0 ;DELAY 0s
M104 S200 ;TEMP CHANGE
T4 ;CHANGE TO EXTRUDER #4

prusascripts's People

Contributors

johnnyruz avatar

Stargazers

Hiro avatar Aaron Russo avatar  avatar Jonas Bujok avatar  avatar

Watchers

 avatar

Forkers

arusso

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.