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:

threw spindle coolent


kamman25
 Share

Recommended Posts

quote:

and you cant put the M89 in while the program is running can you?

Why not? Put the control in MDI and enter the M code. Use your M88 to turn it back on... Again, I don't have a Hass, but it couldn't be that different. Could it???

Link to comment
Share on other sites

Ok do this then use the /M89 in the null toolchange part of the post. Then when you want to turn off the coolant you just turn on the block skip function / and then you hit the feed hold when you get to a point you want. If you want to get fancy then you could create a G00 Z10. move becuase this would problay come out every where the Z moves changes and if you did it right then it would be on a move up anyway. Just my humbel opinion on a way you might be able to apporach this.

 

HTH just not sure if the HAAS machines have block skip any more or not have not needed this for years.

Link to comment
Share on other sites

i agree with robk, just stop the spindle swithch machine to mdi mode turn coolant off then back on after indexing,swithch back to run mode and wahlah.on the fanuc controls i have i have actully wrote down x,y,z locations put machine in handle mode moved it around ,dialed back to my location and started where i left off.

trevor

 

 

edit: just dont hit reset biggrin.gif

Link to comment
Share on other sites

Ok here we go and bare with me on the length on this one. This is taken from MPMASTER.

 

Use this informtaion at your own risk. As with any post Mod always make a back up before starting.

 

I am going to try to teach you MIRC use here. Frist thing is that you need to create a varaible for what you wnat the post to read so I created pspindlecoolant I then need to think about where I want it to post out. If you put this is the right place like I said earlier then you get this code every where you want. Now I have given you 2 opitions in what I am going to show you that is all the time or operation changes. I did not do a M00 here becuse eah machine is different but on most with a M00 you need a spinlde speed direction to get that to work again. I just figured operator could hit slide hold. You can add these to the post with no problem I just chose not to for this example.

 

Here is the text Section of the post:

code:

[misc integers]

1. ""

2. "Abs/Inc, top level [0=ABS,1=INC]"

3. "Thru Spindle [0=NO,1=ALL,2=OPS]"

4. "Index Maunanlly A axis[0=NO,1=YES]"

5. "Index Maunanlly B axis[0=NO,1=YES]"

6. ""

7. ""

8. ""

9. "Lock on First WCS [0=No,1=Yes]"

10. "M00 before operation [0=No,1=Yes]"

Then here is the pspindlecoolant section from the post:

code:

pspindlecoolant # Add /M89 ThRu tHe SpiNdLe to OperaTion

if mi3 = 1,

[

pbld, "/M89", "(THRU SPINDLE COOLANT OFF)", e

pbld, "/G00 Z10.", "(CLEARANCE MOVE TO CHANGE INSERTS)", e

pbld, "/M88", "(THRU SPINDLE COOLANT ON)", e

]

Now here come the call trick:

code:

 ptlchg0         #Call from NCI null tool change (tool number repeats)

pcuttype

if mi4 = 1 & op_id<>last_op_id | (tlplnno <> prvtp & ret_on_indx), pindexman

if mi5 = 1 & op_id<>last_op_id | (tlplnno <> prvtp & ret_on_indx), pindexmanb

if mi3 = 2 & op_id<>last_op_id | (tlplnno <> prvtp & ret_on_indx), pspindlecoolant

~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~

code removed to save space

~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~

last line of this section

pspindlecoolant

Now you have the ability to do this 2 different ways and get these results:

code:

%

O0999 (SPINDLE COOLANT)

(MC8 FILE LOCATION - T)

(PROGRAM LOCATION - C:MCAM9MILLNCSPINDLE COOLANT.NC)

(DATE - JUN-04-04)

(TIME - 21:51)

