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-13-2005, 04:47 PM
 
Join Date: Feb 2005
Location: Canada
Posts: 3
JimmyJazz is on a distinguished road
Conic sections with G02 & G03?

I usually find that G02 and G03 are defined as "circular interpolation", but I've found the odd literature that tantalisingly defines them as "parabolic interpolation", without really expanding on the idea. Are there tricks that one can pull with the I and J offsets in G02/03 to define conics? If not with G02/03, is anyone aware of a macro or canned cycle that will create ellipses, parabolas and/or hyperbolas in addition to circles? I'm working on Haas machines exclusively at the moment, if that has any bearing.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 02-14-2005, 04:32 AM
tex tex is offline
 
Join Date: Apr 2004
Location: Serbia and Montenegro
Age: 48
Posts: 60
tex is on a distinguished road

I found an example of ellipse interpolation, but still can't figure it out...take a look:

http://216.239.59.104/search?q=cache...polation&hl=en


There's an "ELLIPSE EXAMPLE" at page7.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-14-2005, 06:28 AM
 
Join Date: Apr 2004
Location: Brazil
Posts: 31
CAMFUN is on a distinguished road
Lightbulb

I usually find that G02 and G03 are defined as "circular interpolation", but I've found the odd literature that tantalisingly defines them as "parabolic interpolation",


Jimmy, it´s possible using parametric programming. You must to create a equation that defines your shapes. For example, if you wanna mill a conic shape, you can set in a variable inside your program, the angle of your cone. After that, in another variable, you can set your step in Z, in another, your initial radius, for example: .01 mm, the final depth in Z. After have created all variables, you build a equation that uses this values and recalculate for you the positions in X/Y/Z axes.

It depends on of your control, due to this, I`ll put here an exemple in general language, OK. (The sample are in mm)

N10 R1= 0.005 ; (INITIAL RADIUS IN X AXIS)
N20 R2= -0.1 ; (STEP INCREMENT IN Z AXIS)
N30 R3= -20.0 ; (FINAL DEPTH IN Z AXIS)
N40 R4= 15 ; (ANGLE OF CONE)
N50 G1 G41 D1 X(R1) Y0 S3000 M3
N60 G1 Z-(R2) F1000
N70 G3 X(R1) Y0 I0 J0
N70 R1 = TAN (R4) * (R2)
N80 R2 = (R2)-(R2)
N90 G1 G40 X-10 Y0
N100 IF R2 < R3 RETURN N50, ELSE N110
N110 G0 G53 Z0 M30; END

This is a sample. I´m not sure if the values are correct. But it´s the main idea. The program will verify the coordinates in Z axis till the conditions established be pleased. After that, the program ends. Any type of mathematical geometries can be done. Everthing depends of your equation. A parabola for example, can be milling creating a equation and variables that defines it.


HTH
__________________
Kind Regards

Daniel - Camfun
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-14-2005, 08:23 PM
 
Join Date: Feb 2005
Location: Canada
Posts: 3
JimmyJazz is on a distinguished road

Thank you very much for your replies.

I'm not sure which part you don't understand in that tutorial, tex -- the geometry or the g-code -- but the geometry can be found in the Machinery's Handbook, if you have a copy of that laying around. It's an old practice to fake or approximate an ellipse by connecting 4 circular arcs, 2 long and 2 short. I was just reading that today, actually -- it's in the first section of the book, under the heading "Geometric Constructions." That's essentially all that this tutorial is doing, plus it seems to be dealing with some overhead related to the machine's very small memory footprint.

CAMFUN, that's beautiful. I'm a former software developer who's chosen to change careers into machining (had to satisfy a creative urge that wasn't being met), and I'm currently a student who's just started into g-code. For the moment, I'm actually just trying to work in 2 dimensions, throwing a felt marker into the chuck and writing on a pad in a mill. I can take this and get the math right. We simply hadn't got around to variables, conditional logic, subroutines or any other programming constructs in our class yet. Thanks a lot for the point in the right direction.

Incidentally, I found today in my Machinery's Handbook a reference to G06, which that book describes as "parabolic interpolation." I haven't Googled that yet, but I'll see what I find and report back here in the event that I answer my own question.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 02-16-2005, 05:44 PM
tex tex is offline
 
Join Date: Apr 2004
Location: Serbia and Montenegro
Age: 48
Posts: 60
tex is on a distinguished road

Originally Posted by JimmyJazz
I'm not sure which part you don't understand in that tutorial, tex -- the geometry or the g-code -- but the geometry can be found in the Machinery's Handbook, if you have a copy of that laying around. It's an old practice to fake or approximate an ellipse by connecting 4 circular arcs, 2 long and 2 short. I was just reading that today, actually -- it's in the first section of the book, under the heading "Geometric Constructions." That's essentially all that this tutorial is doing, plus it seems to be dealing with some overhead related to the machine's very small memory footprint.
Actually, the g-code looks kind of strange to me…I have some experience with HAAS CNC mill and lathe (as you do) and find this G-code unusual. I have also tried to backplot it, but it looks terrible…no ellipses, just circles.

I am aware that an ellipse could be approximated by two circles…however still can’t find a way to interpolate it in CATIA CNC modules.

Last edited by tex; 02-17-2005 at 03:46 AM.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
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
Wierd NC Code and G-Code Tazzer General CAM Discussion 10 01-09-2012 02:07 PM
Mach2 G02, G03 Modal? miljnor Mach Software (ArtSoft software) 3 04-27-2005 11:06 PM
using vmc as a lathe ddwinn General CNC (Mill and Lathe) Control Software (NC) 7 04-25-2005 08:48 AM
Engraving Macro MachineSMM General CNC (Mill and Lathe) Control Software (NC) 12 03-03-2005 06:32 AM
why G17 G18 G19? T-bolt General CAM Discussion 14 11-28-2003 11:01 PM




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