Thanks!
Code: Select all
this.header = [
.. stuff removed for brevity ..
"[N] G0 [ZS]", // Safe Z
"[N] M3", // Start spindle
];
Moderator: andrew
Code: Select all
this.header = [
.. stuff removed for brevity ..
"[N] G0 [ZS]", // Safe Z
"[N] M3", // Start spindle
];
I would include such before any M6/M3 or in 'this.toolHeader' ... if ZS is defined of course.
@ Ed,Arctic_Eddie wrote: ↑Fri Dec 25, 2020 2:35 pmI found two references to zSafety in C:\Program Files\QCADCAM\scripts\Cam\CamConfigurations\GCode.js.
Code: Select all
case "ZSafety":
w.addItems(["2", "1", "0.5"]);
w.setEditText("0.5");
break;
Code: Select all
/**
* \return Z level to be used to retreat to safety level.
*/
GCode.prototype.getSafetyZLevel = function() {
return parseFloat(this.getGlobalOption("ZSafety", 100.0));
};
Code: Select all
/**
* \class GCode
* This is the base class for all G-Code derived configurations.
* Constructor of class GCode.
*/
Code: Select all
/**
* This is a base class for G-Code configurations.
*
* Do not edit this class.
* Instead, create your own derivation as shown in GodeMM.js, GCodeIN.js, ...
*/
Code: Select all
this.header = [
"[N#] BEGIN PGM [PROGRAM_NAME] MM",
"[N#] BLK FORM 0.1 Z X[X_MIN] Y[Y_MIN] Z[Z_MIN]",
"[N#] BLK FORM 0.2 X[X_MAX] Y[Y_MAX] Z[Z_MAX]",
"[N#] L [ZS!] R0 FMAX",
];
this.footer = [
"[N#] L [ZS!] R0 FMAX M5 M30",
"[N#] END PGM [PROGRAM_NAME] MM"
];
That's what I ended up doing, but it would be nice if it could honor ZS.Arctic_Eddie wrote: ↑Fri Dec 25, 2020 2:06 pmIf you want to use the same value for all jobs then put it directly in the header.