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 08-25-2004, 01:04 PM
 
Join Date: Aug 2004
Location: usa
Posts: 7
Nanker is on a distinguished road
G73-g83?

We have a Miyano BNC-34C lathe with a Fanuc OT control.
It's a new animal to us as our other lathes are Okumas.
We want to peck drill a 1.75" deep hole, .250" pecks, but we want the drill to retract out of the part, not just break the chip. G83 is not listed in the manual. The manual is very confusing.
Can anyone give me an example of what the code should look like? Are there any parameters to set?

Last edited by Nanker; 08-25-2004 at 02:55 PM.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 08-25-2004, 01:35 PM
WOLOG's Avatar  
Join Date: Oct 2003
Location: HOUMA,LA
Posts: 352
WOLOG is on a distinguished road

It should look like this:

G83 Z-1.75 Q.25 R.1 F.003;

Q= .250 peck depth
R= rapid to .1 in front of part

This is for a Haas control, but it runs in fanuc mode. The G83 will peck and retract like you want it to.

Good luck
James
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 08-26-2004, 10:25 AM
 
Join Date: Aug 2004
Location: usa
Posts: 7
Nanker is on a distinguished road

Thanks for the reply James. But we still have problems.
Here's a bit more of an explaination of what we have tried.
The face of the chuck is part .000. Stock is sticking out 1.750.
Drilling 1.335 deep.
We have tried the following:

G83 Z.415 Q.250 R1.8 F.003
G74 Z.415 Q.250 R1.8 F.003
G74 Z.415 Q.250 R.1 F.003

We get the same error "007" for all of them:
Decimal point "." input error (A decimal point was input after an address with which it cannot be used. Or two decimal points were input.)

The manual does not show a G83 so I'm not sure if it is valid. The best we can find in the manual is G74, which their only example appears to be for breaking a chip for OD turning (G74 X__ Z__ P__ Q__ R__ F__). It also says that "if X and P are not specified, only one operation is made in the Z direction, This motion can be used for deep hole drilling."

Any help will be greatly appreciated.
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 08-26-2004, 10:57 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

I don't know if that is unorthodox programming, but I would redefine the face of the part as Z0 and rewrite the command line to suit. There might be some constraints in the logic of the macro that forbid working in positive Z. Just a guess.
__________________
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)
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 08-26-2004, 11:31 AM
 
Join Date: Aug 2004
Location: usa
Posts: 7
Nanker is on a distinguished road

We thought of that, but the manual shows examples of using both the chuck and face of part as Z .000. The rest of the program is written that way and we only have a problem with this one line. All of our Okuma's are programmed that way. That's what they taught a Okuma school. Might give it a try though.
Thanks.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 08-26-2004, 12:58 PM
wms's Avatar
wms wms is offline
Moderator
 
Join Date: Mar 2003
Location: United States
Posts: 938
wms is on a distinguished road

Some controls will not accept a decimal point in the "Q" value.

You may want to remove that decimal and use a "Q250" or a "Q2500".
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 08-26-2004, 03:44 PM
 
Join Date: Aug 2004
Location: usa
Posts: 7
Nanker is on a distinguished road

That seemed to help.....kind of.
We didn't get an alarm and it ran, but after drilling to the final depth, it went to
X3.6 (there goes the drill) then Z1.850 then X.000 before going to line N0203

Here is a section of the code in the machine:
N0200G97S525M08
N0201G00X0Z1.85T0202
N0202G74Z0.415Q2500R1.8F.003
N0203G00X0Z5.25T0200

I don't know where it is picking up the X3.6 move as there isn't a X3.6 anywhere in the program. We're really confused now.
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 08-26-2004, 04:34 PM
wms's Avatar
wms wms is offline
Moderator
 
Join Date: Mar 2003
Location: United States
Posts: 938
wms is on a distinguished road

If this a Fanuc OT control Model C you would need two lines for the G74 command.

Like this :

