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:

MPFAN Post Edit


Jim at Gentex
 Share

Recommended Posts

I know this is relatively simple, but I would like if someone could explain how to do it. I'm kinda new at post editing, so I thought I'd start out slowly.

 

When I run the MPFAN post, I would like to add the file name to the beginning of the nc program in parentheses to look like this:

 

(filename)

%

G00 G40 G54 G17 G80 G90

T1 M06

G0 G90 X.2875 Y-.498 S1200 M3

...

 

Would some kind soul enlighten me?

Thanks!

 

Jim teh wants to edit the post w/o screwing it all up! wink.gif

bonk.gif

Link to comment
Share on other sites

When you say filename are you talking about the file path (c:nc602-342 op1.nc) or nci name (602-342 OP1)?

 

for nci name;

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

]

result = nwadrs(srotary, cabs)

result = nwadrs(srotary, cinc)

result = nwadrs(srotary, indx_out)

 

"%", e

spaces=0

*progno,"(",sprogname,")", e #<<<<<< this will add nci name after program number

I don't know how to put in the file path. (never tried)

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