584,842 active members*
4,421 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Visual Basic > Steps to develop VB program to read CNC (G-code) program.
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2013
    Posts
    2

    Steps to develop VB program to read CNC (G-code) program.

    Hi All,
    Hope you are doing well.

    I am new to this field. Could any please tell me which all steps I need to perform to develop VB.net program which would be processing CNC (G-code) programs.
    I would be really helpful if I get details for below queries.
    1) Which all software’s I will have to install on PC?
    2) Which all libraries, dll, complier are available to compile g-code in VB programs?
    3) Any sample code, project which shows such programming.
    4) How to configure CNC compiler with VB?
    5) Any URL wherein I will information about this programming?
    6) Documents with detailed information
    Thanks in advance!

    Thanks,
    Bhushan

  2. #2
    Join Date
    Apr 2003
    Posts
    1354
    You want to write your own CAM program in VB? Is that what you are asking about?

    It's not impossible. I've done it for 2.5 axis and 3+2 axis drilling out of Rhino. However, I would suggest you find a product that is already available for what you need. In the end, it will be cheaper.
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Oct 2013
    Posts
    2
    Yes Dan B, you are right I want write my own program to read CNC file in VB programm. VB program would pass signals accordingly.
    Could you please share link where in i will get code, programs or tutorial to develop/learn this programming.

    Thanks in advance!

  4. #4
    Join Date
    Mar 2003
    Posts
    35538
    It sounds like you want to write your own control software?? If so, your best bet is to get the source code for Linux CNC and see how they do it.
    I doubt you'll find any other freely available source code. This is an incredibly complex project, and requires a very strong math background and excellent programming skills.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  5. #5
    Join Date
    Apr 2003
    Posts
    1354
    Quote Originally Posted by ger21 View Post
    This is an incredibly complex project, and requires a very strong math background and excellent programming skills.
    Which is exactly why I said it's cheaper to buy a commercial product, whatever the cost. I've been working on mine for 10 years! In fact I've been on it so long that the language I wrote it in is obsolete (VB6). Now I need to re-do it in vb.net!!

    If you are determined to go down this bumpy road, go to your local bookstore and find a book on the vb.net and start reading. Practice on a bunch of non-related projects, then once you are comfortable with the language, then start laying out your plan for this CNC project.

    Dan
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  6. #6
    Join Date
    Apr 2006
    Posts
    3498
    Vb is not good at control.. Its timer is not that good in timing and having least resolution.
    http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
    http://my-diysolarwind.blogspot.com/

  7. #7
    Join Date
    Dec 2017
    Posts
    7

    Re: Steps to develop VB program to read CNC (G-code) program.

    hi Dan B
    please can you help me ......
    I've recently purchased a laser engraving machine. The machine uses a Leetro MPC6515 controller . I'm trying to build my own software to control the laser but I've hit a dead end...do you know any information about its control card MPC6515 and how can I control it

  8. #8
    Join Date
    Apr 2003
    Posts
    1354

    Re: Steps to develop VB program to read CNC (G-code) program.

    No, sorry I don't know anything about this controller.
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Similar Threads

  1. mach3 won't read in full gcode program all the time
    By son of lar in forum Mach Mill
    Replies: 2
    Last Post: 02-12-2014, 01:19 AM
  2. Mazatrol Program into a G Code Program
    By fuzzman in forum Mazak, Mitsubishi, Mazatrol
    Replies: 15
    Last Post: 09-25-2012, 04:27 PM
  3. RS-232 program read
    By hmc710 in forum Colchester Tornado lathes
    Replies: 7
    Last Post: 05-09-2011, 09:29 PM
  4. my machine now steps thru the program....
    By turbothis in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 11-24-2009, 02:41 AM
  5. Replies: 32
    Last Post: 05-10-2006, 02:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •