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-09-2009, 05:00 AM
 
Join Date: Jan 2008
Location: USA
Posts: 10
n1bpd is on a distinguished road
Creating a Curve

I have a Chinese Mill that I converted to CNC from plans a few months ago. I'm very much at the bottom of a steep (to me) learning curve....

I want to create a toolpath that looks like this (the red line). Each square is .25" and each arc is essentially 1/4 of a circle.



(Center of the drawing is my 0,0 and each square represents .25 of a unit)

I am using Mach3 with the "Cut Arc" wizard to create 4 arc's and then combine the 4 to create one curve.

When I made each arc in the wizard they looked ok, and I ended up with this -

G3 X-0.125 Y0 I0 J0.375 F2
G2 X0 Y0.375 I0.375 J0 F2
G2 X0.375 Y0 I0 J-0.375 F2
G3 X0.5 Y-0.375 I0.375 J0 F2

Which unfortunatly leads to this in mach3 -



I have double checked my number's in the wizard and started over several times. I'm not familiar with g-code at all, but I know G3 does a CCW arc and G2 is CW the coordinate figures are not the same coordinates I entered into the wizard and I'm not at all familiar with I or J g-codes.

If someone could please explain what I'm doing wrong and point me in the right direction for how to do this correctly, or of a better method I'd greatly appreciate it.

Thanks
Reply With Quote

  #2   Ban this user!
Old 04-09-2009, 05:38 AM
 
Join Date: Jan 2009
Location: united states
Posts: 16
tfisher is on a distinguished road

if you start at zero zero x and y this should work

G3 X0.25 Y.25 I0 J0.25 F2
G2 X.5 Y0.5 I0.25 J0 F2
G2 X0.75 Y.25 I0 J-0.25 F2
G3 X1 Y0 I0.25 J0 F2

hope this helps.
Reply With Quote

  #3   Ban this user!
Old 04-09-2009, 10:57 PM
 
Join Date: Feb 2007
Location: USA
Posts: 20
jimalb is on a distinguished road

Before you can cut the G2 or G3 arc you first have to move the tool to the start point.
By your numbers looks like a .250 tool

(this is cutting the top of the curve)
G00 X-0.500 Y-0.125 Z(tool clearance)
G01 Z-0.(Tool Depth of cut) F(Plung Rate)
(Now tool is at start point)
(Rest of your code follow)
G03 X-0.3750 Y0.0000 I0.0000 J0.1250
G02 X0.0000 Y0.3750 I0.3750 J0.0000
G02 X0.3750 Y0.0000 I0.0000 J-0.3750
G03 X0.5000 Y-0.1250 I0.1250 J0.0000
G00 Z0.(Clearance plane)

(this is cutting the bottom of the curve)
G00 X-0.5000 Y-0.3750 Z(Tool Clearance)
G01 Z -0.(cutting depth) F(Plung Rate)
G03 X-0.1250 Y0.0000 I0.0000 J0.3750
G02 X0.0000 Y0.1250 I0.1250 J0.0000
G02 X0.1250 Y0.0000 I0.0000 J-0.1250
G03 X0.5000 Y-0.3750 I0.3750 J0.0000
G00 Z0.(clearance plane)

I drew your evample out to double check and my numbers came out different than yours. for some reason you are cuting the bottom of the first curve and the top of the next curve.

G3 X-0.125 Y0 I0 J0.375 F2
G2 X0 Y0.375 I0.375 J0 F2
G2 X0.375 Y0 I0 J-0.375 F2
G3 X0.5 Y-0.375 I0.375 J0 F2

HTH
Jimmy
Reply With Quote

  #4   Ban this user!
Old 04-10-2009, 12:59 AM
 
Join Date: Jan 2008
Location: USA
Posts: 10
n1bpd is on a distinguished road

Thanks Jimmy - I appreciate the annotations !
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
Learning curve! IanH Benchtop Machines 1 06-01-2009 08:36 AM
SW2008 curve projection help? duvlitho Solidworks 3 10-19-2008 09:38 AM
What's the learning curve for the TL-2 rbest27 Haas Mills 4 12-18-2006 10:29 AM
unwanted circles along curve Pbrew1 G-Code Programing 4 07-29-2006 04:23 PM
Project a curve keithorr OneCNC 1 04-02-2003 10:36 PM




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