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 04-26-2007, 09:16 PM
 
Join Date: Apr 2007
Location: United States
Posts: 4
williamglassII is on a distinguished road
Help programming G2, G3 partial circle blends, radius

I am looking for information on how to find the X and Z cordinates when programming a blend or radius for a turning center. I have the equations in the Machinery's Handbook, and understand them, but cannot figure out how to use them in referance to our shops prints. For instance. I have a pin that has two OD's. One is 1.400 +- .002 to 1.450 +- .005 the radius starts 1.000 from face of pin and the pin is 4.000 inches long. It has blended radii between the step of r.120 each (G3 to G2 respectivly). I am told that I need to find the Chord/Chords to figure out how to program the z and x cordinates (absolute programming) but with this information I don't know how. The equations I have tell me that I need to know two of these things to find this... The radius (which I know), the chord (which I need), the angle, the length of the arc, or the hight of the arc from the chord. I am using a Cincinnati Hawk with an Acramatic 2100 control 'Siemens'. The above example given was only an example, I'm trying to understand the concept of programming partial arcs without the use of a program. Although most programs i've seen need two of those numbers to figure out the arc too. I hope any of what I said makes any sense to someone, any help would be greatly appreciated. My e-mail is william_glass1978@yahoo.com. Thanks.
Reply With Quote

  #2  
Old 04-26-2007, 09:54 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

I'll try to make you a drawing of what you need and post a pic later. One thing that you have to remember with Lathes is that your working in Diameters not Radii. So with that said everything in Z is Double in X.

Also you will need to use Tool Tip Compensation unless you want to spend wasted hours fudging around with your program to get the geometry on the part correct.

In the Tool Offset Geometry Page you will see X Z R T

X= Geometry Position part Center Line
Z= Geometry Position Face Z0
R= The Radius of the Tool Tip Insert ANSI CNMG432= .0312 Tip Radius
T= Tool Tip Designation 0-9 (for an O.D. turning tool this would be set to "3" and I.D. Boring Tool it will be set to "2") There should be a Chart in the Programming Manual

G42 is for O.D Turning Toward the Spindle
G41 is for I.D. Boring Toward the Spindle

Example a 1 inch diameter with a .1 45 Degree Chamfer is as follows.

O0001
G0G40G80G99M5
G28U0W0M9
M1

N1(TURN)
T0101M8
G50S2000M39
G96S500M3
G40G0X1.125Z.1
X0
G42G1Z0F.006
X.8
X1.0Z-.1
Z-1.0
X1.125
G40G0Z.1M9
G97
G28U0W0
M30


Example with a radius of .1

O0001
G0G40G80G99M5
G28U0W0M9
M1

N1(TURN CNMG432)
T0101M8
G50S2000M39
G96S500M3
G40G0X1.125Z.1
X0
G42G1Z0F.006
X.8
G3X1.0Z-.1R.1
G1Z-1.0
X1.125
G40G0Z.1M9
G97
G28U0W0
M30

Hop this helps.
__________________
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

  #3   Ban this user!
Old 04-27-2007, 05:30 PM
 
Join Date: Apr 2007
Location: United States
Posts: 4
williamglassII is on a distinguished road
Thanks

I think I understand. My company thinks that g41 and 42 are evil so the nose comp is programmed by hand. That's ok, it's made me very quick and good with fractions to dec. :-) I think this is stupid, but I'm not high enough or willing to change thousands of programs to add this. I'm still a little confused on the radius though. I don't have to know what the chord of the arc is? Chamfers I have pat. 45's are easy double X,Z. All other angled chamfers I think are found by (Side "B" / tan of angle "b"), then just take the numbers and make them X and Z moves. Thanks again.
Reply With Quote

  #4  
Old 04-27-2007, 09:49 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by williamglassII View Post
I think I understand. My company thinks that g41 and 42 are evil so the nose comp is programmed by hand. That's ok, it's made me very quick and good with fractions to dec. :-) I think this is stupid, but I'm not high enough or willing to change thousands of programs to add this. I'm still a little confused on the radius though. I don't have to know what the chord of the arc is? Chamfers I have pat. 45's are easy double X,Z. All other angled chamfers I think are found by (Side "B" / tan of angle "b"), then just take the numbers and make them X and Z moves. Thanks again.
G41/G42 are way better than the extra math that will have done without them, LOL. A Program should Match the Print to make edits easier plus less programming/tweaking to get it right the first time.

Believe me on parts like this for Lockheed Martin you better have the Right Geometry because there are 600 shops out there that are waiting for you to make a critical mistake.

G41/G42 = Friends
Attached Thumbnails
Click image for larger version

Name:	knuckle .75-10 .5 hex 2.jpg‎
Views:	127
Size:	38.8 KB
ID:	36311   Click image for larger version

