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:

Haas Tool Change Macro


GoetzInd
 Share

Recommended Posts

Haas has a setting to only change tool with the table (automatically) moved to home position.

i have not heard of any ablity to assign new G or M codes.

 

i would think one would have to just call a macro (or sub program) to get the specified/needed results.

Link to comment
Share on other sites

Mike,

Are you wanting to send the table to an auxiliary position for a tool change?

You could use the reference points in the tool path to set that.

 

I also changed the G28 output in my post to G53 to send the machine to it's home position, it also allows you to stay in G90 absolute mode instead of switching to G91 incremental with the G28.

Link to comment
Share on other sites

Not really looking to move table but more of stuff like checking tool gage length, probe in spindle, wear values present during first run, stuff like that.

 

I tried it, a while back, but I dont think the Haas will allow you to use the M6 inside the macro like the Fanuc

 

Thats what I'm running into. Dang Haas's! :veryangry:

Link to comment
Share on other sites

Ok on a Fanuc control you can assign a sub call to an executing M code (M6 Does a toolchange) and have it call a sub program. So every time you call an M06, it executes the program along with it. Very handy.

 

Mike

Couldn't you just write a sub routine or use a G65 call after the tool change if you cannot write to the Haas Tool Change Macro. I think I am understanding your question so here are some options:

 

T1M6

M98P0001

 

OR

 

T1M6

(A=#1 TLO)

(B=#2 PROBE IN SPINDLE)

(C=#3 WEAR VALUES)

G65P0001A1.B1.C1.

 

Either scenario will work depending on how the Haas control reads the system variables. You could write a macro that pulls all of the data you need and write them to corresponding macro variable outputs so you can read them.

I have never tried this before but I think I know what you are wanting to do with your TLO value.

Set a max TLO at the beginning of your program that corresponds to each tool like #501 equals the max stickout of tool number 1. #501=5. So #501 TLO will not be greater than five inches.

Lets pretend that your system variable for TLO is #2001=TLO#1 which on most Fanucs I believe is the case

 

If you use the G65P0001 the program will go as follows:

Main Program

#501=5.

T1M6

G65P0001A1.

M30

 

O0001

#100=#1.+2000.(Set #100 to 1.+2000./ in this case system variable #2001)

#101=#1.+500.(Set #101 to 1.+500./ in this case variable #501)

IF[#[#100]LT#[#101]]GOTO1(If the TLO is the write length go to line number 1)

M00(TOOL TOOL LONG)

(COMPARE OFFSETS #100 & #101)

N1

M99

 

Your options are unlimited.

Link to comment
Share on other sites

Start by creating a 9### program

 

Add in your safe tool change information like:

 

G0 G91 G28 Z0

G0 G90 G53 X### Y### ( safe tool change position ) we use x-39.0 y18.5 on our vf-6 ( directly over the touch probe )

Any other code you want

M99

 

Next assign the 9### program an open variable ( we use M106 )

 

Then replace your m6 in your programs with M106

 

All tool changes will be safe.

post-21978-0-76921600-1379340466_thumb.png

post-21978-0-51934700-1379340503_thumb.png

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