CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > Haas Mills


Haas Mills Discuss Haas machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-16-2006, 10:23 AM
 
Join Date: May 2006
Location: USA
Posts: 11
CuttingTools is on a distinguished road
Haas Mini Mill Programming Question

What would be the best way to program a series of Identical parts on the same sheet of raw materiaL? what I want to do is machine a series of Flanges ( 40 Pcs total, 8 in the X axis and 5 in the Y axis) on a sheet of 12" x 12" Delrin. These flanges have a 5/8" bore in the center, two mounting holes and an oval shaped outside profile. I have the first flange completely programmed in an absolute mode and with toolcomp on for the outside profile. I put this program into a sub and tried doing a incremental shift ( in abs and Incr mode) to the next piece and then calling up the sub but that will not work as it goes back to the original X,Y Zero location. Any Ideas?

Thanks in advance!
Reply With Quote

  #2  
Old 05-16-2006, 10:35 AM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

Are you writing this by hand? Have you tried the quick code?

If you have the NC program for one part, I could transform it to run multiple parts for you with a VB program I made.
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 05-16-2006, 10:56 AM
 
Join Date: May 2006
Location: USA
Posts: 11
CuttingTools is on a distinguished road

Yes I have a verified program for one part. I also have the quick code but I have not found a way to program muliples using the QC.
Reply With Quote

  #4   Ban this user!
Old 05-16-2006, 12:12 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by CuttingTools
What would be the best way to program a series of Identical parts on the same sheet of raw materiaL? what I want to do is machine a series of Flanges ( 40 Pcs total, 8 in the X axis and 5 in the Y axis) on a sheet of 12" x 12" Delrin. These flanges have a 5/8" bore in the center, two mounting holes and an oval shaped outside profile. I have the first flange completely programmed in an absolute mode and with toolcomp on for the outside profile. I put this program into a sub and tried doing a incremental shift ( in abs and Incr mode) to the next piece and then calling up the sub but that will not work as it goes back to the original X,Y Zero location. Any Ideas?

Thanks in advance!

G52 would be perfect for this. I would approach this by making the center of the 5/8" bore the work zero for the part and put my machine work zero G54 at the far right corner of the stock.

Relative to the stock dimensions your first part is going to be centered at about X-1. and Y-2. (This is just a rought guess for explanation you will need to accurately locate each center.)

Your default is G54 so you program G52 X-1. Y-1. and then call the sub. Make sure the sub does not mention any work zeroes. The sub uses that G52 location as the work zero for the first part.

Then you program G52 X-3. Y-1. and call the sub again and so on for all the parts.

You will have a program with 40 G52 Xx Yy followed by the sub call and one subroutine.

It does not matter where you have placed the part work zero relative to the part you simply make the X Y in the G52 the place where you want it to be on the stock.
Reply With Quote

  #5   Ban this user!
Old 05-16-2006, 12:17 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

060516-1206 EST USA

Cutting Tools:

Forget QuickCode.

You can easily do what you want with G52 in either HAAS or Fanuc mode.

Your program will be in a loop or in a subroutine. At the beginning of each pass (loop or subroutine) you change the values in G52 from within your program.

I have discussed G52 in several different threads. However, the search function in CNCZone is very poor and a search for G52 produces nothing.

I see Geof beat me to a response.

.
Reply With Quote

Sponsored Links
  #6  
Old 05-16-2006, 12:46 PM
Rekd's Avatar
Community Moderator
 
Join Date: Apr 2003
Location: teh Debug Window
Posts: 1,877
Rekd is on a distinguished road

Originally Posted by gar

Forget QuickCode.

.
I only brought up QC because I wasn't sure if he had it programmed, and if he was using a CAM program.
__________________
Matt
San Diego, Ca

___ o o o_
[l_,[_____],
l---L - □lllllll□-
( )_) ( )_)--)_)

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #7   Ban this user!
Old 05-16-2006, 12:57 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by gar
......Forget QuickCode.......
Improve efficiency! Don't bother learning QuickCode in the first place
Reply With Quote

  #8   Ban this user!
Old 05-16-2006, 01:02 PM
 
Join Date: May 2006
Location: USA
Posts: 11
CuttingTools is on a distinguished road

Thanks Geof & Gar for the reply!

I was able to get the first row of parts ( 8 Pcs.) programmed using G10 and incrementing the x axis by 1.375 for each part. After the G10 L2 P1 G91 X 1.375 command I would then call up the sub containing the part geometry. This is a more involved method but it looks like it would have worked. I am going to go back and rewrite the program using your method as it is much cleaner.

Thanks Again for the speedy replies!
Reply With Quote

  #9   Ban this user!
Old 05-16-2006, 02:34 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Using G10 and incrementing can give you a shorter program in number of lines (I think) but you have to nest your subroutines and have three G10 each in a subroutine. One G10 increments X negative and it is in a subroutine called 7 times another G10 increments Y negative and is called after the 7 calls to the the negative X G10 subroutine and then there is another G10 subroutine which increments X positive called 7 times. Within these subroutines the call to the working subroutine follows each G10 command.

It is certainly a more involved method to initially program but it has the advantage that you can change the positions of your individual work zeroes just by editing two X incremental values and one Y. Also you can extend the array in either direction by changing the L count for the number of times the G10 is incremented. With the G52 method you have to edit all forty G52 commands to change the array and have to add commands to extend the array.
Reply With Quote

  #10   Ban this user!
