Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add Comment to end of each operation in post

Message 1 of 3
217 Views, 2 Replies

Add Comment to end of each operation in post

I'm trying to edit my post to where the opening of each operation includes "(OPS)" (figured that out relatively easliy) and the end of each operation is "(OPE)".


I am assuming a simple writeComment("(OPE)"); will do. I just can't seem to figure out where to place it.

Message 2 of 3
in reply to: justinp4CQKH

Which post processor are you using?
In general, it will be around the "onSectionEnd" area.

Have you tried the Visual Studio Code addin that we made? This makes it super easy to jump to the related area of the code, quite interactive with the g-code. It's really nice for tasks such as this

Seth Madore
Customer Advocacy Manager - Manufacturing
Message 3 of 3
in reply to: seth.madore

Thanks for the response.

I am using the Visual Studio Code plug-in (and it really is helpful being able to debug while you're editing). And I think I'm just using the standard 2d haas post processor. But I'll need to be able to add this to any Haas post.

But the problem I'm coming across by just placing it in the onSectionEnd is it's not encapsulating the retract moves and other end of op codes for the next operation.


For example:

(OPS 2D-Face)
N25 T1 G33
N30 S5000 M3
N35 G17 G90 G94
N40 G54
N45 M8
N50 G1 X3.1496 Y-0.9596 F650.
N55 G0 G43 Z0.5906 H1
N60 T2
N65 G0 Z0.1969
N70 G1 Z-0.0394 F39.37
N75 X-3.1496
N80 G2 Y0.0374 I0. J0.4985
N85 G1 X3.1496
N90 G0 Z0.5906
N95 M9
N100 M5
N105 G53 G0 Z0.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report