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:

Old Dynapath, Old version of Mastercam Tool # format


Recommended Posts

Hi All.

New to Mastercam.

Have an older version...X8 mill level 1.

Have an old Dynapath control.

have been playing with the .pst file to get it the way I want.

Here is my issue:

I need to have my code for tools to be posted in this format: T0101.

T of course is for tool, the first two digits are the tool number and the last two digits are the length offset. (diameter offset is handled with D)

Can't figure out how to get the .pst file to do this...

So...I tried just changing the tool number when doing tool paths...but...it drops the leading 0. making 0101 into 101. Not what I want.

Anybody have any idea how to fix this?

 

Link to comment
Share on other sites

You need to add a Format Statement, that formats 4, forced, integer digits.

 

fs 30 4 0l

 

Then edit the Format Assignment line for the Tool Number:

 

Fmt "T" 30 t$

 

Finally, just prior to output, form the Tool Number + Offset number.

 

t$ = (t$ * 100) + tloffno$

 

 

And, just for fun, add some error checking:

 

If t$ > 99 | tloffno$ > 99, result = mprint ("Tool or offset greater then 99 detected!")

  • Like 1
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...