Old 05-16-2006, 06:22 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

060516-1812 EST USA

Cutting Tools:

Go to the following thread and see if you can follow any of the discussion.

http://www.cnczone.com/forums/showth...=g52+haas+mode

Later I will show you how you can increment the G52 values to move from position to position. But fundamentally you need to understand how G52 works in HAAS and Fanuc modes and the differences. G52 can be a very powerful tool.

"michael" "miljnor", if you are viewing this you can protect yourself relative not zeroing G52 by operating in Fanuc mode. But it means whatever values you want in G52 have to be inserted from within your program. Any manually preset values in G52 are zeroed at the start of your program. How is your selector switch working?

.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-16-2006, 08:07 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

060516-1945 EST USA

A sample using G52. This is the critical portion of a total program.

This illustration is simply for a single axis increment (X), but can be extended to multiple axes. Also this allows you to pre-specify the number of parts to run.

A technique used here for incrementing was required because this must run on our 1993 machine. But this technique illustrates a method that would allow unequal increments, because each position is defined in a table. On a newer machine with equal increments it is much simpler.

Also illustrated in this example is a method to use one tool for all the parts before switching to the next tool.


(Have to use the monkey business of sub 1500 because of HAAS problem.)
(G54 is set to the center of the tooling plate reference hole.)

G52 X 0. Y 0.


(******** You must set value for number of parts ****)

#151 = 1 ( replace 1 with 1 thru 11 for number of repeats wanted. )
( #150 is used for loop counter )

(***********************************)

(Note this capability is very useful to debug a part and then change the count to run multiple parts.)
(This eliminates multiple tool changes at one G52 location, and only does a tool change each N (#151) parts.)



(********************)
(**** TOOL Change to Drill **** --->2 IDD21D HAAS TL # 14 )
( #38 0.101 for self tap screws )

G65 P6901 E54 R 0.101 S 1800 T14 D14 ( call tool chg sub )


#150 = 0 ( initialize loop counter )

N250
M97 P 1500 ( sets G52 for this pass, 150 incremented in N1500 )

G99 G81 F 40.0000 R 0.2000 Z -0.5000 L0
M97 P 16 ( #38 0.101 )

if [#150 LT #151] goto 250

G00 Z 1.5000
G52 X 0. Y 0.
G80





(********************)
(**** TOOL Change to Drill **** --->4 IDD22D HAAS TL # 9 )
( #9 drill )

G65 P6901 E54 R 0.196 S 1800 T09 D09 ( call tool chg sub )

#150 = 0 ( initialize loop counter )

G99 G81 F 40.0000 R 0.2000 Z -0.3750 L0

N251
M97 P 1500 ( sets G52 for this pass, 150 incremented in N1500 )
M97 P 15
if [#150 LT #151] goto 251

G00 Z 1.5000
G52 X 0. Y 0.
G80







(********************)
(**** TOOL Change to Mill Finishing **** -->7 IDM12F HAAS TL # 12 )

G65 P6901 E54 R 0.240 S 5000 T12 D12 ( call tool chg sub )

#150 = 0 ( initialize loop counter )

N252
M97 P 1500 ( sets G52 for this pass, 150 incremented in N1500 )
G0 X 1.0500 Y 1.1225
Z 0.1000
G01 F5.0 M97 P 100 Z 0.1000
G00 G90 Z 0.1000

if [#150 LT #151] goto 252

G00 Z 1.5000
G52 X 0. Y 0.
G80





M09
M05
G90 G0 G53 Z0
G53 X-18.0 Y0
M30






N 1500

( #150 IS INITIALIZED BEFORE CALL TO SUBROUTINE )

IF [ #150 EQ 0 ] GOTO200
IF [ #150 EQ 1 ] GOTO201
IF [ #150 EQ 2 ] GOTO202
IF [ #150 EQ 3 ] GOTO203
IF [ #150 EQ 4 ] GOTO204
IF [ #150 EQ 5 ] GOTO205
IF [ #150 EQ 6 ] GOTO206
IF [ #150 EQ 7 ] GOTO207
IF [ #150 EQ 8 ] GOTO208
IF [ #150 EQ 9 ] GOTO209
IF [ #150 EQ 10 ] GOTO210
IF [ #150 EQ 11 ] GOTO211
#3000= 15 (N1500 - #150 OUT OF RANGE)

N200 G52 X0.
GOTO1501
N201 G52 X-2.1
GOTO1501
N202 G52 X-4.2
GOTO1501
N203 G52 X-6.3
GOTO1501
N204 G52 X-8.4
GOTO1501
N205 G52 X-10.5
GOTO1501
N206 G52 X-12.6
GOTO1501
N207 G52 X-14.7
GOTO1501
N208 G52 X-16.8
GOTO1501
N209 G52 X-18.9
GOTO1501
N210 G52 X-21.
GOTO1501
N211 G52 X-23.1
GOTO1501

N1501
#150= #150 + 1
M99

.
Reply With Quote

  #12   Ban this user!
Old 05-17-2006, 10:59 AM
 
Join Date: May 2006
Location: USA
Posts: 11
CuttingTools is on a distinguished road

Give me a few days to look over and digest the use of the G52 command. I have managed to get a working program using G10 but I would also like to learn more about G52. After the current job is done on the machine I will have some time to experiment. Thanks again for all your help!

Last edited by CuttingTools; 05-17-2006 at 11:03 AM. Reason: Incorrect " G" command
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 06:39 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361