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:

Another post tweak


Lumpnut
 Share

Recommended Posts

Hey everyone,

 

I've been trying to tweak my post to turn off the coolant sooner. Been at it for awhile with no luck. Here's what the code looks like now

 

N53 G0 Z.1

N54 M5

N55 G49 Z.1

N56 G91 G28 Z0. M9

N57 G28Y0.

N58 M30

%

 

And here's what I'd like....

 

N53 G0 Z.1 M9

N54 M5

N55 G49 Z.1

N56 G91 G28 Z0.

N57 G28Y0.

N58 M30

%

 

It's a slightly modified Mpfan post if that helps. I've backed up the post also. Any help would be greatly appreciated.

 

NuNu teh postizzle aint editizzle wurth shiznet. biggrin.gif

Link to comment
Share on other sites

Thanks for the qick replies fellas.

 

I've tried placing "scoolant" in different lines in pretract, posted a file , and hasn't worked yet. I must be missing something.

banghead.gif

 

from the post :

 

pretract #End of tool path, toolchange

sav_absinc = absinc

sav_coolant = coolant

coolant = zero

#cc_pos is reset in the toolchange here

cc_pos = zero

gcode = zero

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

absinc = zero

pbld, n, sgabsinc, "G49", pfzout, e

absinc = one

pbld, n, sgabsinc, sgcode, *sg28ref, "Z0.",scoolant, e

# pbld, n, *sg28ref, "X0.", "Y0.", protretinc, e

absinc = sav_absinc

coolant = sav_coolant

Link to comment
Share on other sites

would you accept;

code:

N52 G0 Z.1

N53 M9

N54 M5

N55 G49 Z.1

N56 G91 G28 Z0.

N57 G28Y0.

N58 M30

%

To do this;

code:

pretract #End of tool path, toolchange 

sav_absinc = absinc

sav_coolant = coolant

coolant = zero

#cc_pos is reset in the toolchange here

cc_pos = zero

gcode = zero

pbld, n, scoolant, e# <<<<<<<<<<<<<<<<<<<<<add this line

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

absinc = zero

pbld, n, sgabsinc, "G49", pfzout, e

absinc = one

pbld, n, sgabsinc, sgcode, *sg28ref, "Z0.", e# <<<<<<<<<<<<<< remove "scoolant,"

# pbld, n, *sg28ref, "X0.", "Y0.", protretinc, e

absinc = sav_absinc

coolant = sav_coolant

Link to comment
Share on other sites

Thanks Guys! cheers.gif

 

Here's how it posts now..........

 

N53 G0 Z.1

N54 M9

N55 M5

N56 G49 Z.1

N57 G91 G28 Z0.

N58 G28Y0.

N59 M30

%

 

Which is fine by me. We have the fabulous umbrella style tool changer so I'm just trying to avoid coolant gettin sprayed in there.

 

Just outta curiousity , how would you get the M9 up to the GO Z.1 line ?

 

Thanks again for your time. cheers.gif

Link to comment
Share on other sites

There is no one simple way to move it to a motion line like you want. There are plenty of ways to get it to do that, but not one simple switch.

 

You could use Canned Text to do it. Canned text allows you to pick a point on the toolpath to apply some event. Problem is canned text isn't available in all toolpaths.

 

You could add logic to check the next gcode being called and try to trap the toolchange sections and then make a call to a postblock that sets coolant to zero and then outputs scoolant.

 

Or you could.... I think you get the picture. I'll try to dig up some samples and post them.

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