Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
HughesTooling
in reply to: j.cavender

Did you modify the post for spiral moves?

I've done this mod in my posts but it's not done correctly in yours as there should be a tolerance test. This should be the first test in onCircular and you have the maximumCircularRadiiDifference and Spiraltolerance variables but the code below is missing.

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

Your onCircular should look like this.

before.png

 

Mark

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