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:

Post variable name


Andy
 Share

Recommended Posts

Looking through the post parameter reference guide in the documentation folder it looks like it is parameter #10091

 

Then if you are using the MPMaster you code extract it like this

 

code:

pwrttparam$ #Information from parameters

if prmcode$ = 10091, tl_rad = rpar(sparameter$, 16)

You'd have to format the tl_rad variable for use

Link to comment
Share on other sites

I think it is tcr

Of course you need to append a '$' (tcr$) if using X.

 

 

Add this to the std. MPLFAN.PST

 

code:

ltlchg$          #Toolchange, lathe

"-->", *tcr$, e$ # Testing....

toolchng = one

gcode$ = zero

Results in this output ->

 

 

...snipped...

(MATERIAL - STEEL INCH - 1030 - 200 BHN)

G20

--> tcr$ .01563

(TOOL - 2 OFFSET - 2)

(OD FINISH RIGHT - 35 DEG. INSERT - VNMG-431)

G0 T0202

...snipped...

Link to comment
Share on other sites

Roger,

 

Does there exist a "list" of predefined usable variables?

 

I have been through the documentation but I parameter numbers.

 

You just pointed out the tcr$ varaiable which only appears at one point in a post and is not defined in the upper section. SO it must be defined elsewhere, correct?

Link to comment
Share on other sites

So I guess the variable names varie from post to post?

 

I did look up the # in ref guide but then did not know what to do. So, with that number one can name the variable, format it, test it (if statement) and then use it however one likes?

 

What is rpar(sparameter$, 16)

Link to comment
Share on other sites

quote:

So I guess the variable names varie from post to post?

The base available variables should all be the same, I do not work much the the MPFAN/MPLFAN so my comment on the MPMaster was only because I am aware of where in that post to extract a numeric variable.

 

BTW, pg 23 in th post parameter reference guide decribes the use of rpar

 

quote:

304 Numeric Variables.PDF contains the list.

In the V9 ref guide, I see it now Roger, thanks

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