Results 1 to 7 of 7

Thread: Mach 3 interface to stepper motor driver

  1. #1
    Registered
    Join Date
    Oct 2005
    Location
    UK
    Posts
    38
    Downloads
    0
    Uploads
    0

    Mach 3 interface to stepper motor driver

    Hi all,

    First post in CNCzone. I have aquired an old, but quality looking machine. It originally had an rs232 interface but the original software is missing and I believe it did not use g codes anyway. I am retaining a lot of the electronics, incuding the octal relays, xyz stepper drivers and power supplies. I have purchased Mach3 to drive from my pc lpt port. I am building an interface board from the lpt port to the L297 stepper driver/translators. My interface will include an AVR to detect the charge pump signals and to drive the L207s etc.
    To the point, at last.
    I would like to use optocouplers to isolate the lpt port from the machine electronics, but am worried about the source capabilities of the lpt port. The led in the optocoupler will take about 15ma and I read that 1284 level 2 ports will source 14ma. I should be able to compromise there, but the original lpt ports were only specified for 1.5ma or thereabouts. If I buy an off the shelf pci board is it likely to be 1284 level 2? Are all modern pcs built to the new standard? If so, how far back can I safely go? Do the commercial breakout boards have optical isolation?

    Anyone done this?

    Regards


    Dave


  2. #2
    Registered
    Join Date
    Oct 2005
    Location
    UK
    Posts
    38
    Downloads
    0
    Uploads
    0
    6n137 optocouplers do the job.


  3. #3
    Registered
    Join Date
    Jan 2009
    Location
    uk
    Posts
    7
    Downloads
    0
    Uploads
    0
    can u please inform more details about the interface board between the parallel port and the drive board of the steppers?


  4. #4
    Registered
    Join Date
    Oct 2005
    Location
    UK
    Posts
    38
    Downloads
    0
    Uploads
    0

    Smile

    Blimey!

    We're going back a bit here.

    When I get home I'll dig out my schematics and any other information and post them here.


    Dave


  • #5
    Registered
    Join Date
    Oct 2005
    Location
    UK
    Posts
    38
    Downloads
    0
    Uploads
    0
    OK,

    Here are pictures of my pcb, top side red and bottom, mirrored, blue.
    Looking at the top, the lead to the parallel plug is top right and the limit switches etc are bottom right. Two relays top left switch the spindle motor and something I can't remember. The power to the steppers are bottom left. The two multi pinned connectors at the bottom are signals to the three stepper drivers. A bit overkill, but I used the original two driver boards and salvaged the connectors from the original interface board.
    There may have been a few modifications, for instance I prefer to operate the spindle manually.

    Dave
    Attached Thumbnails Attached Thumbnails Mach 3 interface to stepper motor driver-pcb-106414016bc.bmp   Mach 3 interface to stepper motor driver-pcb-106414016tc.bmp  


  • #6
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3325
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by dhookings View Post
    Hi all,

    First post in CNCzone. I have aquired an old, but quality looking machine. It originally had an rs232 interface but the original software is missing and I believe it did not use g codes anyway. I am retaining a lot of the electronics, incuding the octal relays, xyz stepper drivers and power supplies. I have purchased Mach3 to drive from my pc lpt port. I am building an interface board from the lpt port to the L297 stepper driver/translators. My interface will include an AVR to detect the charge pump signals and to drive the L207s etc.
    To the point, at last.
    I would like to use optocouplers to isolate the lpt port from the machine electronics, but am worried about the source capabilities of the lpt port. The led in the optocoupler will take about 15ma and I read that 1284 level 2 ports will source 14ma. I should be able to compromise there, but the original lpt ports were only specified for 1.5ma or thereabouts. If I buy an off the shelf pci board is it likely to be 1284 level 2? Are all modern pcs built to the new standard? If so, how far back can I safely go? Do the commercial breakout boards have optical isolation?

    Anyone done this?

    Regards


    Dave
    You can sink 20ma on all the output pins. Odd's are that a PC that will run mach3 will source 20ma on pins 2 through 9, but it's not a guarantee. For mach3 you need a fast optocoupler, HPCL263x or HPCL 253x or those series P/N's. If you need a reference design take a look at one of mine: http://pminmo.com/4axisopto/4axisDIYopto.htm
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com


  • #7
    Registered
    Join Date
    Oct 2005
    Location
    UK
    Posts
    38
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by pminmo View Post
    You can sink 20ma on all the output pins. Odd's are that a PC that will run mach3 will source 20ma on pins 2 through 9, but it's not a guarantee. For mach3 you need a fast optocoupler, HPCL263x or HPCL 253x or those series P/N's. If you need a reference design take a look at one of mine: http://pminmo.com/4axisopto/4axisDIYopto.htm
    We are a bit out of step here. I've actually had this machine running for quite some time. However, version 2 may be a consideration. Time permitting I will do some more research on my drivers, with a view to getting faster rapid movement.

    Regards

    Dave


  • Similar Threads

    1. Beltdrive-stepper motor-stepper motor driver
      By Georg in forum Stepper Motors and Drives
      Replies: 0
      Last Post: 10-16-2007, 05:56 PM
    2. Stepper Motor Driver
      By droddis in forum DIY CNC Router Table Machines
      Replies: 5
      Last Post: 07-30-2007, 08:03 PM
    3. Servo motor, step/dir driver and Mach.
      By Darc in forum Mach Mill
      Replies: 0
      Last Post: 04-11-2006, 01:23 AM
    4. Preferred Stepper Driver Electrical Interface
      By JeremyLee in forum Polls
      Replies: 4
      Last Post: 02-26-2006, 04:08 PM
    5. servos motor controled by stepper motor driver?
      By mike10 in forum Servo Motors and Drives
      Replies: 1
      Last Post: 01-03-2005, 06:05 PM

    Posting Permissions



    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.