Community
Does this look right? I want to add incremental depth reduction to the Haas post.
case "deep-drilling": if (cycle.incrementalDepthReduction != 0 && cycle.minimumIncrementalDepth != 0) { writeBlock( gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(83), getCommonCycle(x, y, z, cycle.retract), "I" + xyzFormat.format(cycle.incrementalDepth), "J" + xyzFormat.format(cycle.incrementalDepthReduction), "K" + xyzFormat.format(cycle.minimumIncrementalDepth), "P" + milliFormat.format(P), // not optional feedOutput.format(F) ); } else { writeBlock( gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(83), getCommonCycle(x, y, z, cycle.retract), "Q" + xyzFormat.format(cycle.incrementalDepth), "P" + milliFormat.format(P), // not optional feedOutput.format(F) ); } break;
Solved! Go to Solution.
Solved by Steinwerks. Go to Solution.
I did this a while ago and it still hasn't been implemented in the generic post, despite being a really easy fix (one would think): http://forums.autodesk.com/t5/hsm-ideas/add-ijk-drilling-support-to-posts/idi-p/6614863
This is my code for IJK support:
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;
Can't find what you're looking for? Ask the community or share your knowledge.