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! > OpenSource CNC Design Center > Coding


Coding Post your Coding for opensource projects here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-17-2009, 07:53 AM
 
Join Date: Feb 2009
Location: Germany
Posts: 3
wesen is on a distinguished road
cl-mill: opensource GCode Software

Hello people,

I must say I'm a bit intimated by this forum. I'm a complete newbie in CNC and mechanics and machining. I got a CNC mill in december to help me build casings for my electronic devices, and being badly afflicted by the Not Invented Here syndrome, I decided to build my own "CAD/CAM" software (that's a really big word for my software).

Basically, it generates G-Code. You can either program geometric shapes (circle, rectangle), outline, inline or fill them (at different depths too), which is what I use to mill my casing frontplates and sidepaltes. You can already do some pretty complicated drawing with this, as it supports rotation, scaling, displacement.

Also, the program generates multiple "passes", so you can for example generate movements and store parts of the milling in a "drill", an "outline", a "rough", a "finishing" phase without having to split your drawings apart. You can then combine passes.

Also, it supports panelizing, so it can calculate the size of a part and then replicate that part inside the workpiece, and for example drill fastening holes between the different panels. It can also automatically generate bridges on pieces and then store the bridge cutting in a separate pass (which is pretty useful for the plywood milling and pcb milling i do).

Furthermore, I can import vector graphics out of an SVG file, which makes it pretty easy to do fonts and the like, or just communicate with graphic people

Also, I can trace bitmaps using the potrace library. As this library generates bezier curves, I wrote a pretty evolved algorithm to convert bezier curves into most fitting arcs, which seems to work quite well. I started working on an offseting algorithm, which works pretty well as long as offset lines don't create pockets, but I'll definitely build that cause I need it.

I also implemented a bridge to the processing.org application, which allows me to quickly convert sketches into milling files, which is very very nice. I wrote about it in my blog over at http://ruinwesen.com/blog?id=387 , and you can check the sourcecode out at http://cl-mill.googlecode.com/ .

It's all written in common lisp and is definitely not in releasable state, but I will try to work on it as much as I can in the next few months. Let me know if you can use some of that stuff (maybe the algorithms) and I'll try to document a bit better.

On the other hand I'm a cmplete newbie to milling, so I think I will post some videos of my workflow and ask if the stuff I'm doing is okay, cause I really don't know anything about it all. I can mill my wood and my aluminium without breaking too many bits and that's about it
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 02-17-2009, 07:57 AM
 
Join Date: Feb 2009
Location: Germany
Posts: 3
wesen is on a distinguished road

Oh I forgot it also has PDF export, so I can print things out before milling them to check dimensions and obivous errors.

ALso I wrote this bridge to the EAGLE PCB program, so I can mill prototypes of circuit boards before assembling them to check if the mechanics fit. some examples here: http://bl0rg.net/~manuel/holzproto.jpg http://bl0rg.net/~manuel/holzproto2.jpg

Also it allows me to driectly mill the frontplate out of the eagle schematic, so I don't need to have a separate CAD file, and I'm always sure the buttons and frontplate and holes and screws will align perfectly. It also allows me for example to mill a complete guitar pedal (with PCB milling and fronplate and casing) in one go

Furthermore, I use a lot of those functions I built to actually generate different forms and monsters and graphics, some of which you can see here http://bl0rg.net/~manuel/abspack-crowd/ (that's the processing script), and that's the boards and wooden pieces:

http://bl0rg.net/~manuel/monster-fraes.jpg
http://bl0rg.net/~manuel/monster-fraes2.jpg
http://bl0rg.net/~manuel/mididuino-fast-fertig.jpg

Here's a picture of my device casing (first engraving test, ws not really good, but I got it now):

http://bl0rg.net/~manuel/minicommand-omg3.jpg
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-23-2009, 07:18 AM
 
Join Date: Sep 2008
Location: Germany
Posts: 142
der_fisherman is on a distinguished road
Nice work !!

You describe yourself as a "Newbie" !!! Somehow the name does not fit with such excellent CNC programming!!! We should try and think of a better name for you. The CAD Man!!

I would just like to say thanks and I hope to be in a position to mill out some PCBs myself before the year gets much older....

Regards

Der Fisherman
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-23-2009, 10:26 AM
 
Join Date: Sep 2006
Location: United States
Posts: 67
jetpig1 is on a distinguished road
CADCAM

Sounds cool. I am a CADCAM guy from way back, and I love the thought of creating code that writes code. Although I have programmed since 1976, I have never programmed anything that creates G code for spindle movement. I am running a 4 axis mill at home, so I do a fair amount of coding and milling, and I am interested. I tried to access your source code, but was unable to do so....

-Geo
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 02-23-2009, 11:16 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,570
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by jetpig1 View Post
I tried to access your source code, but was unable to do so....

-Geo
Click on the "Source" tab, then click on "browse".
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-23-2009, 05:26 PM
 
Join Date: Jan 2006
Location: Australia
Posts: 475
FPV_GTp is on a distinguished road

Nice work , once again a individual sharing his/hers ideas with the masses

keep up the good work

cheers
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 02-24-2009, 02:10 AM
 
Join Date: Aug 2007
Location: AUSTRALIA
Posts: 8
Charlm is on a distinguished road

Brother,
i am interested in what you have done i have gone to your website and i have seen where your code is but i would just lie to be able to run it and see how it performs.

Is this possible or is it in a state that has no GUI fit for windows?
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 03-02-2009, 10:29 AM
 
Join Date: Feb 2009
Location: Germany
Posts: 3
wesen is on a distinguished road

Hi Charlm,

well I have to admit that I use it from inside my Lisp development envirnment, and it's not really something that I would want other people to set up. I will maybe do a GUI version one day, or package it so that people can try it out a bit easier, but at the moment we're super super busy over at the company and there is no real time for that :/

Cheers, Manuel
Tweet this Post!Share on Facebook
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
Your best opensource package ? PyroEvil OpenSource Software 27 09-09-2009 04:03 PM
Wind blade Gcode making software cocodet Hobby Discussion 2 03-02-2009 06:03 AM
dxf to gcode to Galil DMC software demo gmalone Product Announcements & Manufacturer News 0 02-15-2006 12:40 PM
Opensource CNC vacpress OpenSource Software 28 06-12-2004 07:45 PM
Opensource CNC vacpress DIY-CNC Router Table Machines 0 03-16-2004 08:13 PM




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