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 02-01-2012, 09:58 AM
 
Join Date: Oct 2006
Location: USA
Posts: 58
justin bowser is on a distinguished road
Circular Interpolation on Lathe?

I usually do very straight-forward turning with nothing fancy but I need to face off a 1.5" dia plexi rod with the end profile being concave or convex and I'm experiencing some sort of "mantal block". From reading I've done I think I need to specify plane with G18 and then use G2 or G3 to do my pacing. On a convex "facing" I would like the center of the face to b .025 "higher" than the edges. Think of my facing cut causing the end of the rod to resemble the face of a lens

Could someone provide me programming examples of how this would work, or links to some good examples?

Thanks in advance...

Justin B.
Attached Files
File Type: pdf 25-128.pdf‎ (4.8 KB, 36 views)

Last edited by justin bowser; 02-01-2012 at 02:21 PM. Reason: attachment
Reply With Quote

  #2   Ban this user!
Old 02-01-2012, 03:30 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by justin bowser View Post
I usually do very straight-forward turning with nothing fancy but I need to face off a 1.5" dia plexi rod with the end profile being concave or convex and I'm experiencing some sort of "mantal block". From reading I've done I think I need to specify plane with G18 and then use G2 or G3 to do my pacing. On a convex "facing" I would like the center of the face to b .025 "higher" than the edges. Think of my facing cut causing the end of the rod to resemble the face of a lens

Could someone provide me programming examples of how this would work, or links to some good examples?

Thanks in advance...

Justin B.
Hi Justin,
Unless your lathe has a Y axis, it should default to G18 on start up. However, most programmers worth there salt have a Safety Line at the beginning of the program to ensure that the machine control is initialized to the modes that keeps it safe and so that no alarms are raised.

I don't generally like using tool nose compensation with a Turning Centre. Its use is very necessary with a Machining Centre, to be able to adjust the size of features when using end mills and the like. However, in most cases, component size with a lathe is adjusted with the Tool Offsets and not Tool Nose Radius Offsets. Having said that, the following program snippet has used Tool Nose Radius Compensation, as I'm unaware of the tool nose radius you intend to use.

The radius of the arc that will satisfy your criteria for the convex form is 11.2624

Regards,

Bill

G00 X1.580 Z0.200
G41 G01 Z-0.028
G02 X0.000 Z0.000 I-0.790 K-11.235
G40 G01 Z0.200
Reply With Quote

  #3   Ban this user!
Old 02-01-2012, 09:27 PM
 
Join Date: May 2004
Location: United States
Age: 48
Posts: 2,217
txcncman is on a distinguished road

Here is the convex side. Don't know when I will get back to do the concave side.
Attached Files
File Type: dxf CONVEX SPHERICAL RADIUS.DXF‎ (51.4 KB, 22 views)
__________________
http://www.kirkcon.com/
Reply With Quote

  #4   Ban this user!
Old 02-02-2012, 03:36 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by justin bowser View Post
I usually do very straight-forward turning with nothing fancy but I need to face off a 1.5" dia plexi rod with the end profile being concave or convex and I'm experiencing some sort of "mantal block". From reading I've done I think I need to specify plane with G18 and then use G2 or G3 to do my pacing. On a convex "facing" I would like the center of the face to b .025 "higher" than the edges. Think of my facing cut causing the end of the rod to resemble the face of a lens

Could someone provide me programming examples of how this would work, or links to some good examples?

Thanks in advance...

Justin B.
Justin,
I'm a bit confused. I looked at your question prior to the PDF file being attached, and your criteria was for the face to be O.025 "higher" than the edges, the 1.5 OD I assumed. Your attached drawing shows a convex profile .0384 proud of a 1.2815 OD, and if the radius is extended to the 1.5 OD, the face of the profile is 0.05268 proud of the OD (edges). Where does the 0.025 come in?

Regards,

Bill

Last edited by angelw; 02-02-2012 at 04:27 AM.
Reply With Quote

  #5   Ban this user!
Old 02-02-2012, 10:12 AM
 
Join Date: Oct 2006
Location: USA
Posts: 58
justin bowser is on a distinguished road

My original question was dimensions pulled out of thin air just for a "how-to". Since I decided a drawing might be a better indicator of what I was trying to accomplish I made a drawing with more "real world" dimensions.

My intention was not to get somebody to write a program for me but to take these dimensions and apply them to the G2/G3 statement so I could see how the I, K, and other parameters were derived.

Thanks,

Justin B.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-02-2012, 02:09 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by justin bowser View Post
My original question was dimensions pulled out of thin air just for a "how-to". Since I decided a drawing might be a better indicator of what I was trying to accomplish I made a drawing with more "real world" dimensions.

My intention was not to get somebody to write a program for me but to take these dimensions and apply them to the G2/G3 statement so I could see how the I, K, and other parameters were derived.

Thanks,

Justin B.
Hi Justin,
Clearly, you mustn't have a CAM system, otherwise this program would be relatively simple.

Given the information from your drawing, that is, a Diameter and a Height of the face of the convex form above the edge, or OD of the part, the most difficult task is to find the centre of the arc in Z, and the radius of the arc. Once you have these, finding the I and K values is simple, as indicated in light blue in the attached picture.

Click image for larger version

Name:	Lens1.jpg
Views:	27
Size:	29.2 KB
ID:	151762

When creating a lathe program, you only have to deal with Radial X values on one side of the X centre line; the other side being a mirror image. Therefore, as I see it, the easiest method of obtaining the Z centre and radius of the arc manually, is to use the Arc through 3 Points method. The three points will be 1 and 2 shown in the attached picture; easily obtained from your drawing, and the 3rd point being the corresponding negative of point 2.

Once you have the Radius and Centre of the arc, pythagoras theorem can be used to obtain the K value. The "I" value will simply be the radial value of where the cutting tool starts in X. If you don't use Tool Nose Radius(TNR) Compensation in the program, the centre location of the Tool Nose Radius is calculated, and the X, Z coordinates obtained by subtracting the TNR and twice the TNR from Z and X respectively when using a Right Hand Turning tool.

If you don't have the math for Arc Through 3 points, Post back and I'll supply.

Regards,

Bill
Reply With Quote

  #7   Ban this user!
Old 02-04-2012, 03:59 PM
 
Join Date: Oct 2006
Location: USA
Posts: 58
justin bowser is on a distinguished road

Hoo-Rah!! Between PMs between txcncman and Bill's posts to this thread I have been nudged (shoved kicking and clawing?) toward the light! You helped me visualize and realize where the parameters were being derived from and the bulb finally flashed on! After this, though, I had to figure out how to make EMC2 get along with what I was trying to do. This was accomplished through the forum at linuxcnc.com. I'm a happy (well, sort of) camper. :-)
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!- Lathe Circular Interpolation C axis jorgehrr G-Code Programing 7 11-25-2010 11:47 PM
circular interpolation pmesilver Mach Mill 1 04-10-2010 07:20 AM
Need Help!- Circular interpolation Fanuc O-M cd0426 Fanuc 17 02-17-2010 03:39 AM
Newbie- Circular Interpolation Deadwood Mach Software (ArtSoft software) 3 01-11-2009 02:35 PM
circular interpolation sqatch Dolphin CADCAM 9 02-11-2008 12:02 AM




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