M998 is a standard Mcode... standard as in it is a macro... Mxxx through Myyy are all standard macro's (not sure where xxx starts or yyy ends... but still they are standardish, in a none standard way ") )
as far as cambam Post Processors go, I think I got it... and in the first try (assuming you don't count the minor oops type stuff)...
seems to work... calls m998 for tool changes (when the tool actually changes) and does G43
always turns on/off coolant though.... m8/m9 is hard coded... not sure how to trigger that from within cambam?
min arc length is now 0.0008" (less than 0.0008" it will forget about an arc and just go in a straight line...) not sure if I can go smaller before Path Pilot starts to complain or not... 0.0008 seems pretty small... not sure I will ever bother tweaking or not? but on a operation that Path Pilot complained about 100's of arc's it no longer complains about anything...
Code:
M09
( Pocket1 )
M998
( T6 : 0.125 )
T6 G43 H6 M6
S5100 M3
M08
G0 X-0.2675 Y0.0025
G0 Z0.0625
G0 Z0.125
M09
M5
M30
M998
Lots of thanks go to P.Fink and Twocik... my butchered CamBam Post processor is based on P.Fink's original mach post, and Twocik for point it out to me... and to CNCZone for being my file backup and not letting post processor files disappear despite evil hard drives that like to crash and burn...
its attached foranyone who cares... just remember, there is no guarantee, no warranty, use at your own risk, your mileage may vary, don't eat the yellow snow...