diff --git a/js/cam/Assembler.js b/js/cam/Assembler.js index e618d88bbd7671a1d65a94c65f9cc00cce23d0af..e1554f81b04aa8b5335552e534502e989cd6bfd0 100644 --- a/js/cam/Assembler.js +++ b/js/cam/Assembler.js @@ -203,7 +203,7 @@ Assembler = Backbone.Model.extend({ var rapidHeight = this.get("rapidHeight"); var safeHeight = this.get("safeHeight"); var wcs = this.get("originPosition"); - data += exporter.moveZ(rapidHeight+wcs.z); + data += exporter.moveZ(rapidHeight); data += "\n"; var stockPosition = this.get("stockPosition"); @@ -275,7 +275,7 @@ Assembler = Backbone.Model.extend({ data += exporter.moveZ(stockPosition.z-wcs.z); data += exporter.addComment("get stock"); data += exporter.moveZ(stockPosition.z-wcs.z+safeHeight); - data += exporter.rapidZ(rapidHeight+wcs.z); + data += exporter.rapidZ(rapidHeight); return data; }, @@ -287,7 +287,7 @@ Assembler = Backbone.Model.extend({ data += exporter.moveZ(cellPosition.z-wcs.z); data += exporter.addComment(JSON.stringify(cell.indices)); data += exporter.moveZ(cellPosition.z-wcs.z+safeHeight); - data += exporter.rapidZ(rapidHeight+wcs.z); + data += exporter.rapidZ(rapidHeight); return data; },