<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Laser on during initial move in Fusion Support Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174513#M87528</link>
    <description>&lt;P&gt;&lt;A href="https://a360.co/3f2hWrZ" target="_blank" rel="noopener"&gt;https://a360.co/3f2hWrZ&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Mar 2021 20:18:13 GMT</pubDate>
    <dc:creator>myjunkmail2209</dc:creator>
    <dc:date>2021-03-21T20:18:13Z</dc:date>
    <item>
      <title>Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10173744#M87523</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="ecm0bbzt hv4rvrfc e5nlhep0 dati1w0a"&gt;&lt;DIV class="j83agx80 cbu4d94t ew0dbk1b irj2b8pg"&gt;&lt;DIV class="qzhwtbm6 knvmm38d"&gt;&lt;DIV class="kvgmc6g5 cxmmr5t8 oygrvhab hcukyx3x c1et5uql ii04i59q"&gt;&lt;DIV&gt;I decided to try Fusion for some laser etching/cutting, and I've noticed something odd and annoying.&lt;DIV class="kvgmc6g5 cxmmr5t8 oygrvhab hcukyx3x c1et5uql ii04i59q"&gt;&lt;DIV&gt;The laser is on for the initial move from the WCS origin to the starting location.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="o9v6fnle cxmmr5t8 oygrvhab hcukyx3x c1et5uql ii04i59q"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is this an issue with Fusion, my post-processor or user error?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="o9v6fnle cxmmr5t8 oygrvhab hcukyx3x c1et5uql ii04i59q"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Output from post-processor:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;***********************************************************************************
;HyperCube CAM post processor for Fusion360: Version 1.0
;Compatible with Marlin 1.1.4+
;By Tech2C
;https://www.thingiverse.com/thing:1752766
;https://www.youtube.com/watch?v=n2jM6v3E7sU...
;***********************************************************************************
M117 Starting...
M5 ;Laser/Fan OFF
G21 ;Metric Values
G17 ;Plane XY
G90 ;Absolute Positioning
G92 X0 Y0 Z0 ;Set XYZ Positions
G0 F2500
G0 Z0 F300 ;Position Z
M400
M117 Outside
M3 S192
G1 X-9 Y-211.36 Z0
G1 X-8
G1 Y0
G1 X8
G1 Y-211.36
G1 X-8
G1 X-9
M400
M5 ;Laser/Fan OFF
G0 F2500
M84 ;Motors OFF
M117 Finished​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 11:12:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10173744#M87523</guid>
      <dc:creator>myjunkmail2209</dc:creator>
      <dc:date>2021-03-21T11:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10173950#M87524</link>
      <description>&lt;P&gt;I think it is the post processor that is causing the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please look over the following to see if the problem is evident.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;/**
  HyperCube CAM post processor for Fusion360
  Compatible with Marlin 1.1.4+

  By Tech2C
  https://www.thingiverse.com/thing:1752766
  https://www.youtube.com/watch?v=n2jM6v3E7sU&amp;amp;list=PLIaArjwViQRVAERWRrYfe9rtiwvvRGCzw
  Changed to M3 Sxxx - Laser on @ power Sxxx
  Changed to M5 - Laser OFF

  Adapted from 'Generic Grbl' (grbl.cps) and 'Dumper' (dump.cps)
*/
description = "HyperCube for Fusion360";
vendor = "Marlin";
vendorUrl = "https://github.com/MarlinFirmware/Marlin";

extension = "nc";
setCodePage("ascii");

capabilities = CAPABILITY_INTERMEDIATE;
tolerance = spatial(0.002, MM);

minimumChordLength = spatial(0.01, MM);
minimumCircularRadius = spatial(0.01, MM);
maximumCircularRadius = spatial(1000, MM);
minimumCircularSweep = toRad(0.01);
maximumCircularSweep = toRad(180);
allowHelicalMoves = true;
allowedCircularPlanes = undefined; // allow any circular motion

// user-defined properties
properties = {
  startHomeX: false,
  startHomeY: false,
  startHomeZ: false,
  startPositionZ: "2",
  finishHomeX: false,
  finishPositionY: "",
  finishPositionZ: "",
  finishBeep: false,
  rapidTravelXY: 2500,
  rapidTravelZ: 300,
  laserEtch: "M3 S128",
  laserVaperize: "M3 S255",
  laserThrough: "M3 S192",
  laserOFF: "M5"
};

var xyzFormat = createFormat({decimals:3});
var feedFormat = createFormat({decimals:0});

