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:

Adding information from Setup Sheet to g-code


Recommended Posts

Is there a way to link the information form the Setup Sheet General Information to the Post Processor to have it come out in the program?

 

INFORMATION IN RED IS FROM ATTACHED PIC

 

%

O5742(4491157-42)

(NC FILE - 4491157-42.NC)

(PROJECT - 18352)

(DRAWING - 4491157)

(REVISION - E)

(CUSTOMER - PSNS)

 

(MATERIAL - PLASTIC INCH - ABS)

 

 

%

post-45992-0-09473700-1357225771_thumb.jpg

Link to comment
Share on other sites

The information from the Setup Sheet window you show is normally located in %MCamSharedDir%\common\reports\

There is a text file there for each entry in that window.

 

However, since posting code and running the setup sheet are two different actions, there is no guarantee that the information

there is recent and appropriate for the currently posted SetUp Sheet. You may well get information from there for the LAST

program you ran a setup sheet for.

Link to comment
Share on other sites

So if I were to do the Setup Sheet first, then post the program, how would I modify the post? The files with the information are .dat files (Customer.dat, Programmer.dat, etc)

 

Here are the lines from the post for the header information:

 

 

 

pheader$ #Call before start of file

"%", e$

sav_spc = spaces$

spaces$ = 0

*progno$, sopen_prn, sprogname$, sclose_prn, e$

#sopen_prn, "PROGRAM NAME - ", sprogname$, sclose_prn, e$

spathnc$ = ucase(spathnc$)

smcname$ = ucase(smcname$)

stck_matl$ = ucase(stck_matl$)

snamenc$ = ucase(snamenc$)

sopen_prn, "NC FILE - ", *spathnc$, *snamenc$, *sextnc$, sclose_prn, e$

sopen_prn, "PROJECT - ", sclose_prn, e$

sopen_prn, "DRAWING - ", sclose_prn, e$

sopen_prn, "REVISION - ", sclose_prn, e$

sopen_prn, "ITEM NUMBER - ", sclose_prn, e$

sopen_prn, "MATERIAL - ", *stck_matl$, sclose_prn, e$

" ", e$

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