Results 1 to 7 of 7

Thread: limit switch configuration

  1. #1
    Registered
    Join Date
    Dec 2008
    Location
    USA
    Posts
    6
    Downloads
    0
    Uploads
    0

    limit switch configuration

    I was wondering if someone could help me?

    I build a gantry CNC machine and added limit switches. I wired them NC in series to the input pin (12) one one side the other to +5V of my breakout board. Everything seems great. When I trip the limit switch AXIS displays the limit icon.

    The issue is that I'm getting "noise" on the line. HAL scope is showing little spikes. As a result AXIS shuts down with a "Joint 0 on limit switch error". I'm thinking it's because the wire is so long (over 10'). Not being an EE person does anybody know how I can filter these spikes out? I would really appreciate it.


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,943
    Downloads
    0
    Uploads
    0
    What break out board?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

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


  3. #3
    Registered
    Join Date
    Dec 2008
    Location
    USA
    Posts
    6
    Downloads
    0
    Uploads
    0
    My BOB is the C10 Parallel Port Interface Card

    CNC4PC

    Thanks


  4. #4
    Registered
    Join Date
    Dec 2008
    Location
    USA
    Posts
    6
    Downloads
    0
    Uploads
    0
    Could I filter out some of the noise by putting a capacitor across pin12 and 5v.

    This might be a bad idea. I grasping


  • #5
    Registered
    Join Date
    Mar 2008
    Location
    Uruguay
    Posts
    36
    Downloads
    0
    Uploads
    0
    Hi,
    From your description you should have a pull-down resistor at input 12. If there is no pull-down or it is weak (high res.) you will certainly get noise. I did not look at the BOB circuit to check for the pull-down.

    If the pull-down is there and strong (say 2Kohm) then you may try the condenser. It may help or not.

    In any case you may try twisting the switch cables (independently) and also the motors cables, this significantly reduces noise coupling from motor wires to switch wires. Remember to twist each set of cables independently.

    Good luck!


  • #6
    Registered
    Join Date
    Jan 2007
    Location
    UK
    Posts
    98
    Downloads
    0
    Uploads
    0
    also use 2 core screened cable , and ground the sheild only at the controller end to a single ground point


  • #7
    Registered
    Join Date
    Dec 2008
    Location
    USA
    Posts
    6
    Downloads
    0
    Uploads
    0
    Thanks for all the help. You guys helped me fix the issue. My breakout board does have a pull-down resister so that is why I was confused about getting so much noise on the line. I'm a bit embarrassed about what the real problem was. Somehow while I was hacking at the issue I burned out the power supply to the BOB. I thought everything was fine because the LED on the BOB was on. I noticed something was funny when the LED would turn off when the computer was off even though the power was still on. After spending $23 on a RadioShack 5volt AC-DC power cable. (They are WAY to proud of those at RS), everything was working fine.

    Now I hope that I'll be able to help someone else out next time.


  • Similar Threads

    1. Limit switch replacement with proximity switch?
      By Normsthename in forum Bending, Forging,Extrusion...
      Replies: 3
      Last Post: 07-11-2009, 11:38 AM
    2. Dip Switch configuration
      By carlo_hoayek in forum Automation Technology Products
      Replies: 2
      Last Post: 10-26-2007, 03:27 AM
    3. limit switch and home switch setup
      By Runner4404spd in forum General Electronics Discussion
      Replies: 0
      Last Post: 12-15-2005, 08:58 AM
    4. Limit Switch / Home Switch in Software
      By Sanghera in forum General Electronics Discussion
      Replies: 6
      Last Post: 11-01-2004, 06:58 PM

    Tags for this Thread

    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.