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 > Visual Basic


Visual Basic Discuss Visual Basic programing.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-25-2007, 04:40 PM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road
Arrow DIY CNC G-Code Plotter (VB.NET 2005)

First, the code in the link, is not mine (I just found the cool link).

The link takes you to the "CodeProject" site, shows you how to build your own g-code plotter, in VB.Net 2005 (Free from MS).

The source may not be complete, for all your needs, but I'm sure the coder did at least 75% of the work already.

This is by far the best in vb.net 2005 that I've found.

http://www.codeproject.com/vb/net/CNC_Viewer.asp

I added a couple of basic things to the code that I downloaded, like a button for auto plot (similar to NcPlot), & RTB for the g-code.

This code is great for learning.





Screenshot:
Attached Thumbnails
Click image for larger version

Name:	123.jpg‎
Views:	1288
Size:	90.3 KB
ID:	34238  

Last edited by Switcher; 03-25-2007 at 05:10 PM.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 04-29-2007, 10:01 PM
 
Join Date: Jul 2004
Location: United States
Posts: 89
GaryM is on a distinguished road

Thanks Switcher, I just downloaded that viewer. That is cool! I'm going to check this out.

Gary
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 04-29-2007, 10:25 PM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

The program is nice, kinda like ncplot, only we can change anything we want!

If you do anything cool, with the code, post the exec.

I added a timer/button for the viewer like the latest ncplot has. I'll post it soon.

This would make a great start for an open source plotter.




.
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 04-29-2007, 11:30 PM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

This is a free g-code plotter.

Update:

This plotter is far from done, anyone that wants to modify the program is welcome to, just follw the link in post #1.



.
Attached Files
File Type: zip Plot.zip‎ (121.6 KB, 1490 views)

Last edited by Switcher; 04-30-2007 at 09:18 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 04-30-2007, 01:17 AM
dertsap's Avatar
Gold Member
 
Join Date: Oct 2005
Location: canada
Posts: 3,608
dertsap is on a distinguished road
Buy me a Beer?

neat program
how does a guy go about modifying or even creating a program like this ,it always blows me away when i see some of the programs that guys whip up and post here , i d like to do this type of stuff but i ve got no idea where to start , is it as difficult as it looks
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 04-30-2007, 08:56 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

Originally Posted by dertsap View Post
neat program
how does a guy go about modifying or even creating a program like this ,it always blows me away when i see some of the programs that guys whip up and post here , i d like to do this type of stuff but i ve got no idea where to start , is it as difficult as it looks

Hey,dertsap

Learning to program is kinda like writing your first g-code program for cnc, It'll put a smile on your face when it actually works like you want it to, or have you swearing at your pc monitor (like it stole your wallet!).

Anyway, it's still a lot of fun.

1) To start, you need to decide what language to use, I use "Visual Basic Express .Net 2005" it's free from Microsoft (ever heard that before in the same sentence?).

2) Get all the help you can for free, it really helps to have DSL internet service, the "Visual Basic Express .Net 2005" is a large download, MS now has video that will take you thru building your first program, & I'll tell you video beats any book!
You can find tons of websites on www.google.com that other programmers have posted free code samples, this is how I started (again working code samples are better than any book).

So to start, this is what you'll need:

1) A PC running "Windows XP" (I don't know about Vista)

2) Download "Visual Basic Express .Net 2005" http://msdn.microsoft.com/vstudio/express/vb/

3) Look at the "Learning Tracks" (option) for VB.Net (Visual Basic .Net 2005) http://msdn.microsoft.com/vstudio/ex.../learningpath/




.
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 04-30-2007, 09:05 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

On the "Learning Tracks" http://msdn.microsoft.com/vstudio/ex.../learningpath/ I would only start with "Tier1 & 2", & anything that says "C#" just skip over, to much stuff will make things complicated to start out.



.
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 04-30-2007, 09:27 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

A couple of good sites for VB.Net

1) http://www.planetsourcecode.com/vb/d....asp?lngWId=10 (scroll to the bottom of the page)

2) www.codeproject.com/vb/net (slow, but good content)



.
Tweet this Post!Share on Facebook
Reply With Quote

  #9  
Old 04-30-2007, 03:27 PM
dertsap's Avatar
Gold Member
 
Join Date: Oct 2005
Location: canada
Posts: 3,608
dertsap is on a distinguished road
Buy me a Beer?

thanks Switcher ,much appreciated

