Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Haas Sub-Routines

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming
View previous topic :: View next topic  
Author Message
JamieR
Frequent Poster


Joined: 30 Jun 2004
Posts: 54
Location: Chicago

PostPosted: Wed Apr 27, 2005 10:35 am    Post subject: Haas Sub-Routines Reply with quote

I have a question about subroutines on my Haas VF-6. I want to mill the same contour in several places – a 10 x 10 mm rectangle, repeated 100 times.

What’s the best way to do this?
_________________
++++++++++++++
Thanks!
Back to top
View user's profile Send private message
JoeM
Master Poster


Joined: 09 Jul 2004
Posts: 122
Location: Jackson Hole, Wyoming USA

PostPosted: Wed Apr 27, 2005 10:39 am    Post subject: Reply with quote

It’s pretty easy. Smile

Here is an example, in inches, of calling an incremental (G91) pocket subroutine from within a main program.

Code:
Main Program:

O01235
T1 M06
G90 G54 G00 X-9. Y5. S1500 M03
G43 H01 Z1. M08
G01 Z0.1 F50.
M97 P5000 
X-6. Y4.5
M97 P5000
X-3. Y4.
M97 P5000
X0. Y3.5
M97 P5000
X3. Y3.
M97 P5000
X6. Y2.5
M97 P5000
G00 Z1. M09
M05
G91 G28 Z0
G91 G28 Y0
M30
 


(first pocket location)


(first pocket subroutine call)
(second pocket location)
(second pocket call)
(third pocket location)
(third sub call)
 
(fourth sub call)

(fifth sub call)

(sixth sub call)

 
(Subroutine for pocketing)
N5000
G91
G01 Z-0.35 F30.
X-1. Y1. F7.
Y-2.
X2.
Y2.
X-2.
X1. Y-1.
G90
G00 Z0.1
M99
 (must pre-drill)
(no cutter comp)

(depth of pass)
 



TIP: depending on your machine [given serial number] it might have a powerful Haas option that allows you to manipulate subroutines using rotation and/or scaling. You will still have to program the subroutine in incremental mode. With this option enabled, G68 commands rotation at any angle from the designated center of the part or from the subroutine zero point, and G51 controls scaling. Your operator’s manual has details on the correct use of these G codes, or you can contact us for further assistance.
_________________
Thanks.
===================
I would rather by Fly Fishing!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group