// Linear movement - 2D function onLinear2D(section) var x = section.getX(); var y = section.getY(); var z = section.getZ(); var feed = section.getFeedrate();
// Canned cycles function onCycle(section) var cycleType = section.getCycleType();
if (spindleSpeed != currentSpindleSpeed) writeBlock(sOutput.format(spindleSpeed) + " " + spindleDirection); currentSpindleSpeed = spindleSpeed; else writeBlock(spindleDirection); siemens 828d post processor for fusion 360
// Feedrate if (feed && feed != currentFeed) line += " " + fOutput.format(feed); currentFeed = feed;
// Spindle speed and direction var spindleSpeed = tool.spindleSpeed; var spindleDirection = tool.clockwise ? "M3" : "M4"; // Linear movement - 2D function onLinear2D(section) var
var line = "G1";
if (getParameter("programEndCode") == "M30") writeBlock("M30"); // Program end and reset else writeBlock("M2"); // Program end var y = section.getY()
writeBlock(line);