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 03-13-2006, 07:17 PM
 
Join Date: Mar 2006
Location: USA
Posts: 6
darinpeterson is on a distinguished road
Question How to code this part.

This might be more helpful, if someone has a minute. Can you show me how you might code this in general?

Also will you point out important parameters, like cutter radius offset and other things I should allow for?

Greatly appreciated...

Darin

Coding for a lathe please...
Attached Files
File Type: dxf sample.DXF‎ (10.4 KB, 291 views)

Last edited by darinpeterson; 03-13-2006 at 07:18 PM. Reason: I didn't specify the machine.
Reply With Quote

  #2   Ban this user!
Old 03-14-2006, 10:55 AM
M_D M_D is offline
 
Join Date: May 2004
Location: United States
Posts: 36
M_D is on a distinguished road

I'm not sure exactly what you are looking for. How I would go about programing and running the job would depend on many factors. One of a kind part? Small production run? Ongoing production? Is cycle time the main consideration, appearance, tolerance, all three, etc.
Reply With Quote

  #3   Ban this user!
Old 03-14-2006, 02:10 PM
 
Join Date: Mar 2006
Location: USA
Age: 59
Posts: 3
sixsix is on a distinguished road

How big is it and what's it made of.

What kind of lathe?

G-code, Mazatrol, offline?

What tooling do you have for the groove?

Barstock, collet or chucked?
__________________
|
|
There's 3 types of people in this world - those who can count & those who can't...
Reply With Quote

  #4   Ban this user!
Old 03-14-2006, 02:28 PM
 
Join Date: Mar 2006
Location: USA
Posts: 6
darinpeterson is on a distinguished road
Parameters.

The difficulty were having is in coding the 180 degree arc on a Fanuc 6T. I don't care about figuring out much other than knowing whether there is G code that will cut a 180 degree arc, so feed rates and chuck speed are not a concern, nor are the actual part dimensions.

Say the groove starts at (X=-10, Z=-1), ends at (X=-10, Z=-2), and the cutter diameter is .5. If I could cut the groove in one pass, what would be the G02 or G03 code to do it?

Thanks,
Darin
Reply With Quote

  #5   Ban this user!
Old 03-14-2006, 02:37 PM
M_D M_D is offline
 
Join Date: May 2004
Location: United States
Posts: 36
M_D is on a distinguished road

I understand now what you are looking for, except I don't have enough time at the moment to do it, but I will check back later and if nobody has beat me to it will post code that should help you out.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-14-2006, 02:42 PM
 
Join Date: Mar 2006
Location: USA
Posts: 6
darinpeterson is on a distinguished road
That would be great...

Originally Posted by M_D
I understand now what you are looking for, except I don't have enough time at the moment to do it, but I will check back later and if nobody has beat me to it will post code that should help you out.
I thought it might just be a one-liner, but it sounds more complicated. I'll check back.

Thanks!
Darin
Reply With Quote

  #7   Ban this user!
Old 03-14-2006, 06:01 PM
M_D M_D is offline
 
Join Date: May 2004
Location: United States
Posts: 36
M_D is on a distinguished road

