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:

Last tool


Recommended Posts

Hello,

 

i use the master Gcode Post and i have a question with loading the next tool. For example:

 

I use 3 tools T10, T13 and T19.

 

Gcode looks like:

 

T10

M6

T13

.

.

.

T13

M6

T19

.

.

.

T19

M6 <- last toolchange

T10 <-- preloads the first tool. Here is the thing i want to change. With the last toolchange i always want to preload "T1". Ist there a possibility to realizie that?

.

.

 

Thank you very much for your support.

 

Nico

  • Like 1
Link to comment
Share on other sites

 

I think i got it:

 

      if toolcount = tooltotal, next_tool$ = 1 #added this line
      pbld, next_tool$, e$
 
can anyone tell me if there could occur some problems? I have tested it with cal tools multiple times in a programm. That worked
 
Thank you
 
Nico

 

 

Looks good, but you did what any of us would do and that is test. Keep on eye on it for a while, but normally if you testis a couple different ways and you see no issue then you are good to go. Exceptions do happen like anything, but good job and thanks for taking the time to share your results.

Link to comment
Share on other sites

Hello everyone,

 

i had to improve it because there were several issues with the solution, espacially when calling null toolchange with the last tool.

so i modified the code a little bit:

 

      if AnzahlWerkzeugwechsel >= tcnt & next_tool$ = first_tool$, next_tool$ = 1
      pbld, next_tool$, e$
 
Im from Germany so i made a "german" variable AnzahlWerkzeugwechsel. It increments after each M6. It is compared with "tcnt" which is filled while buffering the tooltable i think.
 
I hope this might help you as well if you have trouble with the previous solution.
 
Nico
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...