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:

Coolant Commands


Recommended Posts

So, I'm kinda wondering this:  Is there a way to add another IF statement to the coolant string without setting errors off when posting? Whats happening is we need M50 for thru coolant, yet M09 turns it off, but we need M31 to follow twice after that to blow coolant out of spindle, otherwise it makes a mess since it is a Kuraki and without M31 at tool change coolant gets blown everywhere.

 

Kinda want to convert this:

(T17 .375 LONG CARBIDE THRU COOL DRILL)
N1630 (DRILL .375 THRU TO L SHAPED CHANNELS)
N1640 T17
N1650 M06
N1660 S866 M3
N1670 G0 G90 G54 X.75 Y-2.8438
N1680 G0 G90 W0.
N1690 G43 G0 H17 Z4. T24 M50
N1700 G83 G98 X.75 Y-2.8438 W-10.825 R-4.6 Q.5625 F4.
N1710 X.75 Y2.8438
N1720 G80
N1730 M9
N1740 G0 G91 G30 Z0. W0. M19
N1750 G0 G91 G30 Y0.
N1760 M30

into this:

(T17 .375 LONG CARBIDE THRU COOL DRILL)
N1630 (DRILL .375 THRU TO L SHAPED CHANNELS)
N1640 T17
N1650 M06
N1660 S866 M3
N1670 G0 G90 G54 X.75 Y-2.8438
N1680 G0 G90 W0.
N1690 G43 G0 H17 Z4. T24 M50
N1700 G83 G98 X.75 Y-2.8438 W-10.825 R-4.6 Q.5625 F4.
N1710 X.75 Y2.8438
N1720 G80
N1730 M9
N1732 M31
N1734 M31
N1740 G0 G91 G30 Z0. W0. M19
N1750 G0 G91 G30 Y0.
N1760 M30

Any ideas?

 

This is what I have now for coolant code:

      if coolant$ <> 0 & coolant$ <> sav_coolant & sav_coolant, pbld, n$, sm09, e$
      pbld, n$, scoolant, e$
      sav_coolant = coolant$
      if coolant$ = 1, sm09 = sm09_0
      if coolant$ = 2, sm09 = sm09_1
      if coolant$ = 3, sm09 = sm09_2
      if op_id$ <> last_op_id, pstock
      if sav_mi9 = 1, workofs$ = sav_workofs

-JD

Link to comment
Share on other sites

I'm a little lazy sometimes for stuff like this that has to happen at every tool change.  If there is no harm in firing two M31s without running thru-coolant I would probably just hard code that in my pretract so I didn't have to mess with my coolant strings select.

Link to comment
Share on other sites
On ‎11‎/‎21‎/‎2018 at 9:49 AM, So not a Guru said:

What does your coolant string table look like?

The one in mastercam or the post file?  If the post file, what do I need to look for?

On ‎11‎/‎21‎/‎2018 at 9:58 AM, nickbe10 said:

Are you using V9 coolant?

Yes.  Every tool we have is setup in V9.  The question I have to ask: is there an easier way than going thru each individual tool to change the coolant style from V9 to the newer table?

On ‎11‎/‎21‎/‎2018 at 7:16 PM, jlw™ said:

I'm a little lazy sometimes for stuff like this that has to happen at every tool change.  If there is no harm in firing two M31s without running thru-coolant I would probably just hard code that in my pretract so I didn't have to mess with my coolant strings select.

I figured someone might say that, for the time being, we've been adding the code manually.  It's just a matter of remembering to code it M31 after M09

Link to comment
Share on other sites
1 hour ago, JeremyV said:

I figured someone might say that, for the time being, we've been adding the code manually. 

Converting to coolant in it's self is not difficult.

However along with the extra control (i.e. before, with and after functionality for example) you do need to give the system the extra information required.

The tools aren't set up for V9 only as the choice between Coolantx and V9 is in the post and MD. So once you make the necessary modifications to these you are done, no need to do anything to the tools.

There have been several threads on converting.

  • Thanks 1
Link to comment
Share on other sites
  • 4 weeks later...
On ‎11‎/‎26‎/‎2018 at 10:37 AM, nickbe10 said:

Converting to coolant in it's self is not difficult.

However along with the extra control (i.e. before, with and after functionality for example) you do need to give the system the extra information required.

The tools aren't set up for V9 only as the choice between Coolantx and V9 is in the post and MD. So once you make the necessary modifications to these you are done, no need to do anything to the tools.

There have been several threads on converting.

Well - did some playing around with the custom tools...

 

as is if left alone, M08 starts immediately before turning the spindle on:

 

(T3 = 3/8 .375 90 DEG SPOT DRILL )
N40 (SPOT .10 HOLE)
N45 M08
N50 G00 G91 G28 Z0.
N60 G00 G91 G28 Y0.
N70 T3
N80 M6
N90 S1528 M03
N100 G00 G54 G90 X1. Y0.
N110 G43 H3 Z4.

So, that is not where I want the M08 to start at.  I changed the string to include "with" and it placed it at the end of the G54 string.  Then I added "After" and the M08 showed up after the G43 string, which is where I want it.  With that being said, I would have to change every tool we have - which is why we use the V9 option since it is much more simpler.

 

With that being said, is there a way to modify every tool's coolant option in one click - as in do it once and be done without having to click at least a thousand times?

Link to comment
Share on other sites
  • 2 weeks later...
On 12/20/2018 at 9:16 AM, JeremyV said:

With that being said, is there a way to modify every tool's coolant option in one click - as in do it once and be done without having to click at least a thousand times?

You can select all of your operations, right-click in the toolpath manager, select edit common parameters and set your coolant.

Link to comment
Share on other sites
14 hours ago, So not a Guru said:

You can select all of your operations, right-click in the toolpath manager, select edit common parameters and set your coolant.

Well, not quite what I meant to ask.

The question was more directed at the tool library itself - as in edit coolant there and be done in one click, not the operations.

Link to comment
Share on other sites
3 hours ago, Roger Peterson said:

If you want to output multiple M codes on separate lines define it like this:

sm09 : "M09" + no2asc(13) + "M31" + no2asc(13) + "M31"

ASCII character 13 is a carriage return

Well now that's a handy little tidbit.

  • Like 1
  • Haha 1
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...