var xOutput = createVariable({prefix:"X"}, xyzFormat);
var yOutput = createVariable({prefix:"Y"}, xyzFormat);
var zOutput = createVariable({prefix:"Z"}, xyzFormat);
var feedOutput = createVariable({prefix:"F"}, feedFormat);
var planeOutput = createVariable({prefix:"G"}, feedFormat);

// circular output
var	iOutput	= createReferenceVariable({prefix:"I"}, xyzFormat);
var	jOutput	= createReferenceVariable({prefix:"J"}, xyzFormat);
var	kOutput	= createReferenceVariable({prefix:"K"}, xyzFormat);

var cuttingMode;

function formatComment(text) {
  return String(text).replace(/[\(\)]/g, "");
}

function writeComment(text) {
  writeWords(formatComment(text));
}

function onOpen() {
  writeln(";***********************************************************************************");
  writeln(";HyperCube CAM post processor for Fusion360: Version 1.0");
  writeln(";Compatible with Marlin 1.1.4+");
  writeln(";By Tech2C");
  writeln(";https://www.thingiverse.com/thing:1752766");
  writeln(";https://www.youtube.com/watch?v=n2jM6v3E7sU&amp;amp;list=PLIaArjwViQRVAERWRrYfe9rtiwvvRGCzw");
  writeln(";***********************************************************************************");
}

/** Force output of X, Y, and Z. */
function forceXYZ() {
  xOutput.reset();
  yOutput.reset();
  zOutput.reset();
}

/** Force output of X, Y, Z, and F on next output. */
function forceAny() {
  forceXYZ();
  feedOutput.reset();
}

function onSection() {
  if(isFirstSection()) {
    writeln("");
	  writeWords("M117 Starting...");
	  writeWords(properties.laserOFF, "         ;Laser/Fan OFF");
    writeWords("G21", "          ;Metric Values");
	  writeWords(planeOutput.format(17), "          ;Plane XY");
	  writeWords("G90", "          ;Absolute Positioning");
	  writeWords("G92 X0 Y0 Z0", " ;Set XYZ Positions");
	  writeWords("G0", feedOutput.format(properties.rapidTravelXY));
	  if(properties.startHomeX) { writeWords("G28 X", "        ;Home X"); }
	  if(properties.startHomeY) { writeWords("G28 Y", "        ;Home Y"); }
	  if(properties.startHomeZ) { writeWords("G28 Z", feedOutput.format(properties.rapidTravelZ), "    ;Home Z"); }
	  if(properties.startPositionZ) { writeWords("G0 Z" + properties.startPositionZ, feedOutput.format(properties.rapidTravelZ), "   ;Position Z"); }
}
  
  if (currentSection.getType() == TYPE_JET) {
    if(currentSection.jetMode == 0) {cuttingMode = properties.laserThrough }
	else if(currentSection.jetMode == 1) {cuttingMode = properties.laserEtch }
	  else if(currentSection.jetMode == 2) {cuttingMode = properties.laserVaperize }
	    else {cuttingMode = (properties.laserOFF + "         ;Unknown Laser Cutting Mode") }
  }
  
  if (hasParameter("operation-comment")) {
    var comment = getParameter("operation-comment");
    if (comment) {
	    writeln("");
	    writeWords("M400");
      writeComment("M117 " + comment);
    }
  }
}

function onDwell(seconds) {
  if (seconds &amp;gt; 99999.999) {
    warning(localize("Dwelling time is out of range."));
  }
  seconds = clamp(0.001, seconds, 99999.999);
  writeWords("G4 S" + seconds, "        ;Dwell time");
}

function onPower(power) {
  if (power) { writeWords(cuttingMode) }
  else { writeWords(properties.laserOFF) }
}

function onRapid(_x, _y, _z) {
  var x = xOutput.format(_x);
  var y = yOutput.format(_y);
  var z = zOutput.format(_z);
  if (x || y) {
    writeWords("G0", x, y, feedOutput.format(properties.rapidTravelXY));
  }
  if (z) {
    writeWords("G0", z, feedOutput.format(properties.rapidTravelZ));
  }
}

function onLinear(_x, _y, _z, _feed) {
  var x = xOutput.format(_x);
  var y = yOutput.format(_y);
  var z = zOutput.format(_z);
  var f = feedOutput.format(_feed);
  if(x || y || z) {
    writeWords("G1", x, y, z, f);
  }
  else if (f) {
    writeWords("G1", f);
  }
}

