Hello Guest it is March 28, 2024, 05:45:26 PM

Author Topic: Limit switches don't work when all are plugged in  (Read 9304 times)

0 Members and 1 Guest are viewing this topic.

Limit switches don't work when all are plugged in
« on: June 10, 2006, 06:16:59 PM »
I have a Camtronics servo system and on the back it has the following:
Limit: pin 15
home: x  pin 10/ y  pin 12/ z  pin 13


I have a N/O switch on each axis
The switches are all wired together so regardles of which switch is triggered they all light up.
Now the problem is this. Mach3 performs perfectly if only 1 switch is connected. I made a parralell breakout board so I can plug and unplug the switches.
When I plug in another switch, the software refuses to come off estop when limit is triggered, even with auto over ride activated. The funny thing is with just one switch connected. I can use that one switch as both a limit and home and auto override works perfectly.

Does shareing the same pin for more than one limit switch cause this problem?
Re: Limit switches don't work when all are plugged in
« Reply #1 on: June 10, 2006, 11:08:24 PM »
I just got through with sussing out similar problems with my limit switches.  My Home switches always worked ok.  Your description of your problem is a little unclear to me so let's try to go through this step by step.

Are your limit switches wired in series or parralell?

#1  Although you can use Normally open switches for your Home switches, I think it is better to use Normally Closed switches.  The N.C. method is safer because if you have a problem with a switch you will see it immediately whereas with a N.O. switch you won't.

#2  It seems like the Pin config for your Home switches is fine.  Also No, it is not a problem to share all 3 limit switches on the same pin as you describe if you use N.C. switches

#3.  I can not imagine how you can wire your limit switches in series using N.O. switches.  Wiring something in series means that every component in the series must pass the signal along or else the circuit will be broken and, when broken, will trigger an action (in this case a limit request to Mach 3 which in turn will cause a reset condition).  If your Limit switches are wired in parralell, then I think you need to check the polarity on each switch and make sure that everything is copasetic.

HTH.

Regards,

Sid


Re: Limit switches don't work when all are plugged in
« Reply #2 on: June 10, 2006, 11:32:13 PM »
So is this the way it should be set up?

« Last Edit: June 10, 2006, 11:38:24 PM by replicaprops »
Re: Limit switches don't work when all are plugged in
« Reply #3 on: June 10, 2006, 11:44:14 PM »
Wow that is kind of a trippy drawing.  The reason I say that is because it only shows 3 switches being used for BOTH the limit AND the Home.  This, of course is not really possible since the the home and limit switches are normally on oposite sides of the table.

So, do you have 3 switches or 6.

To answer you question, that method of wiring the LIMIT switches is called parallel and yes that is how you would wire it up w/ N/O switches.  Is that how you have it wired?

Sid

Hood

*
Re: Limit switches don't work when all are plugged in
« Reply #4 on: June 11, 2006, 02:58:16 AM »
Not sure if I fully understand your drawing, but if you only have three switches then what I would think best is to do away with the wires to pin 15 from each switch.  Then in the setup of mach just configure X++, X-- and X home to pin 10,  Y++, Y-- and Y home to pin 12, Z++, Z-- and Z home to pin 13.
Hood
Re: Limit switches don't work when all are plugged in
« Reply #5 on: June 11, 2006, 10:44:11 AM »
What I did was I used magnetic switches. This way I only need one switch for each axis. The switch stays centered, while the magnets are positioned on each und of the tablle. So when the table moves to the end, the magnet is brought near the switch and trips it. I can switch to NC switches, and wire them in serial.

Hood

*
Re: Limit switches don't work when all are plugged in
« Reply #6 on: June 11, 2006, 10:47:40 AM »
I have optical switches and basically they are wired as per your drawing except I do not have them set up as a seperate home. ie there are just three pins used for all axis and homes. Suggest you try and remove the wires from pin 15 and all should work ok.
Hood
Re: Limit switches don't work when all are plugged in
« Reply #7 on: June 11, 2006, 11:41:35 AM »
Hood,  I'm confused- if he removes pin 15 how will he trigger any limit stop?

IMHO, I think serial wiring w/ N.C. switches on the limit loop is the way to go. 

Your idea of using a magnetic switch to save is clever but, I'm not really sure what it is getting you.  You still have to mount and wire something at both ends of the table and ALSO mount a magnet to your trolley so, in my mind it seems like you have MORE to do with the magnetic system.  I could be missing out on something here as I have never used these type of switches so, forgive me if I am not seeing something.

It sounds to me like your Home switches were working OK when we started- is that correct?  If so, I would just leave that alone and be happy that you are getting your homing refs to work. 

On the Limits loop... If you can change the receiver part of your magnetic switch to be N.C. I would do that and wire in series (wire from pin 15 to input on X limit switch-> output of X limit switch to input on Y limit switch -> output of Y L.S. to input on Z L.S. output of Z L.S. back to common).  Wiring this way means that if any of those switches are triggered they will break that circuit and cause a limit stop.

After you get it wired, go to the Diags page in M3 and you can check if your switches are working by looking at the LEDS on the screen.  They should light up when you trip your switches.

Good Luck!

Regards,
Sid

Hood

*
Re: Limit switches don't work when all are plugged in
« Reply #8 on: June 11, 2006, 11:48:47 AM »
Hood,  I'm confused- if he removes pin 15 how will he trigger any limit stop?
In the ports and pins setup,  if the home, X++ and X-- are set to pin 10, Y Home Y++ Y-- to pin 12 and finally Z Home Z++ and Z-- to pin 13
 When you do a home Mach will move to the limit switch but will consider it as a Home switch and will not trigger it as a limit. Any other time Mach will see it as a limit.
Hood

Hood

*
Re: Limit switches don't work when all are plugged in
« Reply #9 on: June 11, 2006, 11:55:00 AM »
Heres a screenshot of my setup
Hood