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:

tool table output


Smrk
 Share

Recommended Posts

I tried to modify my post to generate "tool manufacturer code" and "shoulder lenght" in tool table.

so i defined variable "var1" to store shoulder lenght - var1 : 0

and string "smanufcode" to store code - smanufcode : ""

 

also defined format of var1 - fmt "l3=" 4 var1

 

and add condition to pparameter$ section

 

if prmcode$ = 20007, var1 = rparsngl(sparameter$,4)

if prmcode$ = 20002, smanufcode = sparameter$

 

and calling var1 and smanufcode to pwrtt$ (tooltable output) - original from reseller, only added *tcr$ in the past.

 

if tdef_table, # Put all the TOOL DEF blocks at the top of the program?

[

if t$ > 0 & gcode$ <> 1003, #If a "real" toolchange

"; ", *stooldef, *t$, *tlrad$, *tcr$, *var1, "Code:"*smanufcode, e$

]

 

But all tools have parameters from first one:

 

; T. 20 R:5.00 Cor.rad.:0.50 l3=24 Code: A123B

; T. 23 R:0.50 Cor.rad.:0.10 l3=24 Code: A123B

; T. 30 R:0.30 Cor.rad.:0.30 l3=24 Code: A123B

 

It looks like i need some condition in pparameter$ section to jump to next tool and re read variables. What am i doing wrong?

Thanks for help.

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