Name:	knuckle .75-10 .5 hex.jpg‎
Views:	128
Size:	43.0 KB
ID:	36312  
__________________
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

  #5   Ban this user!
Old 04-27-2007, 10:24 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

You have to be a masochist to choose to do it by calculation . Get a cheap and simple 2D drafting program; I use a version of AutoSketch I bought in 1987. Just draw your diameter lines and the two circles that correspond to the fillet radii, move them around until the circles blend then zoom in and read off the coordinates.

In the picture I put Z zero at what I think is your 1" point so these coordinates have to be shifted to suit. The X are part coordinates, you can figure the tool nose rad correction if you're not permitted to use tool comp.

Note in the picture the circles don't blend but on the AutoSketch screen they did.
Attached Thumbnails
Click image for larger version

Name:	fillet.jpg‎
Views:	262
Size:	44.6 KB
ID:	36320  
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-28-2007, 04:52 AM
 
Join Date: Apr 2007
Location: United States
Posts: 4
williamglassII is on a distinguished road
Talking Giggles and laugh

I guess I am sort of a Massocist, I really wish to know how to trig/Geom. it out. I guess I feel if I can do this, I Really know how to program it. :-) Peac to all and thank you to toabyaxis (my friend the evil machinist) and geoff (Dat's too easy!! Espc when my shop does everything the hard way!) P.S. If either of you need a setup operator, I would be glad to fill that position!!! (Not an ad, just a desperate act!) Peace to all and have a great weekend.
Reply With Quote

  #7   Ban this user!
Old 04-28-2007, 04:56 AM
 
Join Date: Apr 2007
Location: United States
Posts: 4
williamglassII is on a distinguished road

WOW, You have helped me the most!! Thanks!
Reply With Quote

  #8   Ban this user!
Old 04-28-2007, 08:44 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070428-0727 EST USA

williamglassII:

If I understand your question correctly, then the procedure is fairly simple.

In the cross-section you have two parallel lines spaced 0.025" apart. This is from (1.450-1.400)/2 = 0.025. Where the two radii meet is 1/2 of 0.025 = 0.0125 .

Now we have a right triangle to solve. The hypotenuse is 0.12 and the long side is 0.12 -0.0125 = 0.1075 . The short side is 0.0533 . For reference the small angle is 26.3843 deg.

In the Z-axis on the lathe the distance between the two arc centers is 2 * 0.0533 = 0.1066 .

The radial or X position of the center of the first arc is 1.425/2 + 0.1075 = 0.8200 from the centerline of the pin. The second arc center position is 1.425/2 - 0.1075 = 0.6050 .

The first arc Z center is -1.0000, and the second is -1.0000 - ( 2 * 0.0533 ) = -1.1066 .

Check my math.

You may need to put a very short straight line at the intersection of the two radii if the controller has a problem with this intersection.

.
Reply With Quote

  #9   Ban this user!
Old 04-28-2007, 09:02 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Okay, hard way. Although you only need to be a wimpy masochist because it only needs geometry not trig. The two fillet radii are the same.

gar got in a few minutes ahead of me and did the description in words, here is a picture. We did the calculation a bit different; gar mentions angles so I guess he is more of a masochist than me .
Attached Thumbnails
Click image for larger version

Name:	Fillet2.JPG‎
Views:	321
Size:	126.1 KB
ID:	36373  
Reply With Quote

  #10   Ban this user!
Old 04-28-2007, 09:11 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070428-0905 EST USA

Geof:

I did it first with the Pythagorean theorem, then double checked with COS and TAN.

.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-27-2007, 09:59 AM
 
Join Date: May 2007
Location: USA
Posts: 913
g-codeguy is on a distinguished road

geof and gar- You guys must be wimps! LOL. When I started programming, it was for punch presses. No computer software. Everything had to be figured using 90 deg. formulas. Thank God for computers, hey?

Just joking. From what I've seen so far, you guys know your stuff.
Reply With Quote

  #12   Ban this user!
Old 05-27-2007, 10:48 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by g-codeguy View Post
geof and gar- You guys must be wimps! LOL. When I started programming, it was for punch presses. No computer software. Everything had to be figured using 90 deg. formulas. Thank God for computers, hey?

Just joking. From what I've seen so far, you guys know your stuff.
I used an abacus and slide rule when starting. And scratched drawings on birch bark with a piece of charcoal.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
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
Partial arc positiverake Fanuc 3 01-10-2007 09:29 PM
programming radius/ help needed integrexe410 Mazak, Mitsubishi, Mazatrol 6 12-11-2006 12:14 PM
Circle instead of radius Prboz Mach Mill 7 10-01-2006 09:13 PM
Ramping on part, partial circle with a G3 and 4" cutter ? iMisspell G-Code Programing 10 07-20-2006 02:19 AM
Programming lathe with radius numbers mudwhump BobCad-Cam 1 06-07-2004 07:14 AM




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