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:

NC file name = program#


arsson
 Share

Recommended Posts

Arsson,

 

Look in the pheader section of you post and make sure you have a line that looks like the one bellow.

 

code:

 

 

pheader$ #Call before start of file

if met_tool$ = one, #Metric constants and variable adjustments

[

ltol$ = ltol_m

vtol$ = vtol_m

maxfeedpm = maxfeedpm_m

]

if usecanned = yes$, pusecannedyes

else, pusecannedno

result = nwadrs(srotary, cabs)

result = nwadrs(srotary, cinc)

result = nwadrs(srotary, indx_out)

 

# "%"

sav_spc = spaces$

spaces$ = 0.

"O", sprogname$,e$ <--------- Here is the line

.....


Link to comment
Share on other sites

This is my pheader$

 

code:

 

pheader$ # File header

#"Program Name - ", progname

#"Program Time - ", time

#"Program Date - ", date,"(Day:Month:Year)"

 

"0", "BEGIN PGM ",progno$,"MM",e$


When i change program number in toolpath it work correct. But i whant the posts to change to right program number, same as the name of nc file

Link to comment
Share on other sites

Right click in the "ops Manager" Go to Edit Selected operations then "Change NC Name" for changing the program Name.

Then go back and under that is the option to "Change program #" this will change the "O1111" for example at the top of your program.

 

this can be done for a group of operations or just one.

Link to comment
Share on other sites

YES it work. I happy :-)

This is exempel how I work

 

*Open a 3D modell.

*save it with drawing number and description MCX

*Prepare it for toolpath

*create toolpath and got question to choose a NC name.

*Run postprocessor and it save the file automatic on the network with same NC file name and programe name

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