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 first tool?


Recommended Posts

example:

%

O0001

G99 G21

G0 X200. Z150.

 

N3 (R0.8)

T0303

S800 M3

/ M8

G0 X50. Z20.

Z2.

G1 Z-20. F0.25

...........

...........

G0 X200. Z150.

M0

 

N2 (R0.4)

T0202

S1500

G0 X28.5 Z20.

Z-20.55

G1 X22. F0.08

......

......

G0 X200.

Z150. M9

G97 S200 M5

T0303 <-----------------------here

M30

%

 

Thank you !

Link to comment
Share on other sites

Will need to create a buffer that stores the 1st tool picked and then call the buffer at the end of the program and then go from there. Will need to turn off the increment process in buffers or make sure you subtract one from the buffer value so it will come out correctly. That is the correct way IMHO to handle the process. Since I have a hard time with buffers I will suggest a non buffer way in which you use a mi or mr variable and then call it in the last operation that will then do what you are after pretty easily. Not as automated as a buffer would be, but for a simple guy like me what I know I can do predict and works.

Link to comment
Share on other sites

If you're trying to output the first toolo at the end of the program, many new posts already have the variable

defined

 

fmt "T" 4 first_tool$ #First tool used

 

and in the peof

 

if stagetool = 1 & stagetltype = 2, pbld, n$, *first_tool$, e$

 

So even if you're not staging, it's a pretty quick edit to get what you need

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