603,939 active members*
1,786 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2008
    Posts
    6

    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
    Join Date
    Dec 2003
    Posts
    24260
    What break out board?
    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
    Dec 2008
    Posts
    6
    My BOB is the C10 Parallel Port Interface Card

    CNC4PC

    Thanks

  4. #4
    Join Date
    Dec 2008
    Posts
    6
    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. #5
    Join Date
    Mar 2008
    Posts
    42
    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. #6
    Join Date
    Jan 2007
    Posts
    148
    also use 2 core screened cable , and ground the sheild only at the controller end to a single ground point

  7. #7
    Join Date
    Dec 2008
    Posts
    6
    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, 04:38 PM
  2. Dip Switch configuration
    By carlo_hoayek in forum Automation Technology Products
    Replies: 2
    Last Post: 10-26-2007, 08:27 AM
  3. limit switch and home switch setup
    By Runner4404spd in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 12-15-2005, 02:58 PM
  4. Limit Switch / Home Switch in Software
    By Sanghera in forum CNC Machine Related Electronics
    Replies: 6
    Last Post: 11-02-2004, 12:58 AM

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
  •