From 1cb130965977ecd2de5beb1de226a40b287769bd Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Wed, 24 Feb 2016 11:44:12 +0100 Subject: [PATCH] Craftbot PLUS --- src/conf_defaults.lua | 4 ++++ src/util/printer.lua | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/conf_defaults.lua b/src/conf_defaults.lua index 95f5113..9d56de2 100644 --- a/src/conf_defaults.lua +++ b/src/conf_defaults.lua @@ -133,6 +133,7 @@ M.printer_dimensions_x = { default_colido_2_0_plus = 230, default_colido_x3045 = 300, default_colido_compact = 130, + default_craftbot_plus = 250, subSection = 'printer_type', type = 'int', description = '', @@ -184,6 +185,7 @@ M.printer_heatedbed = { default_colido_2_0_plus = true, default_colido_m2020 = true, default_colido_x3045 = true, + default_craftbot_plus = true, subSection = 'printer_type', type = 'bool', description = 'Printer has heated bed', @@ -192,6 +194,7 @@ M.printer_filamentThickness = { default = 2.89, default_doodle_dream = 1.75, default_wanhao_duplicator4 = 1.75, + default_craftbot_plus = 1.75, type = 'float', description = '', min = 0.0, @@ -235,6 +238,7 @@ M.printer_endcode = { default_delta_rostockmax = default_deltabot_endcode, default_deltamaker = default_deltabot_endcode, default_kossel = default_deltabot_endcode, + default_craftbot_plus = 'M107 ;fan off\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;disable axes / steppers\nG90 ;absolute positioning\nM109 S{preheatTemp}\n{if heatedBed}M140 S{preheatBedTemp}\nM117 Done ;display message (20 characters to clear whole screen)', type = 'string', subSection = 'printer_type', description = '' diff --git a/src/util/printer.lua b/src/util/printer.lua index 48ce912..78e7e73 100644 --- a/src/util/printer.lua +++ b/src/util/printer.lua @@ -62,6 +62,8 @@ local SUPPORTED_PRINTERS = { colido_x3045 = "ColiDo X3045", colido_compact = "ColiDo Compact", colido_diy = "ColiDo DIY" + colido_diy = "ColiDo DIY" + craftbot_plus = "CraftBot PLUS" } local SUPPORTED_BAUDRATES = { ["115200"] = "115200 bps",