include("GCodeBase.js"); function GCodeKluckowMM(cadDocumentInterface, camDocumentInterface) { GCodeBase.call(this, cadDocumentInterface, camDocumentInterface); // decimals: this.decimals = 3; // output in Millimeters: this.unit = RS.Millimeter; // start line numbers at 2: this.lineNumber = 2; // increment line numbers by 2: this.lineNumberIncrement = 2; // default options for all float values (coordinates, etc): this.options = { "trailingZeroes": true }; // make sure line number 2 is formatted as "N0002": this.registerVariable("lineNumber", "N", true, "N", 0, { "width":4, "leadingZeroes":true }); // header: this.header = [ "(Programname: [FILENAME])", "(Creat. with: QCAD/CAM " + RSettings.getVersionString() + ")", "[PROGRAM_NAME] F1000.00", ]; // footer: this.footer = [ "[N] M17", ]; // ignore tool change: this.toolHeader = []; this.rapidMove = [ "[N] G91 G01 [XR] [YR] [ZR]", "[N] G4 X=R101", ]; this.rapidMoveZ = []; this.linearMove = [ "[N] G91 G01 [XR] [YR] [ZR]", "[N] G4 X=R101", ]; this.linearMoveZ = []; this.arcCWMove = [ "[N] G91 G02 [XR] [YR] [ZR] B[RADIUS]", "[N] G4 X=R101", ]; this.arcCCWMove = [ "[N] G91 G02 [XR] [YR] [ZR] B[RADIUS]", "[N] G4 X=R101", ]; this.firstLinearMove = this.linearMove; this.firstLinearMoveZ = this.linearMoveZ; this.firstArcCWMove = this.arcCWMove; this.firstArcCCWMove = this.arcCCWMove; this.linearMoveCompensationLeft = []; this.linearMoveCompensationRight = []; this.linearMoveCompensationOff = []; } // Configuration is derived from GCodeBase: GCodeKluckowMM.prototype = new GCodeBase(); // Display name shown in user interface: GCodeKluckowMM.displayName = "G-Code Kluckow [mm]";