Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

I think if you enable spiral moves you need this bit of code added near the top of the onCircular function.

  if (isSpiral()) {
    var startRadius = getCircularStartRadius();
    var endRadius = getCircularRadius();
    var dr = Math.abs(endRadius - startRadius);
	//writeComment("Spiral move");
    if (dr > maximumCircularRadiiDifference) { // maximum limit
      linearize(0.01); // or alternatively use other G-codes for spiral motion
      return;
    }
  }

I think it need to go just after the compensation check.

function onCircular(clockwise, cx, cy, cz, x, y, z, feed) {
  if (pendingRadiusCompensation >= 0) {
    error(localize("Radius compensation cannot be activated/deactivated for a circular move."));
    return;
  }

 

Mark

 

Edit you need to comment out the writeComment line like this.

	//writeComment("Spiral move");

 

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature