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:

another post question


notso
 Share

Recommended Posts

Since you guys are volunteering all of this cool post editing info. I have a question for ya.

 

When I try to use Canned text to put an M00 in the program that's all I get (no retract, spindle stop etc).

I would like it to give me that stuff before the M00 and I would like it to give the start up commands afterwards.

Link to comment
Share on other sites

With the mpfun.pst:

 

Find pcant_out

 

ther will be sumthin like

 

if cantext = one, strcantext = strcantext + sm00

 

you can:

 

if cantext = one,[

"ADD STUFF HERE",e

"M00",e

"ADD MORE STUFF",e

]

 

If your not sure what value of cantext your on you can temporarily add:

 

~cantext,"HHHHHHEEEEERRRRREEEEEEEE",e

to the top of the pcant_out post block to out the value. the extended heere is to help find in nc output.

Link to comment
Share on other sites

Try hard coding it in ptlchg:

from MpHaas:

 

ptlchg #Tool change

 

"G91G28Z0.", e

"G90M05", e

"M00", e

 

 

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, *t, "M6", e

pindex

sav_absinc = absinc

if mi1 > one, absinc = zero

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

pcout, *speed, *spindle, pgear, strcantext, e

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

pbld, n, scoolant

absinc = sav_absinc

pcom_movea

toolchng = zero

c_msng #Single tool subprogram call

 

 

 

 

headscratch.gif

 

This way you will always get the code at every tool change.

 

if you want it only when you need it try using your own routine tied to a variable like mi3

 

again from MpHaas:

 

p_m0000 #My M00 routine

 

"G91G28Z0.", e

"G90M05", e

"M00", e

 

ptlchg #Tool change

 

if mi3 = 1, p_m0000

 

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

 

cp

Link to comment
Share on other sites

There are a lot of ways to handle this. Below is an example where the misc values page is used instead of canned text. This method will also automatically force a toolcahnge in examples where the same tool is used for the next operation.

 

ptlchg0 #Call from NCI null tool change

if (op_id <> prv_op_id) & (mi1 = 99),

[

pretract

ptlchg

]

else,

[

Below this bracket, include everything that is currently in ptlchg0 and close with a bracket.

]

 

then modify in "ptlchg" to look like this:

 

if mi1 = 99,

[

n, "G28", "Y0", e

n, sgabsinc, e

n, "M00", "(PROGRAM STOP)", e

]

else,

[

n, sgabsinc, e

n, "M01", e

]

 

 

I also copied this post for the Haas Mill to the FTP site "Mill_Haas_VF.PST/TXT". This post includes several Haas specific features like the IJK drilling, reverse rate for Tap, peck tapping, and a feature to move to specified location for tool change. This last feature is very helpful if you work with tall parts.

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Or you could always use "Force Tool Change" Located by clicking the "Change NCI" button on the Tool Parameters Page of any Toolpath where a tool is to be selected. :shrug: If you uhave multiple depth cuts in the toolpath you're trying to force the change in, you could end up with a tool change at every depth cut, but for other toolpaths, it works slick as a whistle. It used to not be an issue but SOMEBODY at CNC broke it in V9 and didn't fix it. :sad:

 

HTH the cause.

 

James teh fisherman's teacher biggrin.giftongue.gif

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