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:

Program numbers Vs Prg names - sorry!


Toast
 Share

Recommended Posts

I know it's been done and done, but here's a new one (I think) What if the machine demands a name and number match? eg Program name is 5445, so that is what is on the first line of pgm. Every pgm has a new name - therefore a new matching number.

In V9, you entered the new name in the parameters box with everything else, and it became the number as well by default - OR, you could set a default if you wanted to for every pgm.

Now, when I do all that in X, you have to Regen every prog with it's name (from entering in the Files box)- larger programs being regened is a huge pain. Any suggestions? frown.gif

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

Here's my header (courtesy of MPMaster)

 

code:

      if met_tool = one, #Metric constants and variable adjustments

[

ltol = ltol_m

vtol = vtol_m

maxfeedpm = maxfeedpm_m

]

result = nwadrs(srotary, cabs)

result = nwadrs(srotary, cinc)

result = nwadrs(srotary, indx_out)

 

"%", e

spaces=0

*progno, " (", sprogname, " ", "OP X OF X", ")", e

spathnc = ucase(spathnc)

smcname = ucase(smcname)

"(MC9 FILE - ", smcpath, smcname, smcext, ")", e

"(MC9 FILE - ", smcname, ")", e

"(POST - ", spostname, ")", e

stck_matl = ucase(stck_matl)

"(MATERIAL - ", stck_matl, ")", e

"(PROGRAM - ", sprogname, sextnc, ")", e

"(DATE - ", *smonth, "-", *day, "-", "20", *year, ")", e

"(TIME - ", *time, ")", e

" ", e

"( TOOL LIST START )", e

spaces=sav_spc

 

if seqno = 0, omitseq = yes

sav_rot_on_x = rot_on_x

rot_on_x = 0

sav_progno = progno

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