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 > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-25-2008, 08:21 AM
 
Join Date: Jul 2007
Location: australia
Posts: 24
monaro mike is on a distinguished road
Question G92 coordinates

Hi to fanuc fanatics
I always use G92 to program absolute coordinates on my 1987 leadwell mcvo oma, but when inserting these numbers after G92 they must be opposite to the actual movement to establish zero point .
For example :move mc to x200. y -150. z-250.
Program must read G92 x-200. y150. z250.
Thereafter all subsequent commands use positive and minus in the correct positions, its no big deal ...but annoying and if it can be changed easily then can someone please tell me how ?
I suspect its something set up by machine tool builder and not fanuc

cheers from Mike
Reply With Quote

  #2   Ban this user!
Old 07-25-2008, 10:05 AM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

Perhaps you could move there first, then Zero your coordinate system from there.

G00X200.Y-150.
Z-250.
G92X0Y0Z0

This might also help to conceptualize why this is the way it is. When you call a G92, you are describing to the control where "right now" is. So, if X is +200. away, then "right now" you are at X-200.

Helps?

By The Way, I strongly recommend moving away from using G92 anywhere. Just asking for trouble, in my book! Learn about G54-G59, G10.
Reply With Quote

  #3   Ban this user!
Old 07-25-2008, 10:16 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Originally Posted by beege View Post
This might also help to conceptualize why this is the way it is. When you call a G92, you are describing to the control where "right now" is. So, if X is +200. away, then "right now" you are at X-200.

Helps?

By The Way, I strongly recommend moving away from using G92 anywhere. Just asking for trouble, in my book! Learn about G54-G59, G10.
Beat me.

Stated another way the X,Y values you put on the G92 line are the directed XY distances from where you want zero to be to where the spindle is currently sitting.

And yes if the control has the G54-59 work offsets, use them and forget that G92 ever existed.
Reply With Quote

  #4   Ban this user!
Old 07-26-2008, 12:59 AM
 
Join Date: Jul 2007
Location: australia
Posts: 24
monaro mike is on a distinguished road
G92

Hi again,
I think i did,nt provide enough info , on my m/c x axis homing direction is minus (table to right > ) y axis positive (table towards operator ) and of cause z axis positive (UP).
I was always taught to use G92 not G54-59 more on that later, so after homing m/c i manually move axises to clock up a face or hole on part to
establish work position coord. (absolute zero), easy, then i note on the position page ...machine posn. from home , e.g x200. y-150. z-250, i use
these no.s for G92 .....but it has to be written in program as G92 x-200. y150.
z250. ( the opposite to the actual movement direction ) so i assume its just
a odd thing about this m/c .
I think we where told to stay away from G54-59 because of the potential devastation that could be caused if you input a G54 instead G55 etc. and also
every time you call up a new program, you have to remember to input new coord. into the G54-59 register unless you only ever have 6 programs .
With G92 the absolute zero points are already there in the program , provided you posn. the part correctly....there,s little room error .
I,d appreciate others opinions on this subject.

thanks
Reply With Quote

  #5  
Old 07-26-2008, 02:52 AM
*Registered*
 
Join Date: Jan 2006
Location: Seattle
Age: 52
Posts: 883
Mike Stevenson is on a distinguished road

My opinion is this:

1. G92 = newbie

2. G54-G59 = knowledgeable

You said, "stay away from G54-59 because of the potential devastation?"

Where on god's green earth did you hear that one?

G92 can be just as devastating as G54-G59 if is set wrong.

Last edited by Mike Stevenson; 07-26-2008 at 10:28 AM. Reason: spelling
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-26-2008, 03:56 AM
 
Join Date: Jul 2007
Location: australia
Posts: 24
monaro mike is on a distinguished road
G92 unpopular !

I hear what your saying , Mike Stevenson !
The guy who initially showed me how to program this m/c was well respected
in the industry (albeit a long time ago ) and there was,nt much he did,nt know
not unlike yourself no doubt , i figure he may have thought that G92 setting was somehow safer for newbe,s at the time , and ive always used it when operating fanuc control machines .
Most of my time has been on mazak machines ( lathes) 100ms and older quickturns so ive been spoilt with conversational programming etc .
Now that i have bought this machining centre i,m trying to get a better understanding of fanuc methods etc .....so if i ask a couple of dumb questions occasionally ...i,ll get over it !

cheers from Mike
Reply With Quote

  #7   Ban this user!
Old 07-26-2008, 07:38 AM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

G92 was the only way to set a coordinate system back in the 70s and 80s. The mulitple coordinate systems of G54-G59 were introduced on the Fanuc system 6M-B around '81 or so. A lot of "old timers" like me still like to use G92 out of habit.

It really doesn't matter which method you use. You're just establishing a zero for your program, so why argue over method? I will say that G54-59 is best if you want to jump from one coordinate system to another in the middle of a program, or if you have several established reference points on the table that you use for "zero" with different fixtures or different tools. Also, G54-59 is great if you're using a pallet shuttle.

I always used G92 in the old days, and it worked great. My routine was to zero-return the machine, move out to a known position on my part, then use G92. These first blocks of the program would use block-deletes (/), so when I powered up the machine and ran the first part, I could turn on the BDT switch and run parts without that zero-return move. Something like this:

/G00G91X-1.Y-1.Z-1.
/G28Z0
/G28X0Y0
/X--.----Y--.----Z--.---- (move to my part zero)
/G92X0Y0Z0
G90
(the rest of your program)
M30

The first block would move an inch in the opposite direction from zero-return, just in case the machine was at the zero-return position when I last powered down. Just make sure that you're not within an inch of anything when you cycle start with BDT turned off.

