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:

Modifying Set-Up Sheets


Aaron
 Share

Recommended Posts

To any of you post code gurus out there. I am trying to modify the mill.set file so that it will output exactly which post processor got used by MC to generate the G-code. I think what I need is the character string that maps to the lower left corner of the Job Set-up window that lists the Post that is (was) being used. My current code looks like this (keep in mind that I have not done this before):

 

ppostname #Post Program Used

??something here to define ppostname??

 

pmachtyp #Output Machine Type

if ppostname,

[

if ppostname = "MPMASTER_TAKUMI",

"TAKUMI", e

if ppostname = "MPMASTER_FADAL",

"FADAL", e

if ppostname = "MPMASTER_OKUMA",

"OKUMA", e

 

#if mi1 = 1, #Takumi Indicator

#"TAKUMI", e

#if mi2 = 2, #Fadal Indicator

#"FADAL", e

#if mi1 = 3, # Okuma Indicator

]

.

.

.

 

"Machine: ", pmachtyp, e #Machine Type in Header

 

As you can see I was using a different approach by directing the set up sheet to look at the misc. integer values. It works, however I want the setup sheet to tell me what Post got used, not which one I think I used rolleyes.gif . I think that I need to define the variable "ppostname" to grab the post that was used from the job setup. Any suggestions or tips??? Or am I trying to see the chicken before the egg?

Thanks in advance.

-aaron-

Link to comment
Share on other sites

First you must make sure the PST is requesting the system to create an OPS (Operation Parameters) file.

 

See this setting in your PST ->

 

1502. Write operation information to binary file (.ops)? y

 

 

# Now you need to declare a string variable to hold the PST name ->

 

spostname # Declare a STRING variable to hold the PST name

 

# Now add this code to the PPARAMETER postblock.

(If this postblock does NOT exist in your PST - just add it)

 

code:

   

pparameter

 

if prmcode = 10055, spostname = sparameter # Capture the PST name

# Note that this 'spostname' string includes the FULL path to the PST


 

[ 02-25-2003, 01:24 PM: Message edited by: Roger Martin from CNC Software ]

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