function onCircular(clockwise, cx, cy, cz, x, y, z, feed) {
  // one of X/Y and I/J are required and likewise
  var start = getCurrentPosition();
  
  switch (getCircularPlane()) {
  case PLANE_XY:
    writeWords(planeOutput.format(17), (clockwise ? "G2":"G3"), xOutput.format(x), yOutput.format(y), zOutput.format(z), iOutput.format(cx - start.x, 0), jOutput.format(cy - start.y, 0), feedOutput.format(feed));
    break;
  case PLANE_ZX:
    writeWords(planeOutput.format(18), (clockwise ? "G2":"G3"), xOutput.format(x), yOutput.format(y), zOutput.format(z), iOutput.format(cx - start.x, 0), kOutput.format(cz - start.z, 0), feedOutput.format(feed));
    break;
  case PLANE_YZ:
    writeWords(planeOutput.format(19), (clockwise ? "G2":"G3"), xOutput.format(x), yOutput.format(y), zOutput.format(z), jOutput.format(cy - start.y, 0), kOutput.format(cz - start.z, 0), feedOutput.format(feed));
	break;
  default:
    linearize(tolerance);
  }
}

function onSectionEnd() {
  writeWords(planeOutput.format(17));
  forceAny();
}

function onClose() {
  writeln("");
  writeWords("M400");
  writeWords(properties.laserOFF, "         ;Laser/Fan OFF");
  if(properties.finishPositionZ) { writeWords("G0 Z" + properties.finishPositionZ, feedOutput.format(properties.rapidTravelZ), "   ;Position Z"); }
  writeWords("G0", feedOutput.format(properties.rapidTravelXY));
  if(properties.finishHomeX) { writeWords("G28 X", "        ;Home X"); }
  if(properties.finishPositionY) { writeWords("G0 Y" + properties.finishPositionY, "      ;Position Y"); }
  writeWords("M84", "          ;Motors OFF");
  if(properties.finishBeep) { writeWords("M300 S800 P300"); }
  writeWords("M117 Finished :)");
}&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 21 Mar 2021 14:12:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10173950#M87524</guid>
      <dc:creator>myjunkmail2209</dc:creator>
      <dc:date>2021-03-21T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174242#M87525</link>
      <description>&lt;P&gt;Just looking at the code, I'd say that this line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;G1 X-9 Y-211.36 Z0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should be a G0. or otherwise be done before the laser is turned on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you show fusions output for this - right click the toolpath in the browser and choose 'view toolpath'&amp;nbsp;&lt;/P&gt;&lt;P&gt;so we can see what fusion is sending to the PP.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 17:26:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174242#M87525</guid>
      <dc:creator>carl.j.barker</dc:creator>
      <dc:date>2021-03-21T17:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174321#M87526</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toolpath.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/896230i205EBAADA87CCB04/image-size/large?v=v2&amp;amp;px=999" role="button" title="toolpath.png" alt="toolpath.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 18:13:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174321#M87526</guid>
      <dc:creator>myjunkmail2209</dc:creator>
      <dc:date>2021-03-21T18:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174467#M87527</link>
      <description>&lt;P&gt;Well the post is outputting correctly as far as I can tell.&lt;/P&gt;&lt;P&gt;Your tool path is missing the initial rapids to start point (or what ever the personal version outputs, Guessing just a linear ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the design with the setup and toolpathing on it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 19:41:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174467#M87527</guid>
      <dc:creator>carl.j.barker</dc:creator>
      <dc:date>2021-03-21T19:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174513#M87528</link>
      <description>&lt;P&gt;&lt;A href="https://a360.co/3f2hWrZ" target="_blank" rel="noopener"&gt;https://a360.co/3f2hWrZ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 20:18:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174513#M87528</guid>
      <dc:creator>myjunkmail2209</dc:creator>
      <dc:date>2021-03-21T20:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174543#M87529</link>
      <description>&lt;P&gt;I've also noticed that when I stack duplicate operations, the laser is not turned off at the end, before moving back to the initial starting position to go around again - Just ruined a nice bit of leather &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 20:42:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10174543#M87529</guid>
      <dc:creator>myjunkmail2209</dc:creator>
      <dc:date>2021-03-21T20:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Laser on during initial move</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10177657#M87530</link>
      <description>&lt;P&gt;Thanks for your assistance Carl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've discovered that the power on at the start seems to be an &lt;SPAN&gt;aberration&lt;/SPAN&gt; as I cannot replicate the fault in a new design.&lt;/P&gt;&lt;P&gt;The power remaining on between sections was a flaw in the post processor that I'm using.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 23:05:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/laser-on-during-initial-move/m-p/10177657#M87530</guid>
      <dc:creator>myjunkmail2209</dc:creator>
      <dc:date>2021-03-22T23:05:36Z</dc:date>
    </item>
  </channel>
</rss>

