Well...that may be my answer. I've just been using all the defaults for the post processor.
I'm actually using Autodesk Inventor HSM.
But other files from that post processor, which have the same code at the end work just fine (also tried the mach3mill.cps).
In that first file I attached there is something in the "main body" of code (the 2D Adaptive section) that is throwing the monkey wrench into the works. if its not G91, then what? By the way, there is a G91 up at the very top of the file as well. and all the G91's have a G90 immediately after to reset back to absolute.
I took that exact file, and just replaced all the adaptive paths with a simple square...left all the stuff at the beginning and end the same (including those damn G91's) and it works just fine.
I also took that original file I sent, and removed all the G91's...guess what, it still does the same thing and will not run a second time.
I really dont get it, but I may be sneaking up on it.
I dont have a "clearance heights" option in my post proc dialog box (mach4mill.cps), but there is a "G28 safe retracts" option. If I turn that off, I get the same code you had. But I want it to return to my home position though. So looks like I need to now learn how to edit post processors.
I'm starting to get why people badmouth Mach...this isnt the first issue. And other hicups have damaged parts and tools.
But I'll keep at it for awhile still.
Thanx again for trying to help, but I seriously think this is a bug somewhere.