add retracts on brim. update CR30 device definition

This commit is contained in:
Stewart Allen 2021-01-17 11:26:55 -05:00
commit 0d03bc3aa9
3 changed files with 15 additions and 16 deletions

View file

@ -2,6 +2,7 @@
## `C` cosmetic, `F` functional, `P` performance, `B` bug fix ## `C` cosmetic, `F` functional, `P` performance, `B` bug fix
* `B` saved profile should be restored / defaulted when switching devices?
* `B` normals possibly inverted on faces in 2D to 3D conversion * `B` normals possibly inverted on faces in 2D to 3D conversion
* `B` normalize left, bottom, right pop menu time/click and value persistence * `B` normalize left, bottom, right pop menu time/click and value persistence
* `B` origin bug (Onshape?) when switching modes in 2.5 and 2.6 * `B` origin bug (Onshape?) when switching modes in 2.5 and 2.6
@ -16,6 +17,7 @@
# FDM # FDM
* `B` large # linear points with linear infill (belt only?)
* `B` fix adaptive slicing with multi-extruder * `B` fix adaptive slicing with multi-extruder
* `B` fix supports with grouped parts * `B` fix supports with grouped parts
* `B` multi-extruder rendering of raft fails to offset the rest of the print * `B` multi-extruder rendering of raft fails to offset the rest of the print

View file

@ -11,12 +11,12 @@
"G21 ; use metric values", "G21 ; use metric values",
"G28 ; home axes", "G28 ; home axes",
"G92 E0 ; reset filament position", "G92 E0 ; reset filament position",
"G1 Y0.2 ; move to bed", "G1 Y0.15 ; move head to belt",
"G1 X200 E50 F500 ; purge nozzle", "G1 X200 E50 F800 ; extruder purge line",
"G1 Z0.3 ; move bed 0.3mm", "G1 Z0.3 ; shift belt away 0.3mm",
"G1 X0 E50 ; purge nozzle", "G1 X0 E100 ; extruder purge line",
"G1 Z2 ; move bed 2mm", "G1 Z2 E98 ; shift belt away 2mm, retract extruder",
"G92 Z0 ; reset bed position", "G92 Z0 E-2 ; reset bed + extruder position",
"M117 CR-30 Printing..." "M117 CR-30 Printing..."
], ],
"post":[ "post":[
@ -26,7 +26,7 @@
"M140 S0 ; shut down bed", "M140 S0 ; shut down bed",
"G92 E1 ; set filament position", "G92 E1 ; set filament position",
"G1 E-1 F300 ; retract filament", "G1 E-1 F300 ; retract filament",
"G28 ; home axes", "G28 X ; home X axis",
"G1 Y50 F1000 ; lift y axis", "G1 Y50 F1000 ; lift y axis",
"M84 ; disable stepper motors" "M84 ; disable stepper motors"
], ],
@ -80,13 +80,13 @@
"sliceSolidLayers": 3, "sliceSolidLayers": 3,
"sliceBottomLayers": 3, "sliceBottomLayers": 3,
"sliceTopLayers": 3, "sliceTopLayers": 3,
"firstLayerRate": 20, "firstLayerRate": 15,
"firstLayerPrintMult": 1.1, "firstLayerPrintMult": 1.1,
"firstLayerYOffset": 0, "firstLayerYOffset": 0,
"firstLayerBrim": 0, "firstLayerBrim": 0,
"outputTemp": 210, "outputTemp": 210,
"outputFanMax": 255, "outputFanMax": 255,
"outputBedTemp": 60, "outputBedTemp": 70,
"outputFeedrate": 50, "outputFeedrate": 50,
"outputFinishrate": 50, "outputFinishrate": 50,
"outputSeekrate": 80, "outputSeekrate": 80,
@ -105,7 +105,7 @@
"detectThinWalls": true, "detectThinWalls": true,
"sliceMinHeight": 0, "sliceMinHeight": 0,
"sliceAdaptive": false, "sliceAdaptive": false,
"zHopDistance": 0.2, "zHopDistance": 0,
"antiBacklash": 0 "antiBacklash": 0
}] }]
} }

View file

@ -388,9 +388,6 @@
} }
let tmpout = []; let tmpout = [];
let wtb = slice.widget.track.box; let wtb = slice.widget.track.box;
// Belt TODO: pre-flight the slice-top-outer-shells here
// and determine a) brim and b) if no shell touches bed
// and if so, revert to starting near the center or user select
// output seek to start point between mesh slices if previous data // output seek to start point between mesh slices if previous data
printPoint = print.slicePrintPath( printPoint = print.slicePrintPath(
slice, slice,
@ -483,11 +480,11 @@
let z = minz; let z = minz;
let b = Math.max(firstLayerBrim, 1); let b = Math.max(firstLayerBrim, 1);
let tmpout = []; let tmpout = [];
layer.last().retract = true;
print.addOutput(tmpout, newPoint(maxx + b, y, z), 0, firstLayerSeek, tool); print.addOutput(tmpout, newPoint(maxx + b, y, z), 0, firstLayerSeek, tool);
print.addOutput(tmpout, newPoint(maxx + 0, y, z), emit, firstLayerRate, tool); print.addOutput(tmpout, newPoint(maxx + 0, y, z), emit, firstLayerRate, tool).retract = true;
print.addOutput(tmpout, newPoint(minx - b, y, z), 0, firstLayerSeek, tool); print.addOutput(tmpout, newPoint(minx - b, y, z), 0, firstLayerSeek, tool);
print.addOutput(tmpout, newPoint(minx - 0, y, z), emit, firstLayerRate, tool); print.addOutput(tmpout, newPoint(minx - 0, y, z), emit, firstLayerRate, tool).retract = false;
// print.addOutput(layerout, newPoint(minx - 0, y, z + 5), 0, firstLayerRate, tool);
layer.splice(0,0,...tmpout); layer.splice(0,0,...tmpout);
} }
} }