Hi @GrizzleCam
another way can be to tweak the output on specific situation.
I have removed some part of the function, but inside the onLinear, and also the onRapid, we can alter the code like that:
function onLinear(_x, _y, _z, feed) {
var x = xOutput.format(_x);
var y = yOutput.format(_y);
var z = zOutput.format(_z);
var f = getFeed(feed);
if (x || y || z) {
if (pendingRadiusCompensation >= 0) {
......
default:
writeBlock(gMotionModal.format(1), gFormat.format(40), x, y, z, f);
}
} else {
if (isTurning()) { // added test
writeBlock(gMotionModal.format(1), yOutput.format(_x), z, f); // tweaked output
} else { // regular output
writeBlock(gMotionModal.format(1), x, y, z, f);
}
}
The same logic can be applied above on the cutter compensation output.
Have a nice day.
Regards.
______________________________________________________________
If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!