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:

posting an M00 before multiple engravings?


strikur
 Share

Recommended Posts

Ok, I set up canned text 11 for an M00 call. First I added the text in the canned text area. (bottom of the post)

code:

[canned text]

1. "Stop - M00"

2. "Op Stop - M01"

3. "Bld on"

4. "Bld off"

5. ""

6. ""

7. ""

8. ""

9. ""

10. ""

11. "M00 (LUBRICATE HOLES FOR TAPPING)" #<<<<<<<<<< I added this line

[CTRL_TEXT_END]

Then I added the callout in ptlchg$

code:

ptlchg$          #Tool change

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$

]

if prvtool = 59,

[

"M00", "(CLOSE DOOR)", e$

"#151=#0", e$

*sm01, e$

p_probe_v526

]

else,

[

"#151=#0", e$

if cantext$ = 11, *sm00, "(LUBRICATE HOLES FOR TAPPING)", e$ #<<<<<<<added this

else,*sm01, e$ #<<<<<<<<<<< updated this

]

" ", e$

ptlchg_com

I had to put a condition on pcan in my tool change postblock;

 

code:

      if cantext$ <= 10, pcan

This is what the post outputed;

code:

N6 G91 G30 X0 Y0 Z0

#151=1

IF[#[10000+44]GT13.75]GOTO99001

M06 T44 ( NO.36 DRILL)

T41

#170=4060

#172=5202

#199=0

M[#926]

M[#925]

M[#927]

M98P5036

M09

M56

M58

M05

G91 G30 X0 Y0 Z0

#151=#0

M00 (LUBRICATE HOLES FOR TAPPING)

 

N7 G91 G30 X0 Y0 Z0

#151=1

IF[#[10000+41]GT13.75]GOTO99001

M06 T41 ( 8-32 PULLEY PLUG TAP)

T43

#170=4070

#172=5204

#199=0

M98P5036

M05

G91 G30 X0 Y0 Z0

#151=#0

M01

You will need to replace your machine def in your toolpath manager to see the text in the canned text section.

 

There would be a lot more work if you want to use the first ten cycles but the bottom 90 seem pretty easy.

Link to comment
Share on other sites

If you want the M01 at every tool change then you could hard-code it in ptlchg$

if the same tool is doing different enough cuts then try hard-coding it in ptlchg0$

 

if you need a different trigger for the M01 you're gonna have to find the variable that you want and trigger the M01 output on that variable.

 

I'm at home now so's I am w/o my resources

 

cp

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