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-07-2006, 08:37 PM
 
Join Date: Jul 2003
Location: United States
Posts: 47
2_jammer is on a distinguished road
Question Help needed on tool path geometry

Hello All,
I'm looking for some help on trying to figure out where these two radiuses meet from the datum. I can figure it out using my CAD program, after all, I drew it using CAD, but what I'm trying to do is figure it out long hand using trigonometry. I'm hoping to get a better grasp of programming by learning things "the hard way". I'd appreciate it if someone could steer me in the right way. Please see the attached file. Thanks, Shane.
Attached Files
File Type: dxf problem.DXF‎ (9.7 KB, 96 views)
Reply With Quote

  #2  
Old 03-07-2006, 08:51 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

The point your looking for is on a line connecting the center of the two arcs. The radius is the length of the hypotenuse of a right triangle. If you need more steering, I'll have to brush up on my trig.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(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 03-07-2006, 08:55 PM
 
Join Date: Apr 2005
Location: US
Posts: 411
Kevin Taylor is on a distinguished road

You know the arc center's and divise the stop and start point's by drawing triangles and doing hypontious theroy aneasy way to rember it is 3/4/5 3x3=9+4x4=16hens 9+16=25 sqroot is 5by imagining triangels by conecting the point's you can come up with your number's an old text book or I think the machinest handbook has a lot of trig info in it If you want a tool path in your bobcad go to other after you select your line and click on offset and chose right or left and the tool radis it will generate the tool line Good luck Kevin
Reply With Quote

  #4   Ban this user!
Old 03-07-2006, 10:02 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

I have to admit my trig is very rusty but I don't think you have enough information. You have the radii for the two curves and the position of the center of one curve on the X axis, or at least that is what I assume your 0.8 dimension is, but you do not have the position of the center of the other curve. I think you need the position of the two center points for a solution.
Reply With Quote

  #5   Ban this user!
Old 03-07-2006, 10:24 PM
 
Join Date: Jul 2003
Location: United States
Posts: 47
2_jammer is on a distinguished road

Thanks for the replies- this example is taken out of a book. According to the author, the center of the 2" radius can be calculated by the dimensions presented. I know I'm pretty rusty with my trig, but I just can't seem to figure out how to set this up. Ger 21, I guess I need a bit more steering...
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-08-2006, 12:03 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

I was too pessimistic, your book is correct. The 2.0000 radius circle is centered at 3.7206, 3.6078 and the tangent point between the circles is at 1.8952, 2.7904.
Reply With Quote

  #7  
Old 03-08-2006, 07:10 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

I was assuming you know the centers of the 2 arcs, is this correct?
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #8   Ban this user!
Old 03-08-2006, 08:30 AM
 
Join Date: Jul 2003
Location: United States
Posts: 47
2_jammer is on a distinguished road

Geof-
Could you explain to me how you came up with those cooridinates.

ger21- I know the center point of the 1.200 radius, I think I need to trig out the 2.000 radius?

Thanks once again for the help guys!
Reply With Quote

  #9  
Old 03-08-2006, 08:41 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,454
ger21 is on a distinguished road
Buy me a Beer?

If you don't know the center of the 2" radius, I think you'll need more info to locate it.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(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 03-08-2006, 08:59 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

The calculation uses the idea of similar triangles; that is triangles with the same angles but different length sides. I have drawn four extra lines on your picture; RED joins the centers of the two circles and passes through the tangent point. The length of this hypotenuse is the sum of the radii. BLUE travels along the X direction from the R1.2 center past the center of the other circle; YELLOW travels along the Y direction from the center of the R2.0 circle and intersects BLUE at a right angle. The length of YELLOW is the distance between the two centers in the Y direction. The length of BLUE is calculated using Pythagoras theorem. edit: This is the distance between the two centers in the x direction.

The PINK line from the tangent point down to BLUE forms another right angle triangle and this hypotenuse is 1.2 because it is the radius of the circle. The length of y can be calculated because y divided by 1.2 equals YELLOW divided by RED. Similarly the small section on the blue line labelled x can be calculated because x divided by 1.2 equals BLUE divided by RED.

The tangent point is at 0.8 + x and 2.3 + y.
Attached Thumbnails
Click image for larger version

Name:	trig1.jpg‎
Views:	92
Size:	30.9 KB
ID:	15325  

Last edited by Geof; 03-08-2006 at 09:16 AM. Reason: Added sentence length of blue line.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-08-2006, 03:31 PM
 
Join Date: Feb 2006
Location: USA
Posts: 313
WhiteTiger is on a distinguished road

Trig is based on the concept that all triangles have 6 elements (three angles and 3 side lengths). If you know any 3 elements you can solve for the other three. In layout work it's almost always done by deriving a right triangle, since that provides you with one known element, the 90 degree angle and leaves you with a requirement of only two other elements.

Y position of the right side arc center is known (2.0000 + 1.6078= 3.6078). Yposition of the left side arc is known (3.5000 - 1.2000= 2.3000). Yellow side length is then 3.6078 - 2.3000= 1.3078.

You now have hypotenuse (sum of radii) and one side of the large triangle known along with the 90 degree angle. Solve for the angle of the hypotenuse of the large triangle, then use that angle and hypotenuse of the similar small triangle as knowns to solve for x and y of the small triangle, and those will tell you what to add to x and y center of the small triangle to find your point of tangency.

EDIT= corrected wording of parenthetic note on hypotenuse of large triangle
Tiger
Reply With Quote

  #12   Ban this user!
Old 03-08-2006, 04:04 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

It is not necessary to solve for any angles.
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