Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

How to set-up a post to support new coolant options?


Jeff2005
 Share

Recommended Posts

If you lookk through the post and find this section

 

code:

# Coolant M code selection

sm09 M09 #Coolant Off (Use sm09_0 through sm09_2)

sm08 M08 #Coolant Flood

sm08_1 M07 #Coolant Mist

sm08_2 M08 #Coolant Tool

sm09_0 M09 #Coolant Flood Off

sm09_1 M09 #Coolant Mist Off

sm09_2 M09 #Coolant Tool Off

scoolant #Target for string

You can change sm08_1 and sm09_1 to the Mcodes you need and then you can go into your machine def >> general parameter setting >> colland tab and change you names to output your option name so you can see which one you choose.

 

As always back up you post before making any changes

Link to comment
Share on other sites

Ok the code that I have is not an M code it is a code that is used in the Haas machine but I would like it to be an option in my tool parameters if possible. #1119= 1 turns thru the spindle air on, and #1119= 0 turns it off. I am not sure how to get around the (#) sign.

Link to comment
Share on other sites

Well you can output the # sign by using the ascii equivalent

 

35

 

pbld, n$, 35, no_spc, 1119, 61, "0", e$

 

You could use and mr variable to get the 0 or 1 value into the post.

 

BTW Jeff, the real question is completely different from the one you asked smile.gif

Link to comment
Share on other sites

Jeff,

 

What does your code need to look like, where and when will you need it to output, will you need it in lieu of M08?

 

I can think of several ways to do this but knowing exactly what you need will help nail down the specifics.

Link to comment
Share on other sites

If anyone else should happen to need this same fix/modification.

 

I modified the standard coolant call on the G43 line to this

 

code:

[if mr1$ = 0, scoolant]

then I added this for a variable call

code:

if mr1$ = 1,                                                   # ADDED THRU SPINDLE COLLANT OPTION USING MR1

[ # ALSO ADDED IF STATEMENT TO SCOOLANT CALL ON G43 LINE

pbld, n$, pbld, 35, no_spc$, "1119", no_spc$, 61, "1", e$ # ADDED 7/24/2007 - J.PARIS

sav_mr1 = mr1$

]

and to turn it off I did just the opposite in the pretract.

Link to comment
Share on other sites

All,

 

Please also note that if using "X style" coolant you can actually type in the type and the M codes (or other text) for on and off. Do this in the general machine params for any one of the In-House Mpmaster based posts. This way custom stuff can be controlled just as other coolant is and you can use multiple coolants at once.

 

Brett

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...