Closed lutorm closed 3 years ago
Yes, M9 is used as an end of operation marker.
I was unable to reproduce this using the tinyg.cps post that comes with Fusion 360. When I turned off coolant, it did not add any new M9 commands, it just left off the M8 at the beginning. Is that the post processor you're using?
I have a forked version with some changes. Maybe they've updated the one supplied with F360. Let me try porting my changes over.
The latest version allows you to specify exactly which G-codes mark the end of an operation. You can remove M9 from the list if they occur in the middle of the program.
I've been using this plugin successfully with Personal Edition for a while, but recently I ran into an issue: I had several drill operations which used disabled coolant (M9). When these were combined, everything past the M9 was deleted. I assume that the M9 is used as part of some heuristic for when an operation is over?
I created a quick example. This is the result of the single-operation post:
But when combined with subsequent, similar, drill op, what results is this:
Note that all that remains of the "drill2", with tool 2, is the preamble up to where it would assert the coolant is disabled, then it goes directly into the second drill with tool 3.
(Incidentally, the leading comments containing the operation name are also stripped out when the ops are combined. This is suboptimal because those comments are very useful for finding locations in the g-code. Is there a way to keep them?)