function onSetup() // Write setup information var programName = getProgramName(); writeBlock("; PROGRAM: " + programName); writeBlock("; UNITS: " + (getParameter("unit") == "mm" ? "MILLIMETERS" : "INCHES"));
if (currentToolNumber != toolNumber) writeBlock("T=" + toolNumber + " M6"); // Siemens style tool change currentToolNumber = toolNumber; siemens 828d post processor for fusion 360
var line = clockwise ? "G2" : "G3"; // G2=clockwise, G3=counterclockwise PROGRAM: " + programName)
// Linear movement - 2D function onLinear2D(section) var x = section.getX(); var y = section.getY(); var z = section.getZ(); var feed = section.getFeedrate(); var y = section.getY()
// Siemens 828D post processor for Fusion 360 // Description: Siemens Sinumerik 828D milling post processor // Version: 1.0 // Date: 2024 // Requirements: Fusion 360 with manufacturing extension // Post processor configuration var properties = vendor: "Siemens", product: "828D Milling", version: "1.0", supportsMultipleSpindle: false, supportsSpindleDirection: true, supportsCoolant: true, supportsToolpathRadiusCompensation: true, supportsToolDiameter: true, supportsRadialCompensation: false, supportsLiveTool: false, isLibrary: false, codePage: "windows-1252" ;
if (x != undefined) line += " " + xOutput.format(x); if (y != undefined) line += " " + yOutput.format(y); if (z != undefined) line += " " + zOutput.format(z);
// Retract spindle writeBlock("G0 G53 Z0 D0"); // Retract to machine Z zero