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:

post processor modification - coolant


Bob W.
 Share

Recommended Posts

How would I modify my post to shut off the coolant before the spindle retracts (in Z) for a tool change or at the end of a program? Currently the spindle retracts and shuts off the coolant just before the tool change. It retains a little residual pressure during the tool change. My mill is a Haas VF2.

 

Thanks,

Bob

Link to comment
Share on other sites

That appears to post it as it has been. Here is an example:

 

N1930 G1 G40 X.0371 Y.1923

N1940 Z-.3724 F50.

N1950 G0 Z.1

N1960 M5

N1970 G91 G28 Z0. M9

N1980 M01

( 0.375" - .06R BULL MILL TOOL - 4 DIA. OFF. - 4 LEN. - 4 DIA. - .375 )

N1990 T4 M6

 

This is how I would like it to be:

 

N1930 G1 G40 X.0371 Y.1923

N1940 Z-.3724 F50.

N1950 G0 Z.1

N1960 M5 M9

N1970 G91 G28 Z0.

N1980 M01

( 0.375" - .06R BULL MILL TOOL - 4 DIA. OFF. - 4 LEN. - 4 DIA. - .375 )

N1990 T4 M6

 

The way it currently works is it shuts off the coolant when the spindle reaches Z0. and I would like the coolant cut before it begins retracting to Z0. Can this be done?

 

Thanks,

Bob

Link to comment
Share on other sites

quote:

Can this be done

yes

 

find this

pretract #End of tool path, toolchange

sav_absinc = absinc

absinc = one

sav_coolant = coolant

coolant = zero

#cc_pos is reset in the toolchange here

cc_pos = zero

gcode = zero

pcan

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

pcan1, pbld, n, sgabsinc, sgcode, "G28", "Z0.", scoolant, strcantext, e

 

and move "scoolant" up to the line above it.

put it next to *sm05

 

this was cut from an old V9 mpmaster post

an X post will have variables ending with $ signs

so it will look a little different.

 

Some machines will alarm out with 2 M codes on the same line. Its been 6 yeras since I ran a

Haas. I think a Haas will accept 2 M codes on one line but I'm not sure.

If it won't you'll have to do something like this

 

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

pbld, n, scoolant, e

Link to comment
Share on other sites

Okay, so the Haas will not accept multipls Mcodes in one line of code so I added the following:

 

pbld, n$, scoolant, e$

 

This adds the M9 after each M5 throughout the program except at the end. How would I go about altering the coolant at the end of the program when the machine goes to the home position?

 

Thanks for all the help.

Bob

Link to comment
Share on other sites

quote:

How would I go about altering the coolant at the end of the program when the machine goes to the home position

it should all ready be fixed

the first line of

peof #End of file for non-zero tool

 

is

pretract

which calls up the entire retact

definition you jut edited

Link to comment
Share on other sites

Here is my peof code:

 

peof$ #End of file for non-zero tool

 

#pretract

comment$

#Remove pound character to output first tool with staged tools

#if stagetool = one, pbld, n, *first_tool, e

n$, "M5", e$

n$, "G53 G90 G0 Z0. X-24. Y0. M9 (LOAD UNLOAD POSITION)", e$

n$, "M30", e$

mergesub$

clearsub$

mergeaux$

clearaux$

"%", e$

 

Is there a good reason why the pretract would be turned off?

 

Thanks,

Bob

Link to comment
Share on other sites

Okay, I think I am getting the hang of this by trial and error :-) Here is my modified peof:

 

peof$ #End of file for non-zero tool

 

pretract

comment$

#Remove pound character to output first tool with staged tools

#if stagetool = one, pbld, n, *first_tool, e

#n$, "M5", e$

n$, "G53 G90 G0 X-24. Y0. (LOAD UNLOAD POSITION)", e$

n$, "M30", e$

mergesub$

clearsub$

mergeaux$

clearaux$

"%", e$

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