586,112 active members*
3,095 visitors online*
Register for free
Login
Results 1 to 16 of 16
  1. #1
    Join Date
    Mar 2008
    Posts
    7

    Question turning a image/model into directions for motors

    Hi, I am making my own CNC program (in order to use a USB I/O 24 from elexol, twenty four ins and outs, takes four minimum for a stepper motor, leaving plenty for other purposes (laser heat sensor, focusing lens, etc)... but anyway, I have successfully driven the motors, but now need to know how to take an image, or model, and turn them into usable directions for the motors (I am using VB .NET)... any help is appreciated...

  2. #2
    Join Date
    Mar 2008
    Posts
    7
    can anyone point me in the right direction? I recently realized that since the elexol module is a virtual serial port, that might help integrate other programs, but it is a serial, not parallel, port...

  3. #3
    Join Date
    Feb 2007
    Posts
    1084
    CAD/CAM LOL! You're over my head, that was just a joke. Good luck!

  4. #4
    Join Date
    Oct 2007
    Posts
    14
    You're looking for a CAD/CAM software package.

  5. #5
    Join Date
    Mar 2008
    Posts
    7
    I looked at the packages I could find, and I can't find information on using them with a homemade controller like this, or am I missing something?

  6. #6
    Join Date
    Oct 2006
    Posts
    104
    Hello,
    I could be mistaken but I think windows gets in the way motor control timing. My machine runs through the parallel port but doesn't work right in windows because it doesn't pass on information right when its received. I have to use dos. All the serial systems I've seen have a controller between the machine and computer to queue up instructions. I don't have any experience with that though.

    What your looking for is a G-code interpreter. It takes instructions and converts them to motor control signals usually through a parallel or serial port.

    Chuck
    http://chuckscnc.blogspot.com/

  7. #7
    Join Date
    Mar 2008
    Posts
    7
    this G-Code, I assume, can then be interpreted by my program? Is it difficult to use?

  8. #8
    Join Date
    Oct 2006
    Posts
    104
    Oh yeah,
    And CAD/CAM can design the part and CAM can make instructions called G-Code for your interpreter.
    http://chuckscnc.blogspot.com/

  9. #9
    Join Date
    Oct 2006
    Posts
    104
    No its fairly easy, you load the g-code file and tell the machine where to start. Don't know how to set it up for a serial port though.
    http://chuckscnc.blogspot.com/

  10. #10
    Join Date
    Mar 2008
    Posts
    7
    all the control is on the computer, the Elexol USB module merely listens and drives the motors, each motor has four power transistors, and the program, when ever it sends a movement (at least for my test version) just turns on the transistors in sequential order, making a step... main thing is that I needed something to tell my programs which way to turn the motors, and it seems that G code is the answer to that, but what I meant to ask is if making the program I am writing understand g code difficult... maybe there is a tutorial somewhere?

  11. #11
    Join Date
    Apr 2005
    Posts
    3634
    What you need to do is parse a DXF file.

    A .DXF file is just a simple text file.

    You should be able to find a bunch of info on google for vb.net etc.

    Open any .DXF file in Windows Notepad, you'll see after the header it's a pattern that keeps repeating with different coordinates.

    This thread might help?

    Like chazmtu said, timing might be an issue?


    .
    Free DXF - vectorink.com

  12. #12
    Join Date
    Oct 2006
    Posts
    104
    I've not seen a tutorial but then I wasn't looking for one. I'm not much of a programmer but it might be easier to modify an already existing program. A lot of people really like mach3. I can tell you that usb control for CNC is still experimental. I thought I saw a thread on it a few days ago. I'll see if I can find it.
    http://chuckscnc.blogspot.com/

  13. #13
    Join Date
    Mar 2008
    Posts
    7
    I really, even though it is using USB hardware, would not refer to it as USB, since the device uses a virtual com port driver to make it as if the USB port was a COM port, making it easier to program (and simpler if I use a machine other than my own, and COM ports are going away on many comps)... and it looks like the .DXF thing would work for me, but I still would like to be able to use a 3D model... maybe I'll save that though for an update : )
    right now I am looking at mach3, and it seems that there is a dev version, which might help me out a LOT!...

  14. #14
    Join Date
    Mar 2003
    Posts
    35538
    The development version of Mach3 is just the most recent release, it won't give you any code to look at. You might want to look at the source code for EMC. Part of Mach3 was based on the EMC code. Be aware that Mach3 is the result of one person working 8-16 hours a day, 7 days a week, for almost 5 years to get where it is today.
    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)

  15. #15
    Join Date
    Mar 2008
    Posts
    7
    I meant the SDK that appears to be available...

    [ADDITION]: just thought I might put this out there, thanks to the Arduino I recently got, I also can now make the machine not need a computer (assuming the raw directions for a set, but re programmable, output are made first)...

  16. #16
    Join Date
    Oct 2006
    Posts
    104
    My mistake. Looks like Switcher and Ger21 Know a whole lot more than me about that, no surprise there.
    http://chuckscnc.blogspot.com/

Similar Threads

  1. Mach3 Mill.... Motors not turning.
    By junior85 in forum Mach Mill
    Replies: 3
    Last Post: 05-29-2007, 07:45 AM
  2. Cut Directions
    By thebiglad in forum EdgeCam
    Replies: 6
    Last Post: 07-29-2006, 03:31 PM
  3. Access to Fanuc motors/amps for BP Boss, help me choose model
    By jderou in forum Bridgeport / Hardinge Mills
    Replies: 1
    Last Post: 07-16-2006, 05:36 PM
  4. Manual turning of stepper motors
    By Pat in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 08-08-2005, 09:04 PM
  5. It's getting there....motors are turning
    By johnt in forum Waterjet General Topics
    Replies: 1
    Last Post: 03-28-2005, 12:34 AM

Posting Permissions

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