Page 1 of 2 12 LastLast
Results 1 to 12 of 14

Thread: Inputs/Outputs

  1. #1
    Registered
    Join Date
    Dec 2003
    Location
    UK
    Posts
    218
    Downloads
    0
    Uploads
    0

    Inputs/Outputs

    I've been starting to design the electronic system which will control my CNC mill and already I have hit a potential problem. My problem it seems is the number of inputs and outputs available through a parrallel port. I'm designing a four axis machine so that will be 1 limit switch for each end of each axis = 8 limit switches !.

    8 inputs just for limits seems a little excessive, even for a 3 axis, by my reaconing 6 would be required.

    Is there an error in my thinking here or is this normal and accepted ?
    Dom
    http://www.ukrobotics.com/projects


  2. #2
    Banned
    Join Date
    Mar 2006
    Location
    Boston
    Posts
    1625
    Downloads
    0
    Uploads
    0
    here a link to a Bobcad thread kind of on the same line as your question http://216.117.147.20/bobcadsupport/...read.php?t=799


  3. #3
    Registered
    Join Date
    Dec 2003
    Location
    UK
    Posts
    218
    Downloads
    0
    Uploads
    0
    Thanks for the quick reply but are you sure that is the right link ? " RS-232 Communications and Pinout" - I've had a read through and I cant find anything relevent.
    Dom
    http://www.ukrobotics.com/projects


  4. #4
    Registered
    Join Date
    Aug 2004
    Location
    Greece
    Posts
    145
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by UKRobotics
    I've been starting to design the electronic system which will control my CNC mill and already I have hit a potential problem. My problem it seems is the number of inputs and outputs available through a parrallel port. I'm designing a four axis machine so that will be 1 limit switch for each end of each axis = 8 limit switches !.

    8 inputs just for limits seems a little excessive, even for a 3 axis, by my reaconing 6 would be required.

    Is there an error in my thinking here or is this normal and accepted ?
    You could use one home switch per axis (and use it as limit also, in TurboCNC you can do that, probably in other programs) and on the other side wire all the limit switches in series.

    If your machine limits out it will stop no matter which axis overtravelled. Then you can look at the position display to determine which axis it was.

    This would only take 5 inputs for a 4-axis. Another option is of course to add another parallel port.

    Nikolas


  • #5
    Registered
    Join Date
    Jul 2005
    Location
    UK
    Posts
    450
    Downloads
    0
    Uploads
    0
    dom: actually you probably want three inputs per axis, two limits and a home. Now if your running out of io you could always add a second parallel port card, and use that. What software are you running? Things like rs232 input depend on your package, and how much work you want to put into it.

    PS: it really is a small world, just checked your webpage out, didnt expect to find anyone else from reading uni here.


  • #6
    Registered
    Join Date
    Dec 2003
    Location
    UK
    Posts
    218
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by daedalus
    PS: it really is a small world, just checked your webpage out, didnt expect to find anyone else from reading uni here.
    Indeed it is. What are you studying & what year are you in ? - I'm guessing eng/cyb cause of the CNC connection but you could prove me wrong.

    Do you have msn messenger or anything like that ?

    CNCGR - I'm running Mach 3 through a parrallel port. My plan was already to have x-, y- and z+ as combined home and limits. As for having + and - limits for each axis also on the same pin, it is a possibility but I would have liked to have done it 'properly'.

    Do you know if mach has an option to automatically reverse off a limit once hit or does it always have to be done manually. If the former is true then it would make sense to have separate inputs for + and - otherwise i might was well stick +, - and home all on one pin.

    I have already considered another parrallel port card but even with that I worry about running out of inputs and outputs. In addition to the limit switches I also need inputs and outputs for charge pump, VDF, spindle reverse, estop, x,y,z,a axis motor encoders, x,y,x,a step/dir, an MPG, switches to jog each axis, power drawbar, ATC, suds pump, auto lube system, lights, vacuum table and no doubt more things I havent thought of.
    Dom
    http://www.ukrobotics.com/projects


  • #7
    Registered
    Join Date
    Dec 2005
    Location
    USA
    Posts
    3319
    Downloads
    0
    Uploads
    0
    Keep in mind that you can AND some of the limits together - that's what they do on my NC lathe.

    My Bridgeport mill has softcoded limits in the program and only home switches on the X, Y and Z axis.

    Or you could always add another parallel port.... (creative thought, no???)


  • #8
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3325
    Downloads
    0
    Uploads
    0
    Most software I have run across either relies on the limits being wired in an "AND" or "OR" configuration.

    Here is one example of switch wiring:
    http://www.pminmo.com/wiki/index.php...limit_switches
    Last edited by pminmo; 08-01-2006 at 11:04 AM.
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com


  • #9
    Registered
    Join Date
    Dec 2003
    Location
    UK
    Posts
    218
    Downloads
    0
    Uploads
    0
    OK, So lets suppose that I need 4 pins for limt switches and one pin for an e-stop.

    How many pins will I need for each servo drive/encoder ?

    Is there some sort of wiring standard which suggests which pins should be used for which axis and which purpose or does it not matter at all .

    I would be interested to see what pins/wiring setups other people on here have used successfully for a 3 or 4 axis machine.
    Dom
    http://www.ukrobotics.com/projects


  • #10
    Banned
    Join Date
    Mar 2006
    Location
    Boston
    Posts
    1625
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by UKRobotics
    Thanks for the quick reply but are you sure that is the right link ? " RS-232 Communications and Pinout" - I've had a read through and I cant find anything relevent.
    I read this thread last night after work about 3am and your right it has nothing to do with you issue at first I thought you need info from controller to pc not pc to axis


  • #11
    Registered
    Join Date
    Aug 2004
    Location
    Greece
    Posts
    145
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by UKRobotics
    Do you know if mach has an option to automatically reverse off a limit once hit or does it always have to be done manually. If the former is true then it would make sense to have separate inputs for + and - otherwise i might was well stick +, - and home all on one pin.

    I have already considered another parrallel port card but even with that I worry about running out of inputs and outputs. In addition to the limit switches I also need inputs and outputs for charge pump, VDF, spindle reverse, estop, x,y,z,a axis motor encoders, x,y,x,a step/dir, an MPG, switches to jog each axis, power drawbar, ATC, suds pump, auto lube system, lights, vacuum table and no doubt more things I havent thought of.
    Haven't used Mach, sorry. TurboCNC just stops.

    Two // ports will give you 24 outputs and 10 input, I think they should cover it, and you can still add a third.

    You can use a keyboard controller to make a pendant instead of using up I/Os for jogging. Also, I don't think you'll ever need all these at the same time, you could reconfigure I/Os as needed.

    As for wiring the motors, it's best that each motor has it's step and dir on the same port, preferably the data port (pin 2 to 9).

    Nikolas


  • #12
    Registered
    Join Date
    Aug 2004
    Location
    Greece
    Posts
    145
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by UKRobotics
    How many pins will I need for each servo drive/encoder ?
    The servo encoder feedback is done inside the servo, so you don't need an input to the PC. You could add an additional encoder (e.g. linear scale) as you could in a stepper system (Mach has encoder input, TCNC not) but it's not neccessary.


  • Page 1 of 2 12 LastLast

    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.