Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add IJK Drilling Support to Posts

Add IJK Drilling Support to Posts

I tried to get this adopted here: http://forums.autodesk.com/t5/hsm-post-processor-forum/add-ijk-support-for-g83-in-haas-milling-post/...

 

It's quite silly given how simple this code is I think. I have been using it in both our Haas and Fadal posts and it works quite well. Here are the sections that I have added if they are helpful.

 

Haas:

 

    case "chip-breaking":
      if (cycle.accumulatedDepth < cycle.depth) {
        expandCyclePoint(x, y, z);
      } else {
        writeBlock(
          gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(73),
          getCommonCycle(x, y, z, cycle.retract),
          //"Q" + xyzFormat.format(cycle.incrementalDepth),
	  (((cycle.incrementalDepthReduction > 0) ? "I" : "Q") + xyzFormat.format(cycle.incrementalDepth)),
	  conditional(cycle.incrementalDepthReduction > 0, "J" + xyzFormat.format(cycle.incrementalDepthReduction)),
	  conditional(cycle.incrementalDepthReduction > 0, "K" + xyzFormat.format(cycle.minimumIncrementalDepth)),
          conditional(P > 0, "P" + milliFormat.format(P)), // optional
          feedOutput.format(F)
        );
      }
      break;
    case "deep-drilling":
      writeBlock(
        gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(83),
        getCommonCycle(x, y, z, cycle.retract),
        (((cycle.incrementalDepthReduction > 0) ? "I" : "Q") + xyzFormat.format(cycle.incrementalDepth)),
	conditional(cycle.incrementalDepthReduction > 0, "J" + xyzFormat.format(cycle.incrementalDepthReduction)),
	conditional(cycle.incrementalDepthReduction > 0, "K" + xyzFormat.format(cycle.minimumIncrementalDepth)),
        conditional(P > 0, "P" + milliFormat.format(P)), // optional
        feedOutput.format(F)
      );
      break;

Fadal:

 

    case "chip-breaking":
      // cycle.accumulatedDepth is ignored
      if (dwell > 0) {
        expandCyclePoint(x, y, z);
      } else {
        writeBlock(
          gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(73),
          getCommonCycle(x, y, z, cycle.retract),
          //"Q" + xyzFormat.format(cycle.incrementalDepth),
          (((cycle.incrementalDepthReduction > 0) ? "I" : "Q") + xyzFormat.format(cycle.incrementalDepth)),
	  conditional(cycle.incrementalDepthReduction > 0, "J" + xyzFormat.format(cycle.incrementalDepthReduction)),
	  conditional(cycle.incrementalDepthReduction > 0, "K" + xyzFormat.format(cycle.minimumIncrementalDepth)),
          conditional(cycle.chipBreakDistance > 0, "P" + xyzFormat.format(cycle.chipBreakDistance)), //optional P value
          feedOutput.format(F)
        );
      }
      break;
    case "deep-drilling":
      if (dwell > 0) {
        expandCyclePoint(x, y, z);
      } else {
        writeBlock(
          gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(83),
          getCommonCycle(x, y, z, cycle.retract),
          (((cycle.incrementalDepthReduction > 0) ? "I" : "Q") + xyzFormat.format(cycle.incrementalDepth)),
	  conditional(cycle.incrementalDepthReduction > 0, "J" + xyzFormat.format(cycle.incrementalDepthReduction)),
	  conditional(cycle.incrementalDepthReduction > 0, "K" + xyzFormat.format(cycle.minimumIncrementalDepth)),
	  conditional(cycle.chipBreakDistance > 0, "P" + xyzFormat.format(cycle.chipBreakDistance)), //optional P value
          feedOutput.format(F)
        );
      }
      break;

I think it's silly not to support peck reduction, frankly.

6 Comments
Steinwerks
Mentor

Tried to post a program for the Fadal today and realized that chipBreakDistance is only available in the "Chip Breaking - Partial Retract" toolpath so I had to take out this line under Deep-drilling:

 

conditional(cycle.chipBreakDistance > 0, "P" + xyzFormat.format(cycle.chipBreakDistance)), //optional P value

 

It is an option in the Fadal control though for a G83 cycle.

Anonymous
Not applicable

Voted up, even though I stole your code awhile back when you first posted to roll it into my Haas post!

It has worked great so far for me.  

 

This is definitely a valuable addition to the stock post.  Especially when using some parabolic drills where you can hit it with 3xDia on the first peck, then reduce to 1xD for the remainder.  

 

 

AchimN
Community Manager
Status changed to: Accepted
 
Steinwerks
Mentor

Thanks @AchimNSmiley Happy

AchimN
Community Manager
Status changed to: Implemented

Posts are updated into the library.

 

Steinwerks
Mentor

Thanks @AchimN!

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report