(T235 | 1/4 FLAT ENDMILL | H235 | D235 | D0.2500" | | CONTOUR....)

G00 G17 G20 G40 G49 G80 G90

(1ST OP)

T235 M06 (1/4 FLAT ENDMILL)

(MAX | Z.25)

(MIN | Z-1.)

M60

A200.

M61

G00 G90 E20 X0. Y.125 S2139 M03

H235 Z.25 M08

G4 P2000

G8

Z.1

G01 Z-.1 F6.42

X3.0579

G00 Z.25

X0.

Z0.

/M89 (THRU SPINDLE COOLANT OFF)

/G00 Z10. (CLEARANCE MOVE TO CHANGE INSERTS)

/M88 (THRU SPINDLE COOLANT ON)

G01 Z-.2

X3.0579

G00 Z.25

X0.

Z-.1

/M89 (THRU SPINDLE COOLANT OFF)

/G00 Z10. (CLEARANCE MOVE TO CHANGE INSERTS)

/M88 (THRU SPINDLE COOLANT ON)

G01 Z-.3

X3.0579

G00 Z.25

M60

A100.

M61

/M89 (THRU SPINDLE COOLANT OFF)

/G00 Z10. (CLEARANCE MOVE TO CHANGE INSERTS)

/M88 (THRU SPINDLE COOLANT ON)

(2ND OP)

X0.

Z.1

G01 Z-.1

X3.0579

G00 Z.25

X0.

Z0.

G01 Z-.2

X3.0579

G00 Z.25

X0.

Z-.1

G01 Z-.3

X3.0579

G00 Z.25

M60

A100.

M61

/M89 (THRU SPINDLE COOLANT OFF)

/G00 Z10. (CLEARANCE MOVE TO CHANGE INSERTS)

/M88 (THRU SPINDLE COOLANT ON)

(3RD OP)

X0.

Z.1

G01 Z-.1

X3.0579

G00 Z.25

X0.

Z0.

G01 Z-.2

X3.0579

G00 Z.25

X0.

Z-.1

G01 Z-.3

X3.0579

G00 Z.25

X0.

Z-.2

G01 Z-.4

X3.0579

G00 Z.25

X0.

Z-.3

G01 Z-.5

X3.0579

G00 Z.25

X0.

Z-.4

G01 Z-.6

X3.0579

G00 Z.25

X0.

Z-.5

G01 Z-.7

X3.0579

G00 Z.25

X0.

Z-.6

G01 Z-.8

X3.0579

G00 Z.25

X0.

Z-.7

G01 Z-.9

X3.0579

G00 Z.25

X0.

Z-.8

G01 Z-1.

X3.0579

G00 Z.25

M60

A100.

M61

/M89 (THRU SPINDLE COOLANT OFF)

/G00 Z10. (CLEARANCE MOVE TO CHANGE INSERTS)

/M88 (THRU SPINDLE COOLANT ON)

(4TH OP)

X0.

Z.1

G01 Z-.1

X3.0579

G00 Z.25

X0.

Z0.

G01 Z-.2

X3.0579

G00 Z.25

X0.

Z-.1

G01 Z-.3

X3.0579

G00 Z.25

X0.

Z-.2

G01 Z-.4

X3.0579

G00 Z.25

X0.

Z-.3

G01 Z-.5

X3.0579

G00 Z.25

X0.

Z-.4

G01 Z-.6

X3.0579

G00 Z.25

X0.

Z-.5

G01 Z-.7

X3.0579

G00 Z.25

X0.

Z-.6

G01 Z-.8

X3.0579

G00 Z.25

X0.

Z-.7

G01 Z-.9

X3.0579

G00 Z.25

X0.

Z-.8

G01 Z-1.

X3.0579

G00 Z.25

G91 G28 Z0.

M02

%


The first op is 3 cuts with the frist opition the 2nd, 3rd and 4th op are the second opition to only get it at the beginning of the operation. Sorry for the length.

 

HTH There is problay a better way but in my humble opinion this might just work.

 

OH in case you are wondering about the index moves they are from my MISC also.

Link to comment
Share on other sites

One correction to this part:

code:

pspindlecoolant # Add /M89 ThRu tHe SpiNdLe to OperaTion

if mi3 = 1,

[

if mi3 = 2 & op_id<>last_op_id | (tlplnno <> prvtp & ret_on_indx), pspindlecoolant

pbld, "/M89", "(THRU SPINDLE COOLANT OFF)", e

pbld, "/G00 Z10.", "(CLEARANCE MOVE TO CHANGE INSERTS)", e

pbld, "/M88", "(THRU SPINDLE COOLANT ON)", e

]


HTH

Link to comment
Share on other sites

thanks Millman i will try editing the post monday. being a standard post worst that can happen is i screw it up and have to reload right?i,ll try it out with no die on the table though idea.gif been using MC for 14 years now but never had to mess with the post. i guess its time to learn. curse.gif . thanks again

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