Skip to content

TeamClockworks-RO108/KlipperScripts

Repository files navigation

KlipperScripts

A collection of Klipper scripts and configs that we use on our printers.

DUMP_VARS (development.cfg)

The DUMP_VARS macro will print wach field inside the printer object. If the field is a map, it will also print the contents of the map.

SEARCH_VARS (development.cfg)

The SEARCH_VARS macro will print all fields inside the printer object that contains the string given by the S= parameter.

HEATSOAK (heatsoak.cfg)

The HEATSOAK macro will heat the bed to a specified temperature (using the TARGET= parameter). It will do so by raising the target in small increments above the current temperature, and skipping to the next increment when the temeperature is slightly below the target. This ensures that the power going to the bed is maximized and the heating never times out (not heating at expected rate). It is also possible to configure a list of fans to turn on during heating to aid with hear dispersion.

TODO: turn off the fans after the heatsoak.

PRINT_START (print_lifecycle.cfg)

The PRINT_START does quite a few things:

  • Checks that the slicer profile version supplied (in the VERSION= parameter) is an accepted value.
  • Overheat the bed by a few degrees (using the HEATSOAK macro) and blow the fans to disperse the chamber heat.
  • Wait for the bed to cool down to required temperature.
  • Run the homing, quad gantry level and meshing procedures.
  • Print a pruge line containing a straight section and a zigzag section that aids in seeing how the bed adhesion will be on the print.
  • For MMU-equipped printers or custom setups, the macro allows executing only a part of the actions using the ACTIONS= parameter.

Example complete start G-code in PrusaSlicer:

PRINT_START EXTRUDER={first_layer_temperature[initial_tool]} BED=[first_layer_bed_temperature] TOTAL_LAYER={total_layer_count} VERSION=2

For ERCF printers, the start G-code will look like this:

MMU_START_SETUP INITIAL_TOOL={initial_tool} REFERENCED_TOOLS=!referenced_tools! TOOL_COLORS=!colors! TOOL_TEMPS=!temperatures! TOOL_MATERIALS=!materials! FILAMENT_NAMES=!filament_names! PURGE_VOLUMES=!purge_volumes!
PRINT_START EXTRUDER={first_layer_temperature[initial_tool]} BED=[first_layer_bed_temperature] TOTAL_LAYER={total_layer_count} VERSION=2 ACTIONS=preheat_calibrate_fullheat
MMU_START_CHECK
MMU_START_LOAD_INITIAL_TOOL
PRINT_START EXTRUDER={first_layer_temperature[initial_tool]} BED=[first_layer_bed_temperature] TOTAL_LAYER={total_layer_count} VERSION=2 ACTIONS=purge

PRINT_END (print_lifecycle.cfg)

The PRINT_END macro cools down the hotend and bed, parks the nozzle away from the print and resets the extruder state. An extra list of fans can be turned off and arbitrary gcode can be injected before and after the final reset stage. Like PRINT_START, it is able to execute a subset of the actions using the ACTIONS= parameter.

Spoolman macros and configuration

The spoolman.cfg file contains the standard macros usually used with spoolman (SET_ACTIVE_SPOOL and CLEAR_ACTIVE_SPOOL)

The spoolman folder contains an ansible setup script to configure spoolman to be accessed over an authentik-protected reverse-proxy.This is a more complicated setup and more details can be found on our wiki page.

About

A collection of Klipper scripts and configs that we use on our printers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors