Yes thank you I am trying to figure out how to get the post-processor to put the command, the ESS (Ethernet) plugin I have does work with Mach4 it's the USS (USB) that only works with Mach3
writeBlock(mFormat.format(power ? 5: 3));
changed to
writeBlock(mFormat.format(power ? 62: 63));
Sort of works but I need to identify the pin that controls it and cant seem to figure out how.
The original code:
var powerIsOn = false;
function onPower(power) {
initialG31 = false;
writeBlock(mFormat.format(power ? 5: 3));
powerIsOn = power;
if (power) {
onDwell(getProperty("pierceDelay"));
if (zFormat.isSignificant(getProperty("pierceHeight"))) {
feedOutput.reset();
var f = (hasParameter("operation:tool_feedEntry") ? getParameter("operation:tool_feedEntry") : toPreciseUnit(1000, MM));
zFormat.setOffset(0);
zOutput = createVariable({prefix:"Z"}, zFormat);
writeBlock(gMotionModal.format(1), zOutput.format(getCurrentPosition().z), feedOutput.format(f));
}
} else {
if (zFormat.isSignificant(getProperty("pierceHeight"))) {
zFormat.setOffset(getProperty("pierceHeight"));
zOutput = createVariable({prefix:"Z"}, zFormat);
}
writeln("");
}
}