How to prevent G81 crashes from incorrect plane setting (G18 / G19)
The other day my (HAAS) machine crashed doing a G81 canned drill cycle. I'm not sure how to fix it, but I can't be the first to run into this issue. Hopefully one of you can suggest a reliable way to fix this.
Here is what happened: I had a G19 in the program which changed to the YZ plane. But there were no circular movements in XY before the G81, so the post processor never added in a G17 code to change back to the XY plane. When the G81 was called, the drill cycle happened in the YZ plane instead of XY, which crashed the drill. Later, there was a circular movement, so the G17 code showed up there, but it was too late for my drill cycle.
So apparently, the post processor doesn't realize that canned cycles are affected by the active plane. Is there a checkbox for this somewhere? Is there some better way to address this problem?
Thanks for any help!

