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 12-25-2006, 11:26 AM
 
Join Date: May 2005
Location: United States
Posts: 62
protrxrptr17 is on a distinguished road
G50 or G92?

I have a 1984 Ikegai FT20-U with a Fanuc 6T-B. I've been reading the manuals, and they are kind of hard to understand. What is the difference between G92 and G50 for setting workpiece zero? Does this control have work offsets such as G54? The manual doesn't list it, but could that have been added? I am in the leaning process, so this may be a stupid question. Please forgive my ignorance.
Reply With Quote

  #2  
Old 12-25-2006, 04:03 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Lathes may often use a different gcode system than mills, and on some controls, you can actually set (via parameter) which gcode system you intend to use.

So, mills usually use G92 as a coordinate system shift, whereas lathes will use G50 to do the same thing. The two codes are not interchangeable (within one gcode system), it will be a case of one or the other in your particular controller. You just have to find out which system is in effect
__________________
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

  #3   Ban this user!
Old 12-25-2006, 06:28 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

My Fanuc 6T-B manual doesn't list G54-G59, so as far as I know Work Coordinate systems weren't available on that model... so:

More than likely, your machine is set up to use Standard G-Codes (as opposed to Special G-Codes B). This means that you'll use G50 Xn Zn Sn to set your X/Z zero for each tool and maximum RPM (for CSS mode), and G92 for a simple turning cycle. You might try to MDI a G50 S500 and cycle start to see if it causes an alarm 010.

Also, you can check Parameter #7, bit 5. 0=Standard G code is used, 1=Special G code B is used.

Good luck.
Reply With Quote

  #4   Ban this user!
Old 12-25-2006, 07:21 PM
 
Join Date: May 2005
Location: United States
Posts: 62
protrxrptr17 is on a distinguished road

Originally Posted by dcoupar View Post
My Fanuc 6T-B manual doesn't list G54-G59, so as far as I know Work Coordinate systems weren't available on that model... so:

More than likely, your machine is set up to use Standard G-Codes (as opposed to Special G-Codes B). This means that you'll use G50 Xn Zn Sn to set your X/Z zero for each tool and maximum RPM (for CSS mode), and G92 for a simple turning cycle. You might try to MDI a G50 S500 and cycle start to see if it causes an alarm 010.

Also, you can check Parameter #7, bit 5. 0=Standard G code is used, 1=Special G code B is used.

Good luck.
So I should reset the zero point at every tool change or just at the beginning of the program? What if the control is setup for the special G-code? What is the difference between the two codes? Is there any advantage to using one over the other?
Reply With Quote

  #5   Ban this user!
Old 12-25-2006, 09:12 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Yes, you'll need to program a G50 (or G98) block for each tool. If your control is set up for special G codes, use G98. My guess is, it's not, so use G50. Most (if not all) Japanese machines came over with standard G codes, if my memory serves me correctly. No advantage one over the other, just use the one that works.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-26-2006, 08:32 PM
 
Join Date: May 2005
Location: United States
Posts: 62
protrxrptr17 is on a distinguished road

Well, I didn't get to make any chips fly today. When I was setting my tools, something screwed up with the turret. I posted the story in the general metalworking machines section.
Reply With Quote

  #7  
Old 12-26-2006, 09:20 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by protrxrptr17 View Post
I have a 1984 Ikegai FT20-U with a Fanuc 6T-B. I've been reading the manuals, and they are kind of hard to understand. What is the difference between G92 and G50 for setting workpiece zero? Does this control have work offsets such as G54? The manual doesn't list it, but could that have been added? I am in the leaning process, so this may be a stupid question. Please forgive my ignorance.

G50 is used on older lathes to set the tools. The Ikegai I worked with all the tools were set from the Home Position Relative to the Work X and Z. Another way was to set a known position and program G50 X0Z0. Then write your program from there. This would usually be the axial center of the X and Face of the Z.

It is really up to you and what your comfortable with. Personally I prefer setting my tools Relative to the Home Position.

BTW G92 is a Threading Canned Cycle on a Lathe, not Work Positioning.

Threading Cycles are
G32
G76
G92

__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

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

www.refractotech.com
Reply With Quote

  #8   Ban this user!
Old 12-27-2006, 08:28 PM
 
Join Date: May 2005
Location: United States
Posts: 62
protrxrptr17 is on a distinguished road

From what I can gather from the manual after many hours of studying is to load a turning and facing tool, take a light cut on the face and outside diameter. Zero the display, then go back to machine zero. Record the readings on a piece of paper, and then program G50 Xwhatever Zwhatever and thet will be your zero point for the entire program. Your reference tool offsets will be zero of course, and then you touch off all your other tools to set their offsets. Doesn't say you have to re-enter G50 and your zero coordinates after every tool. I looked through a couple old programs in the memory, and they didn't have a G50 at every change, so maybe I won't have to do that. There is a chart in the Fanuc manual that states G92 as special G code and special G code C. It also says workpiece coordinate shift is a basic option?? Is adding that as simple as changing a parameter or is it more complicated than that? I can see where that would be very useful, but I guess I could do it just as easily with a G50. Well I kinda got a bigger problem now. I think the rotary encoder on the turret is going out, so it may be even longer before I really get this thing going. ANybody know how to test the encoder?
Reply With Quote

  #9   Ban this user!
Old 12-28-2006, 04:07 PM
 
Join Date: Mar 2006
Location: Australia
Posts: 163
Ozemale6t9 is on a distinguished road

