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:

Auger


chip
 Share

Recommended Posts

I want to add a M31 (Auger foward) to a parameter in Mastercam banghead.gif ... I want it on a switch. I've had difficulty with my canned text before... If I am roughing a chunk I want the auger on. If I go to a surface theres no need to run the auger for hours on end with no chips! headscratch.gif

Link to comment
Share on other sites

Chip, I wouldn't use canned text at all for this

 

Try a Miscellaneous Integer instead:

 

ptlchg #Tool change

pcuttype

toolchng = one

if mi1 = one, #Work coordinate system

[

pfbld, n, *sg28ref, "X0.", "Y0.", e

pfbld, n, "G92", *xh, *yh, *zh, e

]

# pbld, n, "M01", e

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, "G98", e #Added (cdm)

pbld, n, "G49 G53 Z0.", e #Added (cdm)

pbld, n, *t, "M06", e

pindex

if mi5 = one, pbld, n, "M31",e #Chip Auger Forward (cdm)

 

 

Then just set mi5 to 1 in your operation and you'll get your M31. You'll probably want the if statement at the start of file, toolchange, and null toolchange to cover your bases. Then just put an M33 in pretract to shut it off at the end of each tool

 

C

Link to comment
Share on other sites

A better way would probably be to turn on with this:

 

if mi5 = one, #Chip Auger Forward (cdm)

[

pbld, n, "M31", e

augerfwd = one

]

 

and then put something like this in pretract:

 

if augerfwd = one, #Stop Auger if on (cdm)

[

pbld, n, "M33", e

augerfwd = zero

]

 

That way you'll only get the M33 if the auger is running

 

C

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