I guess since you are looking for code for a Fanuc 6T then this may not work (I haven't used that control), but I think it should. I suppose it is possible that control/lathe would requirements the radius devided into 1/4 quadrants or something, don't know though.

Example done in diameter programing, using a .125" full radius profiling cutter, measured to cutter radius center. The actual groove finish pass should only require one line, I included and approach where the same tool would cut the O.D. starting at the face to the end of groove radius.

The tool path is offset .125" (radius of cutter) from the part profile.

I hope this helps.

(G40 mode, no cutter comp, or if cutter comp is used only to dial in exact measurement)
N20 G01 Z0 X7.13
N30 Z-1.24 (corrected from Z-1.25)
N40 G03 X6.88 Z-1.365 R.125 (wraps around corner without actually cutting a radius)
N 50 G02 (X6.88) Z-2.135 R.385 (cuts actual groove)
N 60 G03 X7.13 Z-2.26 R.125 (wraps around corner without actually cutting a radius)


I added the tool path and tool positions to your original file and uploaded it to help visualize the tool path.
Attached Files
File Type: dxf sample_modified.DXF‎ (2.3 KB, 57 views)

Last edited by M_D; 03-14-2006 at 08:07 PM.
Reply With Quote

  #8   Ban this user!
Old 03-14-2006, 06:43 PM
 
Join Date: Mar 2006
Location: USA
Posts: 6
darinpeterson is on a distinguished road

Originally Posted by M_D
(G40 mode, no cutter comp, or if cutter comp is used only to dial in exact measurement)
N20 G01 Z0 X7.13
N30 Z-1.25
N40 G03 X6.88 Z-1.365 R.125 (wraps around corner without actually cutting a radius)
N 50 G02 (X6.88) Z-2.135 R.385 (cuts actual groove)
N 60 G03 X7.13 Z-2.26 R.125 (wraps around corner without actually cutting a radius)
The controller must be somewhat different. I can't use G02 and G03 with R. If I use G02 and G03, I have to use I and K. I can use R with G01. Have you written any G code for a 6T controller?

Thanks,
Darin
Reply With Quote

  #9   Ban this user!
Old 03-14-2006, 07:21 PM
M_D M_D is offline
 
Join Date: May 2004
Location: United States
Posts: 36
M_D is on a distinguished road

I have not used or written code for that control, so I may not be able to help you when it all said and done.

I have 1 machine where a radius (R x.xxxx) or chamfer (C x.xxxx) can be produced with a G01. In this case you would need (assuming your control will be the same in this regard) to divide the arc into 2 90º segments at Z-1.75.

This is what I would try, keeping in mind that I am not familiar with your controll or machine.

(.125" Full Radius cutter, tool radius offset figured into program)
N20 G01 Z0 X7.13
N30 Z-1.24 (corrected from Z-1.25)
N40 X6.88 Z-1.365 R.125
N45 X6.11 Z-1.75 R.385 (cuts 1st half of groove)
N50 X6.88 Z-2.135 R.385 (cuts 2nd half of groove)
N60 X7.13 Z-2.26 R.125

Last edited by M_D; 03-14-2006 at 08:07 PM.
Reply With Quote

  #10   Ban this user!
Old 03-14-2006, 08:06 PM
M_D M_D is offline
 
Join Date: May 2004
Location: United States
Posts: 36
M_D is on a distinguished road

This might work using I and K.

Even though the previous code may not work on your machine, there was a typo I'll go back and edit with a note.

N20 G01 Z0 X7.13
N30 Z-1.24
N40 G03 X6.88 Z-1.365 I-0.125 K0.
N45 G02 X6.11 Z-1.75 I0 K-.385 (cuts 1st half of groove)
N50 X6.88 Z-2.135 I.385 K0 (cuts 2nd half of groove)
N60 G03 X7.13 Z-2.26 I0 K-.125
Reply With Quote

Sponsored Links
  #11  
Old 03-14-2006, 09:11 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Darin,
I'm not sure why you specified working in X- for your example, but here are a few more permutations to try, as there has not been enough information given about this control's arc preferences:
(Maximum 180 degree arcs, incremental IK arc centers)
G01 X-10. Z0.
G01 Z-1.
G03 X-10. Z-1.25 I0.25 K0.
G02 X-10. Z-1.75 I0. K-0.25
G03 X-10.5 Z-2. I0. K-0.25
G01 Z-2.75

(max 90 degree arcs, incremental IK arc centers)
G01 X-10. Z-1.
G03 X-10. Z-1.25 I0.25 K0.
G02 X-9.5 Z-1.5 I0. K-0.25
G02 X-10. Z-1.75 I-0.25 K0.
G03 X-10.5 Z-2. I0. K-0.25
G01 Z-2.75

(max 90 degree arcs, absolute IK arc centers)
G01 X-10. Z-1.
G03 X-10. Z-1.25 I-5. K-1.
G02 X-9.5 Z-1.5 I-5. K-1.5
G02 X-10. Z-1.75 I-5. K-1.5
G03 X-10.5 Z-2. I-5. K-2.
G01 Z-2.75

(max 180 degree arcs, absolute IK arc centers)
G01 X-10. Z-1.
G03 X-10. Z-1.25 I-5. K-1.
G02 X-10. Z-1.75 I-5. K-1.5
G03 X-10.5 Z-2. I-5. K-2.
G01 Z-2.75

In a real world application, this type of path might only be suitable for a very light finishing cut, due to heavy side loading of the tool as it reaches bottom and tries to come up the radius wall. It would be better to make seperate roughing operations, beginning with a straight plunge to clear a groove almost to full depth in the center of the groove position, then rough each side, from the edge towards the center. But, maybe that is more than you wanted to know for now
__________________
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

  #12   Ban this user!
Old 03-15-2006, 08:13 AM
 
Join Date: Mar 2006
Location: USA
Posts: 6
darinpeterson is on a distinguished road
Thanks for all the replies.

Hello,

Thanks for all of the replies!

I need to take some time to study the code that all of you sent. I appreciate your responses...

Darin
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:08 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