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 VF-3 loop lines


Toolfab
 Share

Recommended Posts

So we are trying to get this control to "loop" a section of code. Were the loop starts we have the

code:

 M97 P(and the line #) L3 

and at the end we have the

code:

 M99 P(start of next toolpath) 

So the program will loop 3 times to the given spot, but after the last loop is complete, it goes to T1..wtf?

 

Anybody know the proper way to loop a Haas control?

Link to comment
Share on other sites

Here take a look at my Warm program for the VF2 and see if that helps.

 

code:

%

O0000(WARM UP CYCLE)

S500M3

M97 P100 L10

S1000M3

M97 P100 L10

S1000M3

M97 P100 L10

S2500M3

M97 P100 L10

S5000M3

M97 P100 L10

S7500M3

M97 P100 L10

S10000M3

M97 P100 L10

S12000M3

M97 P100 L10

N100

G01 G90 G154 P99 X15. Y-16. F200.

G01 X-15. Y0

G01 Y-16.

G01 X15. Y0

G01 Y-16.

G01 X-15. Y0.

M99

M30;

%

Link to comment
Share on other sites

The N number is what gives each sub routine its place or name in the program. The program number goes firts where as on a Fadal the subroutine goes before the program number and is given it place or name a different way. Hope it works if not post back up and will try to help you out.

 

Also if you look at the fanuc sub program thread that macro should work on a HAAS just need to change the numbers and also take out the first part of the defintions.

 

HTH

Link to comment
Share on other sites

OK, Thank you Ron. With your example and a little extra effort form the operator, (reading the manual... eek.gif ) We got it to work!!!

 

Biss this is what I ended up doing...

 

code:

 ( .9X15 DOVETAIL TOOL - 2 DIA. OFF. - 22 LEN. - 3 DIA. - 1.5 ) 

N244 T2 M06

N245 G00 G90 G54 X-0.0255 Y0.65 S153 M03

N246 G43 H02 Z1. M08

N247 M97 P249 L4

N248 M99 P261

N249 X-0.0255 Y0.65

N250 Z0.532

N252 G01 Z0.005 F50.

N254 X-1.8456 F1.2

N256 X-1.8455 Y1.05

N257 Z0.055 F50.

N258 G00 Z1.

N259 G91 A90.

N260 G90

N261 M99

N262 M09

N263 M05

N268 M01

Now this section of code repeats 4 times then goes to the next tool. Thanks for your help!

 

cheers.gif

 

[ 06-16-2004, 10:07 AM: Message edited by: Toolfab ]

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