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

Turns out my own post had that bit of logic in there already. However, there was a slight modification:

  

//writeComment("Spiral move");
    if (dr > maximumCircularRadiiDifference) { // maximum limit
      linearize(0.01); // or alternatively use other G-codes for spiral motion

Became:

  

	//writeComment("Spiral move");
    if (dr > maximumCircularRadiiDifference) { // maximum limit
      linearize(Spiraltolerance); // or alternatively use other G-codes for spiral motion

 

Also, up at the top of the file, this bit of code:

 

 

capabilities = CAPABILITY_MILLING;
tolerance = spatial(0.002, MM);
Spiraltolerance  = spatial(0.025, MM);

 

In the end, the code it outputs is 58 lines, whereas the edited Fanuc code is 100

 


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.