Adding a block delete to haas post.

Adding a block delete to haas post.

ELAFING
Advocate Advocate
1,388 Views
8 Replies
Message 1 of 9

Adding a block delete to haas post.

ELAFING
Advocate
Advocate

Adding a block delete to haas post.

 

I want the coolant line to post as

/M8.

instead of 

M8

when I simply add the / to the post it errors out.

 

0 Likes
Accepted solutions (2)
1,389 Views
8 Replies
Replies (8)
Message 2 of 9

Chetan.Bankar
Alumni
Alumni

Hi @ELAFING,

 

Thanks for raising your query onto Autodesk forum.

 

If I understand your query correctly it seems that you wish to avoid coolant code to output in the output G-code file?  If yes, then I will suggest setting the coolant to Disabled in the toolpath while generating. This will avoid generating M08 to be output in the G-code for that toolpath.

 

I hope this answers your query.

 

Thanks and Regards,


Chetan Bankar
Global Product Support
Submitting & Viewing Support Requests | Web Support | Phone Support
0 Likes
Message 3 of 9

ELAFING
Advocate
Advocate

I want the coolant line to post. 

With the haas control there is a block delete button on the control panel. Any blocks with "/" get skipped when the option is enabled. During dry runs I will enable it so coolant doesn't turn on. Then I disable it for actual runs. 

I hope this clarifies what I am looking for.

0 Likes
Message 4 of 9

seth.madore
Community Manager
Community Manager

What post/machine do you have; Pre-NGC or NGC?


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 5 of 9

ELAFING
Advocate
Advocate

Pre

0 Likes
Message 6 of 9

ELAFING
Advocate
Advocate

Haas post, Pre-NGC

0 Likes
Message 7 of 9

seth.madore
Community Manager
Community Manager
Accepted solution

Roger that. Sorry for the delay. There were some changes to the post syntax which made seemingly simple tasks such as adding a "/" a bit more complex.

Here's what you need to do:

1) Open up the Generic (OEM) Post Processor and do a "Save As". Save it to a local folder, not the Generic post library.

2) Go to line 2676 which should read: writeBlock(coolantCodes[c]);

3) Change that to: writeBlock(conditional((coolant != COOLANT_OFF), "/"), coolantCodes[c]);

 

Save.

Post.

Have Fun 🙂


Seth Madore
Customer Advocacy Manager - Manufacturing


Message 8 of 9

zwelsh91
Advocate
Advocate
Accepted solution

I have attached a post for early pre NGC HAAS, that I have edited for my 1990 VF-1. It has the block delete character where you want it.

 

Zak Welsh
Zakary Welsh Machine LLC
Message 9 of 9

ELAFING
Advocate
Advocate

Thank you both very much. Have a great day and I appreciate this community and all the help you provide. 

0 Likes