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:

program park


skit
 Share

Recommended Posts

I use Misc Values. Toggle MI10 to 1 and it parks the machine. It also prompts for a comment to put with the M00.

 

Define the variable for comment prompt

code:

# --------------------------------------------------------------------------

# User Defined Questions

# --------------------------------------------------------------------------

fq 3 stopcomment M00 found for: //t//; //strtool//. Enter a Comment...

Make the sub..

code:

pstop      # Stop routine ()

pretract

q3 #Stop Comment?

stopcomment = ucase(stopcomment)

if stopcomment = "", n, "M00", e

if stopcomment <> "", n, "M00", "(", *stopcomment, ")", e

# n, "M00", e

if wcstype > one, absinc = zero

n, *spindle, *speed, pgear, strcantext,e

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, *cabs, E

pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e

absinc = sav_absinc

Call the sub (last line in my case)

code:

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

pcorner_round

if mi7 <> 0, pdump

pcuttype

pcom_moveb

toolcount = toolcount + 1

prvtp = rbuf(3,toolcountp)

if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn)

else, nexttool = first_tool

if mi10=one & op_id<>last_op_id, pstop

Results

code:

N2722 G01 G40 Y1.9688

N2723 G00 Z1.

N2724 M09

N2725 G91 G28 Y0. Z0.

N2726 G90

N2727 M00 ( RETENSION )

N2728 M03 S6800

N2729 G00 G90 X.3713 Y3.2288 A0.

N2730 G43 H2 Z1. M08

(OPERATION: 47 POCKET)

N2731(OP 1)

N2732(UPPER POCKETS RETENSION)

(T2: 3/16 CB EM 4FL TICN)

( TOOLPATH - POCKET)

( STOCK LEFT ON X & Y = 0.)

( STOCK LEFT ON Z = 0.)

N2733(OP ID: 8)

(I may not have shown all the variables)

 

Or you could use Manual Toolpaths, but that's not as robust.

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