Skip to content
This repository has been archived by the owner on Jan 29, 2018. It is now read-only.

Commit

Permalink
DXF NewLib ready for testing!
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter van der Walt committed Mar 1, 2016
1 parent 6b99451 commit 1dd9d1d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion i/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,10 @@ $(document).ready(function() {
//console.log('Layers: ', layers);
var g = "(Gcode generated by ChiliPeppr / Laserweb Dxf2Gcode)\n";
g += "G21 (mm)\n";

g += 'G90\n';
if (firmware.indexOf('Lasaur') == 0) {
g += 'M80\n'; // Air Assist on
};

//dxfObject.translateX(laserxmax /2);
//dxfObject.translateY(laserymax /2);
Expand All @@ -1497,6 +1500,10 @@ $(document).ready(function() {
scene.remove( boundingBox );
}

if (firmware.indexOf('Lasaur') == 0) {
g += 'M81\n'; // Air Assist off
};

var gCodeToSend = g;

document.getElementById("gcodepreview").value = g;
Expand Down

0 comments on commit 1dd9d1d

Please sign in to comment.