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:

Converting post from 9 to X


mig
 Share

Recommended Posts

Hi,

This is part of post for ver 9 were taking stock value from:

frown.gif

pstock # Comment amount of stock to leave

spaces=0

if (opcode=13 | opcode=14),

[

pbld, n, pspc, "(TOOLPATH - ", *stoper, ")", e

pbld, n, pspc, "(STOCK LEFT ON DRIVE SURFS = ", *stock, ")", e

if check<>0, pbld, n, pspc, "(STOCK LEFT ON CHECK SURFS = ", *check, ")", e

]

spaces=0

if (opcode=2 | opcode=4),

[

pbld, n, pspc, "(TOOLPATH - ", *stoper, ")", e

pbld, n, pspc, "(STOCK LEFT ON X&Y = ", *stock2dxy, ")", e

pbld, n, pspc, "(STOCK LEFT ON Z = ", *stock2dz, ")", e

]

spaces=sav_spc

Link to comment
Share on other sites

mig,

 

I Am looking at the same post I adjusted for you last week. Don't know if it is the same post that is giving you trouble but I noticed the stock variable is not defined.

 

I don't see either of these in that post

 

code:

fmt    2 stock      # Amount of Stock left on drive surfs

fmt 2 check # Amount of Stock left on check surfs

You have this

code:

fmt "DRIVE= "  2 surf_stock      # Amount of Stock left on drive surfs

fmt "CHECK= " 2 chek_stock # Amount of Stock left on check surfs

But you're not calling it at that point you're calling the original variables

Link to comment
Share on other sites

The stock value is probably coming from a parameter and some of these parameters have changed for X.

 

There is a document (Mastercam X post parameter reference.PDF) that shows all parameters changed for X it will show the mapping from V9 to X. You can get to this file through your start menu or by using explorer and looking in the mastercam Documentation folder.

 

Updatepost does NOT autmatically update these, so you must do so manually.

Link to comment
Share on other sites

Hello all,

 

I tried parameter 12437 for drive stock to leave and 10227 for check stock to leave but it still does not work.

 

Her is what I have in my post:

code:

fmt    2 stock      # Amount of Stock left on drive surfs

fmt 2 check # Amount of Stock left on check surfs

and

 

code:

fprmtbl 13      2         # Multisurf Finish

12437 stock # Amount of stock to leave on drive surfs

10227 check # Amount of stock to leave on check surfs

 

 

fprmtbl 14 2 # Multisurf Rough

12437 stock # Amount of stock to leave on drive surfs

10227 check # Amount of stock to leave on check surfs

and

 

code:

pstock     # Comment amount of stock to leave

spaces$=0

if (opcode$=13 | opcode$=14), pbld, n$," ", pspc, "(TOOLPATH - ", *stoper, ")", e$

if (opcode$=13 | opcode$=14), pbld, n$," ", pspc, "(STOCK LEFT ON DRIVE SURFS = ", *stock, ")", e$

#if (opcode=13 | opcode=14) & check<>0, pbld, n," ", pspc, "(STOCK LEFT ON CHECK SURFS = ", *check, ")", e

if (opcode$=13 | opcode$=14), pbld, n$," ", pspc, "(STOCK LEFT ON CHECK SURFS = ", *check, ")", e$

spaces$=sav_spc

And this still gives me 0. even if my values are set to .06 in MCAMX.

 

Also, I can't seem to find the parameter number for the op name to post out.

 

[ 09-15-2006, 10:06 AM: Message edited by: marting ]

Link to comment
Share on other sites

another thing to check is make sure that you have the "Write NC Operation Information" check box active in your control definition. This must be active for Mastercam to write the OPS information otherwise everythign is zero.

 

Do you have other parameters being used in this post?

You may need to post a code snippet of the postblock and postlines from PParameter or pwrttparam so I can see the logic that is making calls to the parameter look up tables.

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