From e3f60306cc81ff85650493479c63ab8cd24061b5 Mon Sep 17 00:00:00 2001 From: bissen21 Date: Thu, 24 Mar 2022 17:27:55 -0500 Subject: [PATCH] Add inkscape template. Add gcode header and footer. Add text file containing regex for modifying gcode. --- Tools/Template.svg | 1783 ++++++++++++++++++++++++++++++++++++++++++++ Tools/footer | 3 + Tools/header | 5 + Tools/regex.txt | 7 + 4 files changed, 1798 insertions(+) create mode 100644 Tools/Template.svg create mode 100644 Tools/footer create mode 100644 Tools/header create mode 100644 Tools/regex.txt diff --git a/Tools/Template.svg b/Tools/Template.svg new file mode 100644 index 0000000..93c60fd --- /dev/null +++ b/Tools/Template.svg @@ -0,0 +1,1783 @@ + + + + + + + + + + + + + + + + + + + + + + + + (0.0; 0.0; 0.0) + + + + (100.0; 0.0; -1.0) + + + + + + name + Drawbot + + + id + Drawbot 001 + + + diameter + 0.7 + + + feed + 2500 + + + penetration feed + 2500 + + + gcode before path + M400M280 P0 S73 (lower pen) + + + gcode after path + M400M280 P0 S100 (lift pen) + + + tool change gcode + (Add G00 here to change sprayer if needed) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tools/footer b/Tools/footer new file mode 100644 index 0000000..aa25686 --- /dev/null +++ b/Tools/footer @@ -0,0 +1,3 @@ + +M280 P0 S100 +G0 X.000 Y.000 \ No newline at end of file diff --git a/Tools/header b/Tools/header new file mode 100644 index 0000000..dfcc44b --- /dev/null +++ b/Tools/header @@ -0,0 +1,5 @@ +G21 (programming in millimeters, mm) +G90 (programming in absolute positioning) +M280 P0 S100 +G28 X Y (auto homing) +G1 F1500 (set speed) diff --git a/Tools/regex.txt b/Tools/regex.txt new file mode 100644 index 0000000..57e6470 --- /dev/null +++ b/Tools/regex.txt @@ -0,0 +1,7 @@ +Find all Z coordinates and replace with nothing +([ ][Z]([^ |\n])*) + + +Delete blank G00 commands replace with \n +(\n[G][0][0]\n) +\n \ No newline at end of file