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:

misc integer to send tool home, m00, then come to operator, m00?


jgary
 Share

Recommended Posts

Hello,

 

First of all i am using X2, and programming for an Okuma HMC with a Fanuc 18i controller.

 

I have been reading up on these mi's. I am just having trouble figuring out where to put this information in the post.

 

Here is what i want to do:

 

After i rough a bore, I want to send the tool home and program stop so the operator can check size. Then I want to bring the tool to the operator with a custom M135, and program stop to dial boring head, and/or rotate/change insert.

 

Thanks in advance for your time and effort.

Link to comment
Share on other sites

Well not to sound like a broken record, but your dealer is a great resource.

 

Now I would look to MPMASTER since it already has this built in it, except for the coming to the operator. Add that and you are home free.

 

You can also do a search for this has been explained many many times with lots of examples.

Link to comment
Share on other sites

I have looked at many posts on here talking about manual entry, misc values, canned text, and I think the way to go is with some misc values, I am just trying to figure out if pcanceldc$ would be a good place to put this sort of thing...

 

 

This forum is a great resource to have, I just wish I could contribute 1/2 as much as I have gained.

 

Thanks to all who participate on here.

Great Job!!!

 

[ 12-07-2007, 12:10 PM: Message edited by: jgary ]

Link to comment
Share on other sites

CREATE 2 SAME TOOLS WITH THE SAME NUMBER. USE THEM FOR ROUGHING AND FINICHING OPERATIONS. WHEN YOU POST THE 2 OPERATIONS, THE MASTERCAM ASK YOU THAT THERE IS 2 OPERATIONS USING THE SAME TOOL NUMBERS; YOU NEED TO POST TOOL CHANGE; JUST SAY YES. AND HERE YOU GO.

Link to comment
Share on other sites

quote:

After i rough a bore, I want to send the tool home and program stop so the operator can check size. Then I want to bring the tool to the operator with a custom M135, and program stop to dial boring head, and/or rotate/change insert.

You could do this using a force tool change, you would need no adjustment to the post, just create the path twice and on the second use the force tool change option. then using canned text, you could get the M135 code to output. That to me would be the easiest way to accomplish this.

 

I've used canned text to do something similar in the past, here's some eaxamples

 

code:

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 DEGREE)", 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$, sg91, "G28", "Y0.", e$

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

pbld, n$, sm00, e$

pbld, n$, "(CHANGE SCREW LOCATIONS)", e$

]

I have also added an option into an MPMaster post for a home move on top of the mi10 option they built in

 

code:

if (mi10$=four & (op_id$ <> last_op_id | (op_id$ = last_op_id & xform_op_id$ <> op_id$))) | (tlplnno$ <> prvtp & ret_on_indx), pstop

pstop has a call to to phome postblock

 

code:

phome

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

pbld, n$, *sm00, e$

There really are a few ways to accomplish what you need.

 

Home some of the examples offer some direction

 

[ 12-09-2007, 09:41 AM: Message edited by: JParis@CNC Programming Solutions® ]

Link to comment
Share on other sites

use the force tool change just like what john said. you will need to find that section of the post and just add the line for a table move: pbld, n$, "G0", "G90", "G54(or whatever)", "X0", "Y0", e$

 

it only takes minutes to do.

 

for the mpmaster post that inhouse puts out, i add this to it specifically for checking op's between same tools and i will add the table move when toggling on the M00 feature also.

Link to comment
Share on other sites

hey guys,

 

thanks for the replies... sorry it has taken so long for my reply. I am trying some of these things out today. I think the 'force toolchange' is a great idea.

 

John,

 

I have a couple of questions about your comments.

 

quote:

if cantext$ = one,.....

First of all, where is all of that cantext code located in your post?

 

quote:

code:

 if (mi10$=four & (op_id$ <> last_op_id | (op_id$ = last_op_id & xform_op_id$ <> op_id$))) | (tlplnno$ <> prvtp & ret_on_indx), pstop 


Secondly, on the mi10 line with the pstop and phome, basically, does that make the program have a stop and return home on every toolchange when mi10 is set to four in your example?

 

Thanks for all of your help.

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