If I use the old drilling cycle i get clean code as below (11 lines of code)
G81 G99 X0.0 Y170. Z50. F250. R53.
If however I use the hole making cycle I get the code below for the same set of hole. (146 lines of code instead of 11)
WHAT IS THE BEST WAY TO MAKE THE OUTPUT FOR HOLE MAKING THE SAME AS IT WOULD BE WITH THE OLD DRILLING CYCLE.
I assume I need to changethe post, but whats the best solution?
N11 G98 G81 X0.0 Y170. Z35. F1592. R53.
N12 G00 Z100.
N14 G00 B2.769
N27 G98 G81 X0.0 Y170. Z35. F1592. R53.
N28 G00 Z100.
N30 G00 B38.769
N43 G98 G81 X0.0 Y170. Z35. F1592. R53.
N44 G00 Z100.
N46 G00 B74.769
N59 G98 G81 X0.0 Y170. Z35. F1592. R53.
N60 G00 Z100.
N62 G00 B110.769
N75 G98 G81 X0.0 Y170. Z35. F1592. R53.
N76 G00 Z100.
N78 G00 B146.769
N91 G98 G81 X0.0 Y170. Z35. F1592. R53.
N92 G00 Z100.
N94 G00 B182.769
N107 G98 G81 X0.0 Y170. Z35. F1592. R53.
N108 G00 Z100.
N110 G00 B218.769
N123 G98 G81 X0.0 Y170. Z35. F1592. R53.
N124 G00 Z100.
N126 G00 B254.769
N139 G98 G81 X0.0 Y170. Z35. F1592. R53.
N140 G00 Z100.
N142 G00 B290.769
N155 G98 G81 X0.0 Y170. Z35. F1592. R53.
N156 G00 Z100.
Your operation has cylindrical clearence apparently.
Old drill has only line transfers.
1.So you can set different transfers, somehow - to generate striagth lines.
2.Leave it as it is and avoid multiple B - use import combine rotary custom commands and use it as it is described.
Effect could be significant.
This I would do.
In nc code also I see G80 cycle off event.
If you it is problem for you, you can do this:
-- set operation to generate cycle without cycle off output stuff - if it is possible.
(clearence,transitions, retract output mode - this parameter could be hidden.)
Dont know if it helps.
Or edit postprocesor - I would not do it.
Note that the G0 *probably* cancels the cycle (may depend on exactly what control this machine has), so the G80 is redundant.
Note the G0 Z100. - this is not there on original. I'm not sure what is outputting this, but I would try getting rid of this FIRST, then see if the rest of the stuff just "goes away"
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
There is PB_CMD_combine_rotary in the post builder custom library. This will limit the B output within a tolerance. It will however always put out B180 as that is a limit so these should be after G80. Instructions are in that custom command on how to implement.
There is "MOM_skip_handler_to_event Cycle" but then you will have to check conditions. You could probably put it in a custom command and call it after the cycle line in the common section of cycles. Or after the G80 block in the cycle_off event.
This will skip over the rapids to the next cycle call so perhaps you should check carefully for safety sake e.g. retract to auto, distance etc. Abort with a nice message if the pre-conditions have not been met.
Just two ideas to explore.
Here is the MOM_skip_handler_to_event method I suggested.
It seems to work OK on this simple case.
Attached is pdf with the proof of concept.
BUT I recommend that you set up a UDE the user uses to activate this method only on cylindrical parts with MCS on centre of the rotation of the cylinder. Typically (Mill Turn) B Head C Table type machine or XZC type mill turn.