this looks like it s going to be interesting , i followed the first lesson on windows apps and now ive got a button that has a message pop up , it seems fairly straight forward at this point of time ,i'm sure the confusion will start to set in as i get deeper into this stuff ,
i think this is going to be some fun ,and some heavy learning to accomplish the types of programs i would like to create
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 12-09-2010, 05:07 AM
 
Join Date: Feb 2005
Location: Romania
Posts: 118
dandumit is on a distinguished road

It's indeed very interesting. I have seen it a while ago and at that time the author has developed his own version. I have seen that now it's available the C# source code too.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-23-2010, 06:46 PM
 
Join Date: Dec 2010
Location: Canada
Posts: 55
crob09 is on a distinguished road
I to have a VB.NET Question

Hi,

I built a machine with the intent of controlling it using the phidgets 4-motor controller, the problem is I don't know VB.NET and need to make stepper motor "0" the "X" axis and stepper motor "1" the "Y" axis.

SO I suppose my question is how do I define each stepper a Axis? I only need two.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 03-16-2011, 12:24 PM
 
Join Date: Oct 2010
Location: USA
Posts: 9
Mike O is on a distinguished road

I'm sure this thread has everyone over at NCPlot sweating bullets.

I'm all for 'open source' code. Its great if you want to take someones work and change it to fit your needs. It is also a good way to get software for ZERO cost. Open Office has cost Micro$oft millions in sales. This is good for the software users but very very bad for the software industry.
Imagine if you will, there is a OPEN MACHINE SHOP where anyone can get machine work done for free. Get my point now? Where would the incentives be for you or anyone in the machining industry to improve their methods and spend the hundreds of thousands on machine tools? (or hire software engineers) Why would anyone pay you to do the work if they can get it done for free?
Anyone that has read or posted in this thread that understands programming in .NET, C++, Java, PHP or any language also understands that its a lot of work! I do it because its fun for the same reason I make parts. I enjoy the work but, none the less, it IS work.

With that said...
If you want to buy a fully functional back plotting app instead of hacking existing code or using partially functioning code, I have a very nice .net app for plotting G-Code called CodeChop.
It does everything a CNC editor needs to do.
Number Removal and renumbering lines with 0 padding if needed.
Find / Replace.
Expansion and compression of the text so its easier to read.
Undockable edit window.
Independent zoom window. Great for multiple monitor setups.
It also understands Sub Program calls.
It includes a RS232 com app. This Com Panel app searches for all com ports you have. It doesn't assume you only have com1 to com4. It can find any com port up to com255. It will save as many port configurations as you have hard drive space. Com Panel is FREE with the demo. You can run as many instances as you have com ports. It can be used with DNC but doesn't have all the features of a well written DNC app.
There is also a point/arc filter included. This works well when there are no conjoined arcs. If there is, you must be careful with using it as the tangential connection where the arcs meet can throw the filtering algorithm for a loop and cause under/over shoot.

What sets my app apart form most of the other back plotting programs is, It uses OpenGL for the graphics. It parses the G-code and converts it all in to code that OpenGL can plot. This allows to freely spin, pan and zoom the plot window in real time. If you modify the G-Code, you have to click the update button so the changes in the g-code are re-parsed.
You can center mouse button click on the path and it will take you to that line of g-code that makes that move. This also works in reverse.
There are a number of lockable buttons on the top menu bar such as, Auto centering the window on the selected line. This is very handy when single stepping the program.
Lighting levels can be changed as well as the STL's color.


Here's a couple of thumbnail images. Click to enlarge to actual size.


There is a demo version to try out, just go Here and download it.

As you can see in the above image, It can import ASCII and Binary STL files.

There is more info about CodeChop Here.
CodeChop may not run on all versions of OpenGL. It works great up to 3.1 but be cause of the use of gllist, may not function on the new 4.0 version of opengl. Try out the demo before buying to make sure it will do the job for you. (for some unknown reason, gllist has been deprecated in the last version of OpenGL and even some vendor versions of 3.1 There are no issues with nVidia 9800 and earlier cards)
I'm after constant improvement in CodeChop and would appreciate any input. You can post any ideas at the support forums.

Thanks for reading....
--Mike
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parabola in SW 2005 cdlenterprises Solidworks 1 11-10-2006 03:13 AM
Bugs in 2005 mdlmkr Surfcam 9 10-04-2005 12:45 PM
We upgraded to 2005. duluthboat FeatureCAM CAD/CAM 5 05-01-2005 10:41 AM
SME Conferences and Expos for 2005 Marcelissen Trade Shows and Events 0 04-24-2005 09:43 PM
Surfcam 2005 soon Cammotion Surfcam 0 02-23-2005 12:17 PM




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