There's a couple little tweaks I'd like to try and make to the UCCNC post processor in fusion. The first is that it automatically adds a G54 command at the beginning of the code. For my purposes I prefer to choose which WCS I'll use on the machine, and this could cause a crash if I forget to delete it before running a program. Also, there's an M6 command right at the beginning which is unnecessary for my setup as I already have the first tool loaded and set before a program starts.
I found this bit in the configuration, which looks like the code for calling G54. Can anyone familiar with this programing offer some advice on what lines to change to disable calling G54.
// wcs
if (insertToolCall) { // force work offset when changing tool
currentWorkOffset = undefined;
}
var workOffset = currentSection.workOffset;
if (workOffset == 0) {
warningOnce(localize("Work offset has not been specified. Using G54 as WCS."), WARNING_WORK_OFFSET);
workOffset = 1;
}
if (workOffset > 0) {
if (workOffset > 6) {
error(localize("Work offset out of range."));
return;
} else {
if (workOffset != currentWorkOffset) {
writeBlock(gFormat.format(53 + workOffset)); // G54->G59
currentWorkOffset = workOffset;