fix left/right cutout tab width. hide extrusion for cam mode

This commit is contained in:
Stewart Allen 2020-02-05 13:59:18 -05:00
commit 836aee23e9
4 changed files with 28 additions and 3 deletions

View file

@ -742,7 +742,7 @@ var gs_kiri_cam = exports;
const outside = 10000,
width = (tabWidth + toolDiam) / 2,
// horizontal top cut
htl = { x: -outside, y: tabWidth / 2 },
htl = { x: -outside, y: width },
htr = { x: -htl.x, y: htl.y },
// horizontal bottom cut
hbl = { x: htl.x, y: -htl.y },

View file

@ -2645,7 +2645,7 @@ self.kiri.license = exports.LICENSE;
finishing: UC.newGroup("finishing", null, {modes:CAM}),
finishingTool: UC.newSelectField("tool", {modes:CAM}),
finishingSpindle: UC.newInput("spindle rpm", {title:"spindle speed rpm", convert:UC.toInt, modes:CAM}),
finishingOver: UC.newInput("step over", {title:"0.05 - 1.0\npercentage of\ntool diameter", convert:UC.toFloat, bound:UC.bound(0.05,1.0), modes:CAM}),
finishingOver: UC.newInput("step over", {title:"0.05 - 1.0\npercentage of\ntool diameter\nfor linear XY", convert:UC.toFloat, bound:UC.bound(0.05,1.0), modes:CAM}),
finishingDown: UC.newInput("step down", {title:"step down depth\nfor each pass\nin millimeters\n0 to disable", convert:UC.toFloat, modes:CAM}),
finishingAngle: UC.newInput("max angle", {title:"angles greater than this\nare considered vertical", convert:UC.toFloat, bound:UC.bound(45,90), modes:CAM}),
finishingSpeed: UC.newInput("feed rate", {title:"max speed while cutting\nmillimeters / minute", convert:UC.toInt, modes:CAM}),
@ -3267,6 +3267,7 @@ self.kiri.license = exports.LICENSE;
// hide spindle fields when device doens't support it
[
UI.setDeviceExtrusion,
UI.roughingSpindle,
UI.finishingSpindle,
UI.drillSpindle

View file

@ -1,7 +1,7 @@
var exports = {
COPYRIGHT:"Copyright (C) 2014-2019 Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE:"See the license.md file included with the source distribution",
VERSION:"1.5.0"
VERSION:"1.5.1"
};
if (!module) var module = {};
module.exports = exports;

View file

@ -0,0 +1,24 @@
{
"file-ext": "nc",
"token-space": " ",
"strip-comments": true,
"pre":[
"G21 ; set units to MM (required)",
"G90 ; absolute position mode (required)",
"G0 F6000 ; default rapid move speed",
"G1 F1500 ; default cutting speed"
],
"post":[
"M30 ; program end"
],
"tool-change":[
"M6 T{tool} ; change tool to '{tool_name}'"
],
"dwell":[
"G4 P{time} ; dwell for {time}ms"
],
"settings": {
"bed_width": 760,
"bed_depth": 760
}
}