You have two options for using g50. You can set it once as you have just described from the manual, or you can set it for each tool. The difference is that setting once may cause tool offsets to be large numbers since the offset will be relevant to your datum tool. This can cause problems when you have to alter tool offsets due to large numbers being easy to forget if you have to enter the whole number. Setting G50 for each tool will result in all your tool offsets being zero initially, which makes it easier when resetting your offset after an insert change because you simply set it back to zero. With either method, it pays to have the program send the machine home at the start, move to your start position, then redefine G50, so if the machine gets moved manually it will pick up the correct position.

regards, Oz
Reply With Quote

  #10  
Old 12-28-2006, 07:44 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

This is an old Ikegai Program for a Fanuc 6T. The starting point is set far away due to the uneven saw cut. Also this is a Safe way to start programming until you get more comfortable.

O0086
(IKEGAI FANUC 6T)
(TURBINE SPLINE 27SPL)
(GM 200 TH200R4)
(MATERIAL=4140)
(PILOT=1.375D)
(ID=.814D)
(OAL=)
(BLANK=)
(DRWNG=SPLINEA.CAD)
(OP#1)
(DATE 2/10/03 PGMR TJD)
(DATE REV 2/10/04 TJD)
(T1=CNMG432 VALINITE SV330 T3)
(T2= DRILL .75D COB STUB 135SPT)
(T3=DNMG431 SECO FF1 CM T3)
(T4=B-BAR 1/2 CCMT21.51F2 TP1000 T2)
(SECO CARBOLOY)
(JAWS=400 PRESS=200)
(CYCLE TIME=MS)

G0 G40 G97 G99 M5
G28 U0 W0 M9
G50 S2000 M39
M1

N1(REMOVE SKIN/R-FACE/TURN)
G28 U0 W0
T0100
G50 X(RP) Z(RP) M8
G96 S700 M3
G0 G42 X3.99 Z.3 T0101
G1 Z-1.3 F.01
X4.05 F.015
G0 G40 X4.1 Z.2
G72 P10 Q15 W.005 D400 F.008
N10 G0 G41 Z0
N15 G1 X0 F.004

G0 G40 X4.0 Z.1
G71 P20 Q25 U.02 W.002 D850 F.01
N20 G0 G42 X1.0
G1 Z0 F.0025
X1.325 F.003
G3 X1.375 Z-.025 R.025 F.0025
G1 Z-.75 F.004
X2.75 F.0035
X3.975 Z-.9141 F.0025
G1 Z-1.08 F.004
N25 X4.1 F.0035

G0 G40 Z.1 M9
G0 X(RP) Z(RP) T0100
G28 U0 W0
G97
M1

N2(DRILL)
G28 U0 W0
T0200
G50 X(RP) Z(RP) M8
G97 S400 M3
G0 X0 Z.2 T0202
G1 Z-2.25 F.0075
Z.05 F.2

G0 G40 Z.1 M9
G0 X(RP) Z(RP) T0200
G28 U0 W0
G97
M1

N3(F-FACE/TURN/U-CUT)
G28 U0 W0
T0300
G96 S900 M3
G0 G41 X1.5 Z0 T0303
G1 X.625 F.004
Z.05 F.015

G0 G40 X4.1 Z.1
G70 P20 Q25
G0 G40 Z.1

(U-CUT)
G1 X1.3755 Z-.725 F.05
Z-.7555 F.0025
G4 U1.0
G1 Z-.75 F.003
X2.8 F.0035

G0 G40 Z.1 M9
G0 X(RP) Z(RP) T0300
G28 U0 W0 M5
G97
M1

N4(R-BORE )
G28 U0 W0
T0400
G50 X(RP) Z(RP) M8
G96 S400 M3
G0 G40 X.75 Z.1 T0404
G71 P40 Q45 U-.02 W.002 D320 F.0075
N40 G0 G41 X1.214
G1 X.814 Z-.1 F.003
Z-1.3 F.005
N45 X.75

G0 G40 Z.1 M9
G0 X(RP) Z(RP) T0400
G28 U0 W0
G97
M1

N5(F-BORE)
G28 U0 W0
T0404
G50 X(RP) Z(RP) M8
G96 S650 M3
G0 G40 X.75 Z.1 T0404
G70 P40 Q45

G0 G40 Z.1 M9
G0 X(RP) Z(RP) T0400
G28 U0 W0
G97
T0

M30
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

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

www.refractotech.com
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-28-2006, 08:34 PM
 
Join Date: May 2005
Location: United States
Posts: 62
protrxrptr17 is on a distinguished road

Thanks for the program. I can definitely use that to format my own programs. The programs that are already in the machine don't really make much sense to me. I don't think they really follow the basic order.
Reply With Quote

  #12  
Old 12-29-2006, 10:04 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by protrxrptr17 View Post
Thanks for the program. I can definitely use that to format my own programs. The programs that are already in the machine don't really make much sense to me. I don't think they really follow the basic order.

To put it bluntly Fanuc Books SUCK. Try this one. It can be found on Amazon.com and explains everything in ENGLISH.

http://www.amazon.com/Computer-Numer...e=UTF8&s=books

This is by far the Best for Learning Lathe and Mill G-Code Programming.

Tool Stations 1,3,5,7,9,11 are all O.D Turning Threading, and Grooving

Tool Stations 2,4,6,8,10,12 are all I.D. Drilling, Boring, I.D. Grooving and Threading.

Post the Program You have and I'll walk you through it.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

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

www.refractotech.com
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 08:16 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