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:

M09 Turn Off Coolant Sooner


Recommended Posts

What is the best way to alter the Generic Fanuc post to turn off the coolant on the same line as the retract to Clearance Plane at the end of a tool cycle?

 

 

 

%

O1234

( T1 | 1/2 FLAT ENDMILL | H1 | DIA. - .5 )

G00 G17 G20 G90

G40 G49 G80

N100 T1 M6 ( 1/2 FLAT ENDMILL | DIA. - .5 )

G00 G90 G54 X.125 Y-.5 S1069 M03

G43 H1 Z2.5 M08

Z.2

G01 Z-2. F6.4

Y-.375

G03 X0. Y-.25 I-.125 J0.

G01 X-1.

G03 X-1.125 Y-.375 I0. J-.125

G01 Y-.5

Z.2

G00 Z2.5

M05

G91 G28 Z0. M09 (Original Location)

G28 Y0.

M30

%

 

 

%

O1234

( T1 | 1/2 FLAT ENDMILL | H1 | DIA. - .5 )

G00 G17 G20 G90

G40 G49 G80

N100 T1 M6 ( 1/2 FLAT ENDMILL | DIA. - .5 )

G00 G90 G54 X.125 Y-.5 S1069 M03

G43 H1 Z2.5 M08

Z.2

G01 Z-2. F6.4

Y-.375

G03 X0. Y-.25 I-.125 J0.

G01 X-1.

G03 X-1.125 Y-.375 I0. J-.125

G01 Y-.5

Z.2

G00 Z2.5 M09 (Desired Location)

M05

G91 G28 Z0.

G28 Y0.

M30

%

Link to comment
Share on other sites

I dont think you can place it directly there as it would involve the pzout variable and it might output a coolant code on every line there is a Z, however I placed it next to the M05 which is the line right below what you wanted and this is on a separate block.

pbld, n$, sccomp, *sm05, scoolant, psub_end_mny, e$ <------- added scoolant here

The code looks like

N124 Z.2
N126 G0 Z.25
N128 M5 M9 <-----M9 before the move home !
N130 G91 G28 Z0.
N132 A0.
N134 M01

Link to comment
Share on other sites
Guest SAIPEM

I dont think you can place it directly there as it would involve the pzout variable and it might output a coolant code on every line there is a Z, however I placed it next to the M05 which is the line right below what you wanted and this is on a separate block.

pbld, n$, sccomp, *sm05, scoolant, psub_end_mny, e$ <------- added scoolant here

The code looks like

N124 Z.2
N126 G0 Z.25
N128 M5 M9 <-----M9 before the move home !
N130 G91 G28 Z0.
N132 A0.
N134 M01

 

There are a good number of CNC systems that don't allow more than one M-code on the same line.

Double check.

 

For machines with under-powered coolant pumps I've created an M09 custom M-Code alias

that has a 1 or 2 sec dwell to ensure the coolant is off on the return home.

I do the same in reverse for the M08 to make sure the tool has a sufficient coolant wash

as it begins the operation.

Link to comment
Share on other sites

The MPMaster Post Processor outputs the code where we need it. I'll look into how they're doing it tomorrow and see if the code can be added to the Fanuc post. Having (2) M codes on 1 line was a concern of mine. I'll double check our machine manuals and see if it's supported.

Link to comment
Share on other sites

I hardcoded an M09 into the pretract postblock. Doesn't hurt a thing.

Find the line Greyman shows (below) and add this line just above it.

pbld, n$, "M09", e$

 

pbld, n$, sccomp, *sm05, scoolant, psub_end_mny, e$ <------- added scoolant here

 

 

You may also want to add that line to the null toolchange retract postblock as well. (pretract0)

Problem solved and forgotten about in less that a minute!

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