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:

Mpmaster post question


gms1
 Share

Recommended Posts

I recently added the code for turning coolant off with last Z move from the Mpmaster post. Now I cant figure out how to get it to NOT output the coolant off command on a null toolchange. How can I get it to not output the m8/m9 at null tool changes?

 

Running V8.1.1

Modified Mpfan post

 

Greg

Link to comment
Share on other sites

Turning off the coolant early is actually quite complex. Check out the line that accomplishes this:

 

if cool_zmove = yes & (nextop=1003 | (nextop=1011 & t<>abs(nexttool))), coolant = zero

 

Let me translate:

 

if the switch to enable feature is on

 

and

 

the next operation is the end of file

or

the next operation is a tool change or null tool change and the current tool is not equal to the next tool based on a buffer file that I've written out (making it a true tool change rather than a null tool change)

 

then turn the coolant string selector variable off

 

The problem is that gcode 1011 is used for both a full tool change and a null tool change. You may be missing the create of the buffer list of tools (including null tool changes) that is queried to assign the value to the user-defined 'nexttool' variable.

 

All that for an M09 one line earlier...

Link to comment
Share on other sites

Thanks for the reply Dave, the defintion to that line is what I really wanted! (I was banging my head trying to figure out what the heck 1011 meant smile.gif )

Gonna try this out today, im pretty sure I did remove a buffer... buffer5 to be exact, cause I didnt think I needed it. I thought it was for metacut/predator stuff. Back to work, i'll check in later.

 

Greg

Link to comment
Share on other sites

Geez....

Well I found something I was missing

 

toolcountn = toolcount + 1 # Index!

toolcountp = toolcount - 1 # Index!

 

Lol! can't believe I didnt see that. Now its almost fixed, just seems like something I have defined is different from yours. Now, the coolant will turn on at pzrapidout, for no reason. like this...

 

G1G40Y3.3758 plin plinout

G0Z.1M8 pzrapid prapidout

X-2.6324Y2.7319 ptlchg0 prapidout

G1Z-1.F100. plin plinout

 

I know its something simple, I will find it!! At least now it doesnt turn on and off at null tool changes. Thanks a bunch Dave!

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