586,089 active members*
3,948 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Uncategorised CAM Discussion > How to control stepper drives via parallel port using custom program?
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2009
    Posts
    150

    How to control stepper drives via parallel port using custom program?

    I have an automation project that I am work on with a client. In a nutshell, I need to write a completely new custom interface (and underlying code to control the parallel port) that will control a set of 4 stepper motors via the parallel port, using a "standard" CNC-type breakout board and some Gecko G203V stepper drives.

    This is very similar to most other stepper systems used for controlling a 4-axis CNC machine, and in fact, the electronics and hardware came from a CNC control box.

    The device we are modifying is a bike fitting machine, used for custom sizing a bike (as in bicycle), to a rider's specific requirements. Basically it has 4 hand cranks that control the positioning of various parts of the bike such as seat height, handlebar height, etc which we have already replaced with stepper motors to actuate the axes.

    We are currently using Mach3 with a custom "wizard" which displays a screen that has been customized to show a view of the bike, with buttons placed strategically in the image of the bike that allow a user to raise and lower the seat, handlebars, etc by pressing a button in the wizard.

    This does work, however, it's not the ultimate solution that we are looking for. What I need is information, links, books, or any advice that will help me create the underlying code for controlling the parallel port, especially in regards to creating a way to control the timing "pulses" sent via the parallel port to the breakout board and drives.

    I have a background in programming Java, C, and C++ so it's not the languages that I need help with, but rather my unfamiliarity with writing this type of code to control the parallel port, especially in regard to properly timing the pulses.

    I have considered purchasing TurboCAD and either using remote procedure calls through a Java interface, or since TurboCAD is open source, simply reverse engineering the parts of the code that control the parallel port.

    Any tips, hints, links, etc would be much appreciated. Thanks!
    He is more machine now than man.....

  2. #2
    Join Date
    Dec 2003
    Posts
    24221
    If you are OK with C & C++, have you looked at or considered Dynomotion?
    It is an external Dsp via the USB port.
    It might do what you want?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  3. #3
    Join Date
    Jan 2007
    Posts
    175
    Have you also considered using software like LabView it will output to the parallel port, and has a great GUI for custom applications.
    Rockcliff Machine Inc.
    http://www.rockcliffmachine.com

  4. #4
    Join Date
    Mar 2003
    Posts
    35538
    What about using PLC's like CUBLOC's to run your steppers. I think the coding would end up being much simpler.
    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
    Jan 2006
    Posts
    2985
    I would second (third?) the advice to get some type of external motion controller and communicate to it through USB, serial, or ethernet connection with your program.

    A Galil controller would be perfect for this but might be out of the budget.

    Matt

  6. #6
    Join Date
    Feb 2009
    Posts
    150
    Thanks to all for the replies. I'm looking into the areas described in your posts.
    He is more machine now than man.....

Similar Threads

  1. Parallel port diagnosing program
    By justCNCit in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 06-16-2011, 01:11 AM
  2. Parallel Port stepper control
    By wthierry in forum Coding
    Replies: 1
    Last Post: 03-01-2010, 11:41 PM
  3. Documentation about commands or protocol used by drives/parallel port
    By oinquer in forum DIY CNC Router Table Machines
    Replies: 12
    Last Post: 05-12-2009, 01:12 AM
  4. XP parallel port control
    By stormelf in forum Stepper Motors / Drives
    Replies: 12
    Last Post: 11-26-2005, 06:32 PM

Posting Permissions

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