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:

Output overall tool gage length from mastercam.


Recommended Posts

I am trying to output the overall gage length, tool stickout plus holder length, with a subprogram call to verify the machine configuration matches what we programmed to. I cobbled together something that produces the results I am after and doesn't seem to cause any problems but I am unsure if I am following best practices or have implemented something that may cause issues downstream with the posts.

I added the following lines after the toolcall

      if not(force_tlchg$ & opcode$ = 15), ptoolcall
      else, pbld, pn, pzhome, pe
      sparameter$ = opinfo(20007, 0)
      oa_leng = rparsngl(sparameter$, 12)
      sparameter$ = opinfo(20007, 0)
      hldr_leng = rparsngl(sparameter$, 13)
      [tlo_val = hldr_leng + oa_leng]
      pfbld, pn, "G65 P7001", *tlo_val, pe

 

This gives me the following output:

N8 (OPERATION NO - 7)
N9 T1 M06 (1/2" SKI CARB GAR-85500)
/N10 G65 P7001 E5.437

I've posted a few programs and ran them through vericut with no issues, these changes don't seem to have an effect on anything else downstream with the programs. Am I okay with implementing it this way?

 

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