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 10-24-2009, 09:37 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road
G52 Main vs Sub

I should probably do some more research and reading before posting this but I'm going to ask anyway.

It seems that if I develop a program for a single part then want to move that part to a multipart fixture that G52 is a great way to do it. First, is this typically the way someone would do this? Develop the program first then do a multipart fixture and use a macro with a loop to setup for running that same program at each part location on the fixture?

If so, and it would seem so, what is the preferred method of Main vs Sub? It seems you can do it one of two ways. 1) The main program has all the G52 calls and the sub contains the program that does the work. 2) The main program does the work and the sub has all the G52 calls to shift everything around each time.

If I am indeed correct in my assertion above, what is the preferred method? The G52 shifts being in the main program or the sub program? It would seem having the main program doing the work would be the preferred way so that if you want to do some other work that's not repeated at each location you could so before or after the looped section of the main program.
Reply With Quote

  #2   Ban this user!
Old 10-24-2009, 09:44 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road

Thinking about it you could do the non-repeated work either way. But still, is there a preferred method?
Reply With Quote

  #3   Ban this user!
Old 10-24-2009, 09:58 AM
 
Join Date: Oct 2009
Location: USA
Posts: 118
leggazoid is on a distinguished road

Yes, there is a preferred method. Assign each part, (or each face if you have a 4th and or 5th axis) a different work offset (G54, G55, G56, G57, G58, G59 etc...). When the parts start to get complicated with different heights you need to watch your z moves and your clearance between parts.
Reply With Quote

  #4   Ban this user!
Old 10-24-2009, 10:05 AM
 
Join Date: Feb 2007
Location: USA
Posts: 21
3d GEORGE is on a distinguished road
G52 to TravisR100

I've done a lot of G52 work and find that a DO/WHILE statement in the main is the safest method. The subprogram will contain the part parameters. Callup can either be an M98 or a G65. I prefer the G65 because you have more flexibility with sub programs inside of subprograms. Hope that helps you. Good luck.
Reply With Quote

  #5   Ban this user!
Old 10-24-2009, 10:08 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road

I'm not talking about using different work offsets (g55, g56, etc.). I'm talking about using changing G52 values. If you were to use different offsets (g55, g56, etc.) for each part position you would have to change every single one of them of your fixture changed position on the table between part runs. Using differing G52 values to simply offset from the original G54 would mean changing only one work offset (G54) should the fixture be moved with relation to the table between part runs.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-24-2009, 10:10 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road

Granted, you could do some fancy programming using G10 to update those other offsets (G55, G56, etc) based on the G54 but G52 would seem to be the much simpler solution.

But as to my original question...
Reply With Quote

  #7   Ban this user!
Old 10-24-2009, 10:22 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road

3d, thanks for your method and the reasoning. The reason I asked this question is that I found myself in this situation. I had a part program I had created and then wanted to fixture it on a multipart fixture. Is this a common occurrence? Is this typically how the development cycle goes? Prove out the single part program first then modify the program for the multipart fixture?

Anyone else prefer one of the two methods I mentioned over the other?
Reply With Quote

  #8   Ban this user!
Old 10-24-2009, 10:25 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road

3d, in rereading your post I'm still a little confused. Are you doing the cutting in the main or the sub? From what you posted you're using the DO/WHILE in the main but is that loop doing the cutting work or setting the G52's?
Reply With Quote

  #9   Ban this user!
Old 10-24-2009, 10:32 AM
 
Join Date: Feb 2007
Location: USA
Posts: 21
3d GEORGE is on a distinguished road
G52 to TravisR100

You can either post the individual fixture location coordinates as X & Y values in G52 or use a variable(s) in the G52 callup (indicating where the X0, Y0 of each of your fixture locations are) then enter your subroutine either with M98 or G65. As before, I prefer G65 because of it's greater versatility. Does that help?
Reply With Quote

  #10   Ban this user!
Old 10-24-2009, 10:42 AM
 
Join Date: Feb 2007
Location: USA
Posts: 21
3d GEORGE is on a distinguished road
G52 to TravisR100

Perhaps a simple example will demonstrate.
N100G52 X1.25Y2F5.
N110G65P1000
N1000G90G0X0Y0
N1001G1X2.3Y2.5
N1002XxxxYyyy
N1003XxxxYyyy
N1004G0Z0
N1005X0Y0
N1006G52X0Y0M98
N120G52X2.Y3.
N130G65P1000
M30
Does this clarify?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-24-2009, 10:42 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road

I get that you can use absolute values when setting the G52's or you can use variables that are incremented in a loop. Maybe I'm just not explaining myself clearly. Using absolute values or variables, you could still do the cutting in the sub or in the main program when using M98. My question is it preferred to do the cutting in the sub or the main?

Also, I think that any machine can use the M98, M99 calls but only a machine with the Macros option can use G65. Is that the case?
Reply With Quote

  #12   Ban this user!
Old 10-24-2009, 10:50 AM
 
Join Date: Jan 2007
Location: US
Posts: 432
TravisR100 is on a distinguished road

Wow, no. That confused me even more. Why an M98 call in addition to the G65? You're specifying P1000 with your G65 call but there's no O1000 that it's calling nor is there any M99 for a return.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- Main and Subprogram vanm Fadal 7 10-06-2009 10:15 AM
rod and main bearings Hiredgun I.C. Engines 3 05-04-2008 12:46 AM
Your Main Page Is Down ! CheekieMonkies Forum Questions or Problems 10 08-19-2007 05:26 PM
Main current for a drive? (BRU-200) toninlg Servo Motors and Drives 1 06-02-2007 01:27 PM
main haas board daleman Haas Mills 4 03-16-2007 06:58 PM




All times are GMT -5. The time now is 08:30 PM.





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