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

hurco post mod help .

Could someone help with getting the drilling chip brake cycle to output g1 moves and not caned cycle . I have it done with my flashcut post but this is more complicated because of the switch between isnc and bnc posting . with simple post it is just commenting out the wright block but with the hurco post it doesn't work  ,It just errors out 

George-Roberts
in reply to: Anonymous

I believe you can just change the cycle to this in the post..:

 

   case "chip-breaking":
        expandCyclePoint(x, y, z);
      break;

 

 

Anonymous
in reply to: George-Roberts

This is what it what I have  , I am running bnc mode so I commented out ((cycle.accumulatedDepth < cycle.depth) || (P > 0)) and wright block . I keep getting errors.  

 

break;
case "chip-breaking":
if ((cycle.accumulatedDepth < cycle.depth) || (P > 0)) {
expandCyclePoint(x, y, z);
} else {
if (properties.isnc) {
writeBlock(
gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(73),
getCommonCycle(x, y, z, cycle.retract),
"Q" + xyzFormat.format(cycle.incrementalDepth),
feedOutput.format(F)
);
} else { // BNC mode
writeBlock(
gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format(73),
getCommonCycle(x, y, cycle.clearance - cycle.bottom, zOutput.getCurrent() - cycle.retract),
"Q" + xyzFormat.format(cycle.incrementalDepth),
feedOutput.format(F)
);
}
}
break;

 

 

 

George-Roberts
in reply to: Anonymous

just change the line

 

if ((cycle.accumulatedDepth < cycle.depth) || (P > 0)) {

 

to

 

if (true) {

 

and that will expand the cycle to G1 moves

Anonymous
in reply to: George-Roberts

Thank you George !!!! java post programming is so not my strong point !

 

Tony 

George-Roberts
in reply to: Anonymous

Awesome :)! Good luck