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:

SIMPLE MOO


billystein
 Share

Recommended Posts

Does anyone have a cool routine for putting M00 in program.

It should look something like this.

 

G91G28Z0M5

G28Y0

M00(CHANGE CLAMPS)

G54

G90G0X----Y----S---M3

G43Z1.H--M8

 

Manual entry will do most of it but I still have to edit the offset numbers,x,y and spindle speed

Link to comment
Share on other sites

This is good question and it got me thinking.It can be done on the first page of toolpath parameters with ticking canned text and add a M00 after toolpath.

 

I started playing with it you have to edit the .txt file for your post to add what text you want.

 

Im sure someone in here as a better method.

 

HTH

 

cheers.gifcheers.gif

Link to comment
Share on other sites

I do it using Misc Values. When posted, you don't have to do anything 'cept type a comment if you so choose. In the operation before the M0, just change the int from 0 to 1 and bada boom, bada bing!

 

I'll let you see the code tomorrow when I get to work.

Link to comment
Share on other sites

code:

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

# User Defined Questions

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

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


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, pfcout, e

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

absinc = sav_absinc

 

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

# Misc. Output

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


code:

 ptlchg          #Tool change

pcorner_round

pcuttype

toolchng = one

toolcount = toolcount + 1

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

else, nexttool = first_tool

if wcstype = one, #Work coordinate system

[

pfbld, n, "G28", "X0.", "Y0.", e

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

]

# pbld, n, "M01", e

if mi10=one,

[

pbld, n, "G91", "G28", "Z0.", e

pbld, n, "G91", "G28", "Y0.", e

pbld, n, "G90", e

q3 #Stop Comment?

stopcomment = ucase(stopcomment)

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

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

#n, "M00"

]

ptlchg_com


code:

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

pcorner_round

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


Try that..

Link to comment
Share on other sites

Yes. If the current op IS NOT the last op, it will stay at 0. (It initializes at 0 )

 

If the current of IS the last op, it changes to 1.

 

code:

      last_op_id = op_id

 

if mi10=one & op_id<>last_op_id, pstop

 

if op_id<>last_op_id, pstock

 

last_op_id = op_id

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