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 01-22-2009, 07:45 AM
 
Join Date: Jan 2009
Location: USA
Posts: 2
jtlodi is on a distinguished road
Mixing G2 & G3

I have 3 cnc software programs that are mixing of G2 & G3 codes one right after the other. Something like this ...

N10 G1 X4.0127 Y1.0288 Z-0.0960
N20 G2 X4.5926 Y0.3807 I-0.1655 J-0.7315
N30 G2 X4.4063 Y0.1723 I-0.1863 J-0.0208
N40 G1 X4.2170 Y0.1723 Z-0.0960
N50 G2 X4.0321 Y0.3286 I0.0000 J0.1875
N60 G3 X3.6606 Y0.3152 I-0.1849 J-0.0312
N70 G1 X3.6591 Y0.2264 Z-0.0960
N80 G2 X3.4716 Y0.0420 I-0.1875 J0.0031

I understand that G1 = Linear Interpolation and that G2 & G3 are circular interpolation moves ... G2 = clockwise ... G3 = counter clockwise.

Can someone explain why the cnc creation software would decide to use G2 verses G3?

I'm trying to understand the logic.

Thanks,

jtlodi
Reply With Quote

  #2   Ban this user!
Old 01-22-2009, 08:18 AM
PinMan's Avatar  
Join Date: Feb 2008
Location: United States
Age: 33
Posts: 123
PinMan is on a distinguished road

are you attempting conventional milling or climb milling?

A lot of the time it might switch up to stay with the same type of milling. It also depends on the geometry.

Originally Posted by jtlodi View Post
N10 G1 X4.0127 Y1.0288 Z-0.0960
N20 G2 X4.5926 Y0.3807 I-0.1655 J-0.7315
N30 G2 X4.4063 Y0.1723 I-0.1863 J-0.0208
N40 G1 X4.2170 Y0.1723 Z-0.0960
N50 G2 X4.0321 Y0.3286 I0.0000 J0.1875
N60 G3 X3.6606 Y0.3152 I-0.1849 J-0.0312
N70 G1 X3.6591 Y0.2264 Z-0.0960
N80 G2 X3.4716 Y0.0420 I-0.1875 J0.0031
In your particular case here... it looks like the geometry is the reason.
In most all of the CAM softwares that I have used, how you pick the geometry for the toolpath affects the toolpath, i.e - if I draw a simple arc and click on the top of the arc when setting my geometry, it will climb mill (G02). If I click on the bottom of the arc, it will conventional mill (G03).
Reply With Quote

  #3   Ban this user!
Old 01-22-2009, 08:45 AM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

It's the contour your milling. if you follow the contour in the direction of the cut, some of the curves are going to be convex, some concave. G2 and G3 are one or the other. G2 can't be both, neither can G3. Open the following attachment -

Name:  curves.bmp
Views: 262
Size:  85.0 KB

Follow the curves (generated from your data) with your finger, from top to bottom. One of them goes counter-clockwise, next to last curve. That was because of the G3 line. Hope this helps.

By the way, climb or conventional doesn't come in to play here, because its just a contour at this point
Reply With Quote

  #4   Ban this user!
Old 01-22-2009, 11:24 AM
 
Join Date: Jan 2009
Location: USA
Posts: 2
jtlodi is on a distinguished road
G2 and G3

Thanks for putting this into simple english for me. In other words, the interpolation method used, be it G2 (CW) or G3 (CCW) is determined by the geometry and whether conventional or climb milling is chosen.

Thanks for helping me understand this.
Reply With Quote

  #5   Ban this user!
Old 01-22-2009, 02:10 PM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

I repeat! Conventional or Climb has NO part in this! The direction you take along the contour geometry is the factor. The same geometry profile in the same direction could be climb milling or conventional, depending on where the stock is. If you are cutting a shaped groove with material on both sides, the cutter is cutting in BOTH conventional and climb at once. If the contour and direction in a pocket is climb milling; keep the contour and direction and make it an outside contour, and now you have conventional milling. G02 and G03 only describe the geometry, not the milling method.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-05-2009, 05:42 PM
 
Join Date: Feb 2009
Location: usa
Posts: 54
ssoptical is on a distinguished road
Smile jtlodi, cutter comp

the software that i use depends on how you chain / or choose the geometry
you select .
then if you can simulate the part before you post the nc code it will greatly
reduce any errors.
david.
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
New to CNC need help with mixing X,Y threads dseaver Mechanical Calculations/Engineering Design 2 01-06-2009 04:44 PM
Mixing servos and steppers? Corvus corax Servo Motors and Drives 2 12-05-2005 01:20 AM
mixing different motors? koslaz Servo Motors and Drives 2 06-12-2005 01:54 AM
Mixing servo and stepper ty1295 Servo Motors and Drives 0 01-19-2005 09:26 AM
motor mixing and matching... charleyy DIY-CNC Router Table Machines 8 09-05-2004 11:32 PM




All times are GMT -5. The time now is 12:10 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 354 355 356 357 358 359 360 361