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:

Need Post help with Canned Text


Rob B
 Share

Recommended Posts

I am trying to remove a slug from the center of a part after the part has been roughed out. I am using one operation to rough the part, then a second operation to do my finish pass. So I need an "M00" added to my program between the rough pass and the finish pass. I'm using ref point after first pass to get the machine to position so I can remove the slug. After removing the slug I need to press cycle start and finish the part. My problem is as follows:

 

 

I am trying to use canned text to add a "M00" between 2 operations that use the same tool. The 2nd operation that I add the canned text "M00" to has one rough and one finish cut. My post outputs an "M00" between each pass. I only want it to output the "M00" at the very beginning of the operation, not at each multi pass. I have the same problem if I have multiple depth cuts. Can someone tell me what I need to edit in my post.

 

I'm running X2 MR1 SP1, my post is a basic MPMaster post that I have edited for my Haas VF0.

 

I had a misc value setup to do an "M00" before an operation. This worked fine on the Mazaks I used to run. The problem with the Haas is if you do a "M00" move, the post needs to output the spindle speed and coolant after the "M00". My post doesn't output the spindle speed or the coolant which is a problem.

So I don't know which problem would be easier to fix, the misc values or the canned text.

 

 

Thanks to all!!!!!!

Rob confused.gif

Link to comment
Share on other sites

i had to put the logic in myself. in the control def goto text,double click and type in what you want in mi1. in the post this is what i did

 

# Following Misc. Integers are used:

# mi1 - M00 At Start Of Tool

# 0 = no

# 1= yes

# mi10 - M00 before operation

# 0 = No

# 1 = Yes

 

ptlchg_com #Tool change common blocks

 

if mi1$ = 1, n$, *sm00, e$ ##added this line

ptlchg_com #Tool change common blocks

if mi10$,

[

pretract

n$, *sm00, e$

pbld, n$, pfspindleout, e$ # added this line FORCE SPINDLE ON

 

 

HTH cool.gif

Link to comment
Share on other sites

If it's programmed in two operations as you stated why not just use manual enty to insert the M00? or does your post currently output an M01 for every operation? If so you could just hit the optional stop button on the control when the roughing operation has begun. Just a thought...

Link to comment
Share on other sites

Tony35,

I tried to had the above lines under "ptlchg_com" in the post. It didn't change what was output in program. I'm not sure that I added the info in the right place in the post. I will show below what I added to the post. Thanks for help. Rob

 

 

ptlchg_com #Tool change common blocks

 

 

if mi1$ = 1, n$, *sm00, e$

ptlchg_com

if mi10$,

[

pretact

n$, *sm00, e$

pbld, n$, pfspindleout, e$

Link to comment
Share on other sites
  • 4 months later...

I finally got back to this problem again. Quick fix for me was to do what Salt4cad's suggestion. Do a forced tool change. It basically puts in a tool change code that I don't need, but I do have my M03 line.

 

Thanks to all for the help!!

Link to comment
Share on other sites

I have handled canned text outputs like this in the past

 

code:

pcant_out       #Canned text - build the string for output

if cantext$ = one, [

pbld, n$, sm00, e$

pbld, n$, "(CLEAN CHIPS)", e$

]

 

if cantext$ = two, [

pbld, n$, sg00, "Z6.0", sm09, e$

pbld, n$, sg91, "G28", "Y0.", e$

pbld, n$, sm00, e$

pbld, n$, "(CHANGE CLAMPS)", e$

pbld, n$, sg00, *g_wcs, sg90, pfxout, pfyout,

*speed, sm03, e$

pbld, n$, sm08, e$

]

if cantext$ = three, [

pbld, n$, "M201", e$

]

 

if cantext$ = four, [

pbld, n$, "M200", e$

]

 

if cantext$ = five, [

pbld, n$, sm00, e$

pbld, n$, "(ROTATE TO DEGREES)", e$

]

if cantext$ = 6, [

pbld, n$, sg91, "G28", "Y0.", e$

pbld, n$, sg90, *g_wcs, "X0.", e$

pbld, n$, sm00, e$

pbld, n$, "(LOOSEN AND RETIGHT VISE)", e$

pbld, n$, "( DO NOT OVERTIGHTEN)", e$

]

if cantext$ = 7, [

pbld, n$, sm51, e$

pbld, n$, "(AIR BLAST ON)", e$

]

if cantext$ = 8, [

pbld, n$, sm59, e$

pbld, n$, "(AIR BLAST OFF)", e$

 

]

code:

[canned text]

1. "CLEAN CHIPS - M00"

2. "CHANGE CLAMPS - M00"

3. "AUGER ON"

4. "AUGER OFF"

5. "ROTATE TO DEGREES"

6. "HOME MOVE - RETIGHTEN"

7. "AIR BLAST ON"

8. "AIR BLAST OFF"

9. ""

10. ""

11. ""

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