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! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-02-2007, 10:11 AM
 
Join Date: Sep 2006
Location: uk
Posts: 136
inflateable is on a distinguished road
Mental block on G52

I need to do some patterned stuff, and I've forgotten how a g52 works.

Well, not forgotten how it works, but how it behaves.

If I'm at machine coords X0Y0Z0 and I then run the line
G52 X10, Y10, Z10 to shift the coord system - does the tool move to the new zero position on reading the G52 line?

Reply With Quote

  #2   Ban this user!
Old 05-02-2007, 10:54 AM
 
Join Date: Apr 2007
Location: usa
Posts: 52
magneto259 is on a distinguished road

Yes from my understanding it should. I just went though this with using G57.
Reply With Quote

  #3   Ban this user!
Old 05-02-2007, 10:56 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by inflateable View Post
...If I'm at machine coords X0Y0Z0 and I then run the line
G52 X10, Y10, Z10 to shift the coord system - does the tool move to the new zero position on reading the G52 line?

No. Well I will qualify that, on a Haas running in Fanuc mode the answer is no and I think G52 is a no motion command.

G52 simply puts the X, Y, Z coordinates in a G52 register. These coordinates are always added into the controller calculations for any active Work Coordinate system.

For example if your G54 has coordinates X-10. Y-10. Z0. and you have the command G52 X5. Y5. Z0. any motion command after the G52 uses the combination to figure out where to go to. G00 X0. Y0. will move to a location that is X5. from X-10. and Y5. from Y-10. that is the current G52 work zero.

To go back to just using the G54 location you use G52 X0. Y0.

EDIT: I checked and in the Haas manual it say "G52 is a non-modal, no motion code" but whether this is just Haas or whether this is the standard for G52 I do not know.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #4  
Old 05-02-2007, 11:20 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

I don't program on a regular basis, but I seem to remember from my Fanuc course days, that G52 is termed a Local or Child Coordinate system within a work coordinate system, and as geof said the G52 basically shifts the existing work coordinate e.g. G54, by the amount in the G52 command.
Any subsequent move are from this new local system.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 05-03-2007, 02:03 AM
 
Join Date: Sep 2006
Location: uk
Posts: 136
inflateable is on a distinguished road
Cool

Nice, thanks chaps.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-03-2007, 05:54 AM
 
Join Date: Dec 2006
Location: usa
Posts: 247
joecnc1234 is on a distinguished road

For yasnac g52 resets to machine coordinate system, I don't know if your'e talking about g92 or some fucntion I've never used before, and I've programmed and ran haas machines for quite a few years. I just don't ever remember using g52. for g92 you shift with g91 and set g92 x0 y0 and move in g90. Just a thought and my confusion.
Joe

I believe if you added a value with G52 it would probably work for a work shift. I have never tried it, sounds interesting though.
Reply With Quote

  #7   Ban this user!
Old 05-03-2007, 06:12 AM
 
Join Date: Sep 2006
Location: uk
Posts: 136
inflateable is on a distinguished road

G52 can used in a similar way to G92, but it's MUCH easier to use - you can use it regardless of the current position of the tool -it's like a temporary work offset, valid only for the program you're running.

Personally I think G92 commands are obsolete (and dangerous) and use work offsets G54-g59 and tool length offsets instead.
Reply With Quote

  #8   Ban this user!
Old 05-03-2007, 06:23 AM
 
Join Date: Dec 2006
Location: usa
Posts: 247
joecnc1234 is on a distinguished road

Thanks inflateable like I said I've never used g52 except to reset to machine zero I will try it today and see what happens. I personally don't like g92 also it creates to much confusion so I'm looking forward to trying G52. Again thanks. Thats why I like this forum I learn every time on on it.
Joe
Reply With Quote

  #9   Ban this user!
Old 05-03-2007, 06:40 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070503-0626 EST USA

inflateable:

On a HAAS machine in HAAS mode the G52 values remain unchanged unless you change them. This includes program start and machine power down and up. But on the HAAS lathe there is no HAAS mode. The HAAS mode is extremely useful and we always operate in this mode. However, there are many people that are afraid of using this mode.

I do not use G92, but on a HAAS machine I believe G92 is almost identical to G52 HAAS mode. There may be fewer ways to set it, and its content is displayed in a less obvious location. This needs further study.

On HAAS in Fanuc mode there are many conditions that reset G52 to 0.

.
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
New Kid on the block GEORGETOUBALIS CNCzone Club House 1 09-14-2006 03:46 PM
Help with block Max-DK TurboCAD/CAM 0 03-24-2006 10:10 AM
RS232 program block by block smoregrava General CNC (Mill and Lathe) Control Software (NC) 3 12-22-2005 12:52 AM
Mach 2 mental block - need help! buscht Mach Software (ArtSoft software) 6 10-12-2004 07:53 AM
The new guy on the block ThoR General Metal Working Machines 6 01-23-2004 04:29 PM




All times are GMT -5. The time now is 08:21 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