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 > OpenSource Software


OpenSource Software For the Discussion of Opensource CAD/CAM and NC shareware software etc)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-15-2005, 11:54 PM
 
Join Date: Jun 2004
Location: United States
Posts: 7
GregMM is on a distinguished road
Cnc#

I have started working on a machine controller software written in C# called CNC#, but will have plugin support so plugins can be in any .NET language so I can use Managed C++ for the actual machine control, so far the plugin interfaces planned are for Renderers to preview the toolpath, Machines so your not limited to parallel port step/dir commands, file importers, and generators to generate common gcodes liek gears and whatnot, I got basic renderings working with Direct 3D, the program is going to be free and the sources posted once it gets a little more matured, heres a screenshot of what its at so far, the screenshot is showing a zoomed in circuit board that was exported to gcode from EAGLE, its the first app ive done with 3d graphics, so I havnt actually figured out how to show it as a solid like the machine actually cut it, just the toolpaths for right now
Attached Images
File Type: jpg CNCSharpBeta.JPG‎ (185.6 KB, 654 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 09-19-2005, 09:52 AM
 
Join Date: May 2004
Location: Canada
Posts: 13
heyarnold is on a distinguished road
Outstanding! I think your idea and program are great! Please keep posting your updates.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 09-19-2005, 02:39 PM
Evodyne's Avatar  
Join Date: Dec 2004
Location: USA
Posts: 518
Evodyne is on a distinguished road
Greg,

Looks real nice! Definately keep working on it. And I applaud you for deciding to post the code as open source. Thanks!

Lance
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 09-19-2005, 02:53 PM
anoel's Avatar  
Join Date: Apr 2003
Location: Central Illinois
Posts: 465
anoel is on a distinguished road
Very cool. I'm a noobie with C# and just got back from the Microsoft PDC conference and attended several sessions on C#.

Writing a Gcode back plotter was to be my first excercise in graphics programming with C#. You beat me to it.

Can you give a basic idea of what you used to implement the 3d stuff? I was thinking of using DirectX or OpenGL (probably DirectX, since I'm looking at making use of the Windows Presentation Layer "Avalon" and that's all DirectX implemented. I've got all of the Windows Vitsa and VS2005 betas now and want to get in a little deeper into the new stuff they've slated for the Vista relase.)

Also there was a really cool demo at the PDC show where there was a company that was doing "Realtime" OS with windows by running WindowsCE underneath Windows XP and the software was marshalling commands from XP to CE which in turn commanded a really cool milling robotic arm in realtime.
__________________
Nathan
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 09-19-2005, 09:28 PM
 
Join Date: Jun 2004
Location: United States
Posts: 7
GregMM is on a distinguished road
Thanks for the feedback, for 3D stuff im using Direct 3D, or more specificly Managed Direct 3D, its pretty easy to learn, I got the "Managed DirectX 9 Kickstart" book from my college book store and its really very good, although the samples are the same as in the DirectX SDK as the author is the one who programmed the DirectX SDK samples, I would definilty start with Managed D3D over normal D3D unless you have a very good understanding of matricies/linear algebra
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 09-22-2005, 11:50 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road
GregMM, Great Job! I can't wait to see a demo, of what you've done so far. I've just started working with VB .NET, I think an open source controller, is just what this site needs! They already have tons of people that know the mechanical & electrical, side of cnc. Now all they need is people working on a open source controller. Are you planning on using this site, to host your code, or do you have your own site? Again, great work!
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-27-2005, 10:41 PM
 
Join Date: Jun 2004
Location: United States
Posts: 7
GregMM is on a distinguished road
Hey switcher, I do have a site, however there isnt anything there right now, the first couple betas will probly just be posted here, but it will probly be a little bit before its ready for a beta, im actually taking a robotics course in college right now, and I am experimenting with a more universal approach to the program, rather then making it 3 axis/4 axis/etc, im going to try and make it support unlimited axes using a machine configuration file which will be able to hold wither the Denavit-Hartenburg Notation paramaters for generating the coordinate frame transformation matrix, or the transformation matrix itself, but using these matricies, I should be able to generate a jacobian matrix to do inverse kinimatics (figuring out how much to move along the axis in the axis's coordinate plane, in order to get tot the point in the base frame, or real world coordinates) should make things pretty interesting and should only need three types of joints, prismatic (linear actuator type joints, like normal X, Y, Z axes), revolute (rotational axes, like a fourth/fifth/etc axis), and a special case of the revolute joint that will rotate based on time like the rotating part of a lathe, although the last is actually only used in simulation), I also want the machine description to include 3d parts for the simulation, as it would look cool to have a good looking solid simulation with the machine and all, instead of just the toolpath
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 09-28-2005, 11:52 AM
Gold Member
 
Join Date: Oct 2004
Location: USA
Posts: 742
CJL5585 is on a distinguished road
Great Job.
Looking forward to the demo and code.

Jerry
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 10-07-2005, 11:54 PM
 
Join Date: Aug 2003
Location: Tyngsboro, MA
Posts: 1
kurt_m is on a distinguished road
Very cool. I am a Newbie to C# what a great project. Every thought of looking at EMC source code to get some ideas? I am going to download it and look at it to see how complex it is. Maybe you can can use and improve on the code when converting over to C# language and structure.

It amazes me that people crank out this stuff. Still working on getting my mill CNC converted. See www.bestbots.us
__________________
Kurt McCarthy
Tweet this Post!Share on Facebook
Reply With Quote

  #10  
Old 10-08-2005, 01:27 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 19,551
ger21 is on a distinguished road
Buy me a Beer?
Originally Posted by kurt_m
Very cool. I am a Newbie to C# what a great project. Every thought of looking at EMC source code to get some ideas? I am going to download it and look at it to see how complex it is. Maybe you can can use and improve on the code when converting over to C# language and structure.
I believe Mach1 was based on EMC code, but has evolved considerably while becoming Mach3.
__________________
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
  #11   Ban this user!
Old 11-06-2005, 08:54 PM
 
Join Date: Jun 2004
Location: United States
Posts: 7
GregMM is on a distinguished road
just letting people know that Im still working on it, although progress has been a little slow with the school work, Ive figured out how to get it to generate the necessary step pulses for movements, although there is no timing implemented yet, its going to be using two stage compiling, first stage takes all the commands and will interpret them so there is only linear interpolation ex (the Gcode the draw a circle/arc and drill routines, etc will be converted to the coordinates to move in order to generate toolpath rendering easily, and the machine plugin interface can either request this level in order to send coordinates to the machine, for non-step/dir machines, or the next level which compiles to step dir pulses for machines that use step/dir), I chose to do it this way so that step/direction pulses are only generated in one place, to avoid bugs/unimplmenetations throughout the different plugins, and also make plugin development easier, so the plugin will only have to handle step/dir pulses or linear interpolation coordinates, unfortunatly I dont have a machine yet, hopefully ill get some stepper drivers soon, and I can start implementing/verifiny the step pulse generation and timing, heres a screenshot of where its at right now
Attached Images
File Type: png cncSharpImage.png‎ (30.8 KB, 363 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #12  
Old 11-06-2005, 09:48 PM
Gold Member
 
Join Date: Oct 2004
Location: USA
Posts: 742
CJL5585 is on a distinguished road
Your efforts are looking good.

Jerry
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On





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