N200 G74 R.010 (R is the retract amount for the peck)
N210 G74 Z (final depth) Q(peck amount without decimal) F (feed)

Bear in mind that the builder of the machine can set things up differently as they see fit. Have you contacted them or the dealer? It could be the case that the builder has "special setting".


That said First I would remove the R1.8 from your line N202. and the X0 from line N203 and try it.
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 08-26-2004, 06:56 PM
WOLOG's Avatar  
Join Date: Oct 2003
Location: HOUMA,LA
Posts: 352
WOLOG is on a distinguished road

This is another one of those times that I can not understand why G-code from one manufacturer is different from another. Decide on one format and stick to it!!!!!

To lighten things up a bit...
Tweet this Post!Share on Facebook
Reply With Quote

  #10  
Old 08-26-2004, 11:39 PM
wms's Avatar
wms wms is offline
Moderator
 
Join Date: Mar 2003
Location: United States
Posts: 938
wms is on a distinguished road

Nanker,

There really is no way to get it to retract back to Z1.800 and then rapid back to just above the last peck. Not with a Fanuc OT (C or b).

You can get it to retract out of the hole all the way like you want but it will then feed back to above the last peck. Not ideal but maybe it will work for you. It will be slow at the .003 feed you are using.

I would suggest you hand code the cycle and be done with it.

But if you want to try it here is the code:

G97 S525 M8
GOO X0.0 Z1.800
G74 R1.800
G74 Z.415 Q2500 F.003
GOO Z5.25

If you put the Q value on the same line as the second G74 with the Z it will as you found out move Radially In X at the end of the hole. Hence the 1.800 x 2 = X3.600 as you saw. Not good for hole drilling to say the least. How did you put it "there goes the drill".

If you try a G83 you will find that it too only retracts to break the chip and not all the way out of the hole. And that is if it is even available on your control as some OT's don't offer it. It had to be ordered and turned on by the builder.

Maybe someone else or the builder know of a parameter that would change the way it retracts.
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Last edited by wms; 08-26-2004 at 11:48 PM.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-27-2004, 02:50 AM
tex tex is offline
 
Join Date: Apr 2004
Location: Serbia and Montenegro
Age: 48
Posts: 60
tex is on a distinguished road

Here's what I've got while running 1.75" deep hole drilling throught FANUC0 posptprocessor...I don't get it, but it looks like it is a 3-axis milling posprocessor...I doubt that this would be of any help, but here it is:

N5 X0 Y0 S1200 M3
N6 G43 Z.1394 H1
N7 Z.0494
N8 G95 G83 X0 Y0 Z-1.8549 R.0494 Q.25 F.002
N9 G80
N10 G0 Z.1394

Last edited by tex; 08-27-2004 at 02:56 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 08-27-2004, 03:08 PM
 
Join Date: Aug 2004
Location: usa
Posts: 7
Nanker is on a distinguished road

First off, thanks for all the replies.
WMS, you're dead right on everything. Using two lines of G74 and removing the "R" from the second line did it. It retracts the first line "R" valve but doesn't rapid back to where it last drilled. Starts at the front and goes into feed rate. Totally unacceptable, too much time. This machine also doesn't read a G83. It appears that the only way to do it is as you said, "write it by hand and be done with it."
I'm sure I'll be back in the near future for more help from everyone as we try to figure this machine out. Great forum! Thanks to all.
Tweet this Post!Share on Facebook
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
G83 Macro hatchmar G-Code Programing 14 01-20-2006 12:59 PM
ProE G83 Problem Joe_CNC PTC Pro/Manufacture 2 05-21-2004 11:12 PM
G83 peck Drill cycle Vaughan G-Code Programing 24 03-19-2004 12:11 PM
Fanuc 0T Stock Removal Cycles M@T General CAM Discussion 4 11-01-2003 07:43 PM
cycles initial plane/retract plane HuFlungDung OneCNC 25 06-26-2003 08:02 PM




All times are GMT -5. The time now is 12:05 AM.





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