KlipperPrinter
Package: Libraries.Fabrication.Printers · Inherits from: Libraries.Fabrication.Printers.Printer, Libraries.Language.Object, Libraries.Fabrication.Printers.DirectDrivePrinter, Libraries.Fabrication.Profiles.Profile
The KlipperPrinter class is a fast printer running Klipper firmware, like a Voron. Klipper printers keep their start and end steps in their own configuration, as macros, so the start G-code is one line that runs the PRINT_START macro with the temperatures, and the end G-code runs PRINT_END. Klipper stops a print at a command it doesn't know, so a printer whose macros have other names (such as CrealityK1) changes GetStartGcode and GetEndGcode. Its bed is 300 by 300 millimeters until SetBed changes it.
Example Code
use Libraries.Fabrication.Printers.KlipperPrinter
KlipperPrinter printer
printer:SetName("My Voron 2.4")
printer:SetBed(350, 350, 340)
output printer:Describe()
Actions
GetEndGcode()
This action returns the end G-code: the PRINT_END macro.
Returns
text: The end G-code.
Example
use Libraries.Fabrication.Printers.KlipperPrinter
KlipperPrinter printer
output printer:GetEndGcode()
GetStartGcode()
This action returns the start G-code: the PRINT_START macro, given the bed and nozzle temperatures.
Returns
text: The start G-code.
Example
use Libraries.Fabrication.Printers.KlipperPrinter
KlipperPrinter printer
output printer:GetStartGcode()
Inherited Actions
5 actions from Libraries.Fabrication.Printers.Printer
23 actions from Libraries.Fabrication.Profiles.Profile
- Clear(text key)
- Describe()
- GetBambuSettingsFile()
- GetBoolean(text key)
- GetInherits()
- GetInteger(text key)
- GetName()
- GetNumber(text key)
- GetOwnKeys()
- GetParent()
- GetSchema()
- GetSource(text key)
- GetText(text key)
- Set(text key, text value)
- SetBoolean(text key, boolean value)
- SetInherits(text parentName)
- SetInteger(text key, integer value)
- SetName(text value)
- SetNumber(text key, number value)
- SetParent(Libraries.Fabrication.Profiles.Profile value)
- SetsOwn(text key)
- TrySet(text key, text value)
- Validate()