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:

The new enhanced tool tables


Recommended Posts

I've got my post modified to use the new "x_tooltables$" features and it's outputting well.

I am wondering about some of the new tool parameters though. I want to use the tool projection parameter "20007.12" in my parameter read section and a function lookup table. Is this the proper format?

fprmtbl 101 5   #Tool table
    20016   smatlname1
    20017   smatlname2
    20020   stlhldrnam
    20007.12    stlproj

 

pparameter$        #Parameter Read
      if prmcode$ = 20004, tempf1 = rpar(sparameter$, 12)
      if prmcode$ = 20007 & use_tlength = one, temp1 = rpar(sparameter$, 3)
      if prmcode$ = 15339, drluseclr = rpar(sparameter$, 1)
      if prmcode$ = 15240, op_num = rparsngl(sparameter$, 1)
      if prmcode$ = 20016, smatlname1 = ucase(sparameter$)
      if prmcode$ = 20017, smatlname2 = ucase(sparameter$)
      if prmcode$ = 20018, stpgrpname = ucase(sparameter$)
      if prmcode$ = 20020, stlhldrnam = ucase(sparameter$)
      if prmcode$ = 20007.12, stlproj = ucase(sparameter$)

 
Link to comment
Share on other sites

This is what I use to get that info

 

if prmcode$ = 20007,
          [
           tool_out_length = rparsngl(sparameter$, 3)
           tool_hold_length = rparsngl(sparameter$, 7)
          ]

I would think if you wanted the value in bit 12

if prmcode$ = 20007, your variable name = rparsngl(sparameter$, 12)

 

Edited by Guest
Link to comment
Share on other sites

John is spot on. Also, there are no decimals allowed in a Variable Name.

There are a couple different functions for grabbing parameters. Using the 'rparsngl' function is a good idea, since it grabs a single parameter per variable. (you tell it "which parameter" to grab, based on your 2nd argument value.)

The regular 'rpar' function grabs every parameter on the line, and loads each parameter into a separate variable, using an "implied array". (Ordered list of variables.)

Link to comment
Share on other sites

Ok thanks guys, does that mean that this one:

      if prmcode$ = 20007 & use_tlength = one, temp1 = rpar(sparameter$, 3)

should also be using the rparsngle function, if it is only the 3rd value that I want?

Also, does this line just grab the first 12 values & load them into an implied array?

      if prmcode$ = 20004, tempf1 = rpar(sparameter$, 12)
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...