585,729 active members*
4,862 visitors online*
Register for free
Login

Thread: DB-25 cable

Results 1 to 13 of 13
  1. #1
    Join Date
    Apr 2013
    Posts
    1788

    DB-25 cable

    Is there a table/drawing/whatever showing which pins in the DB-25 cable do what? My immediate interest is how to simulate the Reset button without being connected to my 770 S3.

  2. #2
    Join Date
    Mar 2007
    Posts
    2083

    Re: DB-25 cable

    I don't have a Tormach 770 to probe the 25 way pins

    as I understand the DB25 will be wired like this -

    Attachment 409658

    the only pins the machine can use to signal an E-stop to the PC are pins 10 to 13 + pin 15

    If your using Mach 3
    then you can look at what pin has been assigned in pins & ports

    I assume there is an equivalent for path pilot

    I would guess the E-stop is going to be active high so th PC will see an E-stop when the printer cable is un plugged
    if thats correct
    you will only need to try having one of input pins (10 , 11, 12 , 13 , 15 ) connected to ground ( pins 18 to 25 ) at a time
    to find which is the E-stop


    John

  3. #3
    Join Date
    Nov 2012
    Posts
    591

    Re: DB-25 cable

    The PathPilot doesn't use the "parallel port" I/O interface; it has a FPGA and a PCI driver.
    The pinouts are documented in the manual for the card, which I think is a 5i25: http://www.mesanet.com/pdf/parallel/5i25man.pdf
    You then have to look in the LinuxCNC configuration files to figure out which pin on the board is bound to the estop function.
    There's a comment in the file that claims "pin 15" (which is gpio 003 in Mesa terms.)
    There's also a line that you can uncomment when no machine is attached:

    Code:
    # use the setp line below without a machine attached
    # this isn't useful unless a properly flashed 5i25 is present
    # no machine attached
    #setp debounce.0.3.in 1
    Presumably comment out the line above this section, too, which says "use this line with machine attached."

    The file is tmc/configs/tormach_mill/tormach_mill_mesa.hal

  4. #4
    Join Date
    Mar 2007
    Posts
    2083

    Re: DB-25 cable

    correct me if I am wrong but as I understand it
    pathpilot uses the Mesa card to emulate the parallel printer port so it connects to the same DB25 connector on the machine

    John

  5. #5
    Join Date
    Dec 2008
    Posts
    740

    Re: DB-25 cable

    Quote Originally Posted by john-100 View Post
    correct me if I am wrong but as I understand it
    pathpilot uses the Mesa card to emulate the parallel printer port so it connects to the same DB25 connector on the machine

    John
    Correct, the pins on the DB-25 cable are listed under Pin#.
    Step
    Code:
    #                    IO Connections for P3
    #    Mill Function   Pin#    I/O     Pri. func    Sec. func    Chan      Pin func        Pin Dir
    #
    #    Spindle Speed    1        0     IOPort       StepGen       4        Step/Table1     (Out)
    #    Coolant         14        1     IOPort       None                                   (Out)
    #    X Direction      2        2     IOPort       StepGen       0        Dir/Table2      (Out)
    #    Estop Reset     15        3     IOPort       None                                   (In)
    #    X Step           3        4     IOPort       StepGen       0        Step/Table1     (Out)
    #    Spindle Dir     16        5     IOPort       None                                   (Out)
    #    Y Direction      4        6     IOPort       StepGen       1        Dir/Table2      (Out)
    #    Charge Pump     17        7     IOPort       PWM           0        PWM             (Out)
    #    Y Step           5        8     IOPort       StepGen       1        Step/Table1     (Out)
    #    Z Direction      6        9     IOPort       StepGen       2        Dir/Table2      (Out)
    #    Z Step           7       10     IOPort       StepGen       2        Step/Table1     (Out)
    #    A Direction      8       11     IOPort       StepGen       3        Dir/Table2      (Out)
    #    A Step           9       12     IOPort       StepGen       3        Step/Table1     (Out)
    #    X Limit         10       13     IOPort       None                                   (In)
    #    Y Limit         11       14     IOPort       None                                   (In)
    #    Z Limit         12       15     IOPort       None                                   (In)
    #    Probe In        13       16     IOPort       None                                   (In)

  6. #6
    Join Date
    Mar 2007
    Posts
    2083

    Re: DB-25 cable

    Hi TurboStep

    that table is exactly what kstrauss will be looking for

    pin 15 is used for E-stop

    John

  7. #7
    Join Date
    Aug 2014
    Posts
    257

    Re: DB-25 cable

    See attached spreadsheet. Although I reference the 7i92 it's the same for the 5i25 also.

  8. #8
    Join Date
    Apr 2013
    Posts
    1788

    Re: DB-25 cable

    Thanks! That appears to be exactly what I asked for and all of the signals make sense. However, what does the mill do to tell PathPilot that "Reset" has been pressed? Estop, accessory input and the limit switches appear to be the only signals from the mill to PathPilot.

  9. #9
    Join Date
    Nov 2012
    Posts
    591

    Re: DB-25 cable

    By "Reset," do you mean the green button that puts the machine out of e-stop?
    As far as I can tell, when you press the red estop button, it's in estop, and that signal doesn't go away until you unscrew the red button and then press the green button.
    The "Reset" button in the GUI is a GUI internal button; the mill doesn't tell the GUI about it.

  10. #10
    Join Date
    Apr 2013
    Posts
    1788

    Re: DB-25 cable

    Correct. I want to simulate pressing the green button without having the DB-25 connector plugged into my mill. You're probably right. Just don't send eStop!

  11. #11
    Join Date
    Nov 2012
    Posts
    591

    Re: DB-25 cable

    If the only reason you need "green button simulation" is that you want to run PathPilot in "emulation" mode, then you're probably OK just changing those two lines in the HAL file that I pointed out below. I haven't tested it myself, but that's what the comments in the files are saying should suffice ...

  12. #12
    Join Date
    Dec 2008
    Posts
    740

    Re: DB-25 cable

    Quote Originally Posted by kstrauss View Post
    Correct. I want to simulate pressing the green button without having the DB-25 connector plugged into my mill. You're probably right. Just don't send eStop!
    This is one of the instances I would not want to modify the hal file. Especially as it appears you want to do this on your actual machine controller - after all, you know how forgetful some people are
    If I understand you correctly you want to simulate that machine is running and out of E-Stop so you can press Reset on PathPilot for testing. As John said, pin 15 is used for the E-Stop so you just need to connect it to ground. I use C10 cards from cnc4pc.com for most of my testing but you could just use an old DB-25 connector +/- cable or one of these just plugged into your controller connector:
    https://www.amazon.com/s/ref=nb_sb_n...minal+Breakout
    Step

  13. #13
    Join Date
    Apr 2013
    Posts
    1788

    Re: DB-25 cable

    That is exactly the answer that I needed. I have a DIN rail mount DB-25 breakout board which will be perfect for this purpose.
    Please don't remind me about the possibility of being forgetful! I've never been good at remembering details and in my seventh decade the problem is even worse.

Similar Threads

  1. Microkinetics NM400E Cable SCSI50M to DB25M Cable Pin-Out
    By Contract_Pilot in forum Stepper Motors / Drives
    Replies: 2
    Last Post: 10-01-2014, 10:29 PM
  2. AC power cable in the same cable carrier with motor cables
    By bandtank in forum CNC Machine Related Electronics
    Replies: 12
    Last Post: 06-02-2010, 12:06 AM
  3. Replies: 0
    Last Post: 01-22-2010, 07:06 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
  •