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:

Adding M339 code in milling post


Columbo™
 Share

Recommended Posts

I am trying to add M339 (thru spindle air) to tools that use thru spindle coolant ONLY with no positive results. banghead.gif

 

I get it to post on all tools (not what I want), is there a way to get it to post ONLY to tools that have the M50 (thru spindle coolant) active? headscratch.gif

 

The machine is a Okuma MA50. If the air does not blast the coolant out we have spindle rust/rot problems. The spindle has been rebuilt three times and the machine is only five years old. curse.gif

 

I hope someone can help, right now I imput this code manually, but it can get missed on very large programs, so I would like it automated. cool.gif

 

 

Thanks in advance

Link to comment
Share on other sites

The problem is with small drill with ID coolant. The pressure is so intense the coolant backs up past the seals in the spindle head and does not disipate, therefore the rust/rot. Also when this happens the 60 Rockwell pins get crushed and the spindle needs to be rebuilt. Th mixture is good and we have tried different coolant to no avail.

Link to comment
Share on other sites

I did it with something like this...

 

first, I made a flag

 

code:

airflag     : 0     #Thru spindle coolant air blast flag

Then, right after your coolant is called up in your toolchange, I added this

code:

      if coolant$ = 3, airflag = 1

and finally, in the pretract section, I added this

code:

      if airflag = 1,

[

pbld, n$, "M331", e$

pbld, n$, "G4 F12.", e$

pbld, n$, "M59", e$

airflag = 0

]

and it works...

Link to comment
Share on other sites

I got it to work when i turned off

 

cool_zmove : no$ #Coolant off with last move

 

 

and added this

 

 

pbld, n$, sccomp, *sm09, *sm05, psub_end_mny, e$

 

if scoolant = sm08_2,

[

pbld, n$, sm339, e$

pbld, n$ "G04", "P10", e$

]

 

When I use coolant$ = 3 I either get nothing or it gets posted to all tools (depending on where I insert it) regardless of m8 or m50.

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...