The G91 with the G28 is essential, because G28 is really a zero-return BY WAY OF AN INTERMEDIATE POINT. If you're in G91, that intermediate point is always the same position as where you already are (an incremental move of zero), so no unexpected moves occur.
Reply With Quote

  #8   Ban this user!
Old 07-26-2008, 12:36 PM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

I to was taught to use G92 back in the day. When we got my new mill, the MB taught me to use G54. The G92 was cool cause I could just call it in my program. The G54 you had to go to the offset page to enter it in. Didn't like that so I wrote a macro(O9010) that is called with a custom Gcode(G70) so I can use it just like the ole' G92. I dont know if you have macros enabled, but here it is...

%
O9010(SET WORK COORD.)
#3003=1
IF[#7GT#0]GOTO10
IF[#19EQ#0]GOTO3
IF[#19EQ0]GOTO1
#19=ABS[#19]
IF[#8EQ#0]GOTO99
G22Z[#5023+[-#19]]
F1
GOTO2
N99G22X[#5021+.001]Z[#5023+[-#19]]I2.5000
F2
GOTO2
N1G22X0.000Z0.000I0.000
F0
N2#33=0
N3IF[#24NE0]GOTO4
#5221=#5021
#33=1
N4IF[#25NE0]GOTO5
#5222=#5022
#33=2
N5IF[#26NE0]GOTO6
#5223=#5023
#33=3
N6IF[#1NE0]GOTO7
#5224=#5024
#33=4
N7IF[#33NE#0]GOTO8
#5221=#5021
#5223=#5023
#5224=#5024
N8G54
M#13
#3003=0
M99
N10
#3000=1(NOGO4U)
%

So now instead of programming a G92XZYB or whatever, I can call it with a G70XZYB. just as handy and more with the times. This macro is long cause I call set my zeros different ways and use it to set my stroke check.
Reply With Quote

  #9  
Old 07-26-2008, 02:36 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Mike Manaro,
What other Gcode will that machine recognize? Does it permit commands in the machine coordinate system (G53) as well as the work shifts G54-G59?

I'm not sure why, if you move to the work datum, that you would want anything other than G92 X0 Y0 unless the control is keeping track of where the work home is relative to the machine home.

If the machine is parked at machine home and you want the work datum elsewhere, then, IMO you use coordinates with G92 X and Y to designate that the work home is not at the present location but is elsewhere. In this case, the signs should not need inversion.

If possible, I prefer to use a G53 line before a G92 line because this forces the machine to move to a known position in the machine coordinate system before the coordinate system is shifted by the G92. This can help prevent crashes after a program is aborted but the operator must always start at the beginning of the program to ensure that the G53 is read. Either that, or start from machine home.
__________________
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

  #10   Ban this user!
Old 07-27-2008, 06:38 AM
 
Join Date: Jul 2007
Location: australia
Posts: 24
monaro mike is on a distinguished road
Smile G92 problem solved

Great response guys,
First Dan Fritz,
Glad to hear a guru like yourself used G92 in the 1980s which is
when i started, i was interested in your method of accident prevention at start of your programs.
My programs all start with this sub:
05000.
M98P9000.

G91.
G28 ZO.
G28 XO YO.
G90.
M99.

G92 X......Y......Z.......(at this point +@- signs had to be opposite )
GO XO YO ZO.
rest of program
M30.

Now ive tryed it the way you and Beege and the Huflung describe it
05000.
M98 P9000.
G0 X......Y......Z......( +@-signs match actual moves now)
G92 XO YO ZO.
rest of program
M30.
Now no problem! also Dan my "87 OMA control has G54-G59....must be one of the first to have this option.
To Jamesweed, macros are enabled on my m/c, bit of a mouthful that one you
sent, still trying to get my head around it ! thanks
To Huflung, tried G53 and control does,nt have it ,

Thanks to all
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-27-2008, 04:13 PM
 
Join Date: Jan 2007
Location: MI. USA
Posts: 203
CarbideBob is on a distinguished road

G92 is just preset readout. No different than the preset button on a DRO on mill or comparator.

You are at zero ref position and put in G92 X-200. The machine must now move 200 in the plus direction to get to zero.

Many older controls don't support G54 or it is an option so this is your oly way of moving the zero.

Gets real confusing if you do a G92 while not at the zero ref position.
I use both methods and may sometimes have multiple G92s in a program. Useful if you have more repeating patterns than you have coordinate systems or tools with more than one cutting point. G54-G59 is easier to understand.
Bob
__________________
You can always spot the pioneers -- They're the ones with the arrows in their backs.
Reply With Quote

  #12   Ban this user!
Old 07-27-2008, 08:53 PM
jamesweed's Avatar  
Join Date: Jan 2007
Location: USA
Posts: 82
jamesweed is on a distinguished road

hey monroe mike,
that macro example i used is ran on a custom made mill that is used to mill feedscrews. so it may be a little strange for a mc. its programmed to set all axises but y to zero if no arguments are called.
ex...G70;
or i can set one axis at a time if i want by using a argument. ex...G70X0Z0;
also i use this same program to set stroke check2. so thats why its a mouthful. i just wanted you to see that using G54 can be as easy as G92
good day,
Jim
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!- Yasnac MX2 work coordinates. PHD General CNC (Mill and Lathe) Control Software (NC) 4 05-14-2009 08:47 AM
Really Big Calculator for Polygonal Coordinates Geof Haas Mills 1 05-12-2007 12:49 PM
G31 uses machine coordinates? kerryveenstra Tormach PCNC 1 04-27-2007 01:45 AM
FanucOM machine coordinates bcdnm Fanuc 5 11-22-2006 05:29 AM
Coordinates modal and / for rapids HuFlungDung OneCNC 6 04-04-2003 09:42 PM




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