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 10-06-2011, 06:42 PM
 
Join Date: Jul 2010
Location: USA
Posts: 169
eliot15 is on a distinguished road
Is G92 Evil Or Should I Learn To Use It

I apologize for not having the actual code to post.

Buddy o' mine was tearing his hair out on a program today that was doing a helical interpolation (I think) with like L49 (49 repetitions of a sub routine).

I'm pretty sure the sub routine had a G92 in it. (again, I apologize for not having the actual code).

So he'd reset the program, and execute the line:

G43 Z1. H2

but the tool would plunge to the last iteration of the sub program the control seemed to know about (or at least thats how it appeared to us). The tool wouldn't recognize Z1. It just kept going, and going, and going..... to like Z-3.000

I kept telling him, "DUDE, either your tool isn't touched off right, or your Z0. isn't picked up right!!!!" And he said, "DUDE, no way!!!". So we checked both, and both were right!!!!

So I went into MDI mode and brought his tool down to Z1. All was well. I guess I reset some modal values when I did that, but whats up with this G92 stuff?????

I'm SURE this was a G92 related problem, but I've never used G92 'cause I hear its evil.

Is it?????? What does it do????
Reply With Quote

  #2   Ban this user!
Old 10-06-2011, 07:10 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

It is EVIL buahahahahaha

I have never used G92 but I read up on it when I started using G52. They are similar in some ways but very different in others and it is the difference I didn't like.

Here is my understanding of it.

With G92, no matter what Work Zero you are using, the location of the tool at the time you command G92 becomes the Work Zero location. Which sounds fine and is fine for the first time you command G92. For instance if you have G54 as the active Work Zero and it is located at X-4. Y-4. you can move to X-1. Y-1. and command G92. Now your work zero is at X-5. Y-5. and if you repeat the move and command you gradually walk off the table. And if you want to get back to the original Work Zero location you need to know where it is within the, now shifted, Work Zero you are working in.

I got the feeling I didn't know where I was when I started thinking about how to program multiple locations using G92. With G52 you explicitly define where an extra Work Zero is located, but you do not move the original Work Zero. Using a similar example to that above with G54 at X-4. Y-4. the command G52 X-1. Y-1. tells the machine to use the position X-5. Y-5. as the Work Zero and G52 X0. Y0. tells it to go back to the original X-4. Y-4. I found this easier to visualize when planning a program with multiple locations and multiple subroutines.

In actual fact the way the machine controller handles G52 is that it always adds the G52 coordinates to the active Work Zero coordinate. But if the value(s) in the G52 register are zero nothing is added.

I hope this helps rather than confuses. I am good at both.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #3  
Old 10-07-2011, 12:01 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I think of G92 as a shift of the G53 machine coordinate system. And since G53 underlies all the other work offsets, a G92 command will cause a proportionate shift of all work offsets.

There is no effective way to cancel a G92 offset except to make a movement to a known position in the G53 machine coordinate system. Typically, this would be machine home. So you'd make a movement to machine home, and command G92 X0 Y0 Z0 at that position and it is effectively cancelled.

If you happen to run a Haas, it has G92 way down at the bottom of the list of work offsets. Every new G92 command has a cumulative effect, and if you go into the work offset register, you can view the accumulated G92 values. In the Haas, you can cancel the current G92 by entering all zeros into the G92 register.

It is valuable to know how to use G92...not so much for 3 axis work, but you can do some miracles saving time on multi-turn 4th axis work.

For repeats in a subroutine, you must be very careful to know exactly where you have the tool positioned at the moment the G92 is commanded, simply for the reason that the new G92 command will add its new values to the existing accumulated G92 values.

Starting over with G92 at the beginning of the program basically requires a return to machine home, with a command to set G92 X0 Y0 (you can leave any axis out if you are not making any adjustments in said axis) while at home position. Then you can proceed into the subroutine and use the G92 in an accumulative fashion again.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #4   Ban this user!
Old 10-07-2011, 04:28 AM
 
Join Date: Jul 2010
Location: USA
Posts: 169
eliot15 is on a distinguished road

Wow. Thats scary. Remind me to never use G92.

Odd, though, that hitting RESET didn't seem to cancel the controls knowledge of its last commanded G92 location (if thats what was actually happening, though that sounds kinda' plausible, based on your not confusing explanation).

The tool kept running to that location (the Z depth at like iteration number 39 of the sub program) even after hitting RESET. Weird.

Only way I could get the machine to behave like the machine I love and know again was to call it a *$*^#*&@, and then execute another G54 in MDI mode.

Thanks for the reply.
Reply With Quote

  #5   Ban this user!
Old 10-07-2011, 04:32 AM
 
Join Date: Jul 2010
Location: USA
Posts: 169
eliot15 is on a distinguished road

And thanks HuFlungDung (which is really fun to say). Didn't see your post 'till after my last one.

Oh, and "First you get good, then you get fast, then you get grouchy" has become a bit of a mantra
at work. Just rattled it off one day, but it really caught on....
Reply With Quote

Sponsored Links
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
Problem- Mikron WF 41 C with evil german alarm MoraTradgnist General Metal Working Machines 1 07-18-2011 11:22 AM
The Evil Dishwasher Spiv DIY-CNC Router Table Machines 6 03-07-2011 05:02 PM
How evil is a P-Channel MOSFET in the real world? CrazyIvan General Electronics Discussion 9 04-11-2009 10:35 AM
Evil, Awful, Hateful Crap! jim_stoll Benchtop Machines 33 11-15-2007 04:15 PM




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