View Single Post
  #10   Ban this user!
Old 03-28-2009, 06:08 PM
Heinz Reimer Heinz Reimer is offline
 
Join Date: Nov 2006
Location: Canada
Posts: 31
Heinz Reimer is on a distinguished road

Hi Justin

Here are a few files to demonstrate how you can generate lathe toolpaths using Cambam. "Beadmm.dxf" is a drawing of your part. Note that the centerline is aligned with Y, which we intend to eventually convert to Z. I suspect your problem may have been that you had the centerline aligned with X on your drawing. The origin is set such that when on the lathe, X0 will be the lathe centerline and Z0 will be next to the chuck.

"Beadmm.cb" is the Cambam file. I've divided the curve into 8 segments. (simply click and drag to select the desired segment, then select the profile tool. Do this for each segment in the order you wish them cut) The odd numbered segments are where we want the toolbit to cut as it is moving away from the headstock, and the even numbered segments are where we want it to cut as it's moving towards the headstock. If this were a milling operation, the former would be conventional milling while the latter would be climb milling. So for each of the segments, select the appropriate MillingDirection in the "Spindle Control" section. Select the feedrate, then select machining > produce gcode.

With a text editor such as notepad, open the gcode file you've just created (Beadmm1; it actually looks almost identical to the Cambam file). Delete all of the lines, in their entirety, containing a Z value. Change the G20 to G21 if you're using mm, and not inches. Change the G17 to G18 to denote that you are using the XZ, not the XY plane. There may be some other codes such as S0 (spindle speed), M3(spindle on, CW rotation), M5 (spindle stop), and M6(tool change), which don't apply to your setup. You can remove them, though they'll probably just be ignored by the control if left.

Now use edit > replace to change all of the "y"s to "z"s, and save the file. The resulting file will give you the finishing pass for your part, however, the end of each segment will be linked in a straight line to the beginning of the next, so the last bit of editing you need to do is add a line for an x retract, such as g0 x8, at the end of each segment. The resulting file is "Beadmm2".

This doesn't include any roughing cuts, but you can easily add them to your drawing and use the same procedure to generate the toolpaths.

The actual file run in the video is "cnczone4.ngc". It's not pretty, a reflection of a lot of hand editing and me learning what works with wood...

Hope this helps you get started.
HR
Attached Files
File Type: zip Bead_files.zip‎ (23.7 KB, 138 views)
Reply With Quote

Sponsored Links
 

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