Hello Guest it is December 26, 2024, 10:24:28 AM

Author Topic: Hooking up limits!  (Read 11857 times)

0 Members and 1 Guest are viewing this topic.

Hooking up limits!
« on: January 30, 2008, 09:32:06 PM »
Ive got my limits hooked up right now and they work great but they are hooked up through the ground and in the artsoft video he says the best way to have your limits wired a different way not using active low like I am. Can anyone tell me how to wire up my limits so that they are not active low. The limits im using are Normally open and normally closed with a ground. Any input would be greatly appreciated.

Thanks Mike

Offline Jeff_Birt

*
  •  1,107 1,107
    • Soigeneris
Re: Hooking up limits!
« Reply #1 on: January 31, 2008, 09:14:04 AM »
Quote
The limits im using are Normally open and normally closed with a ground.

How are your limits wired normally open AND normally closed?

It is best to have limit switches wired normally closed. This way when the switch is 'not pressed' you will have a complete electrical circuit. If you feed your switches with common (ground) then in this normal, 'not pressed' state, would provide a 'low' input to the computer. When the switch 'is pressed' the circuit will be open, there will be no electrical connection, and the input pin on your computer will go 'high' signifying the switch has been pressed. Wired this way your limit switch inputs on the computer will need to be set to active high.

The reason for wiring your switches normally closed is that it provides a basic level of supervision of the circuit. If a wire is cut or pulled loose the circuit will be open, just like it the limit was pressed, and your machine will stop before any harm is done.
Happy machining , Jeff Birt
 
Re: Hooking up limits!
« Reply #2 on: January 31, 2008, 04:46:11 PM »
Thanks Jeff,so really all I have to do then is change the connector from the normally open terminal and put it on the normally closed terminal and change the setting from active low to active high and then it should be right.And just leave the ground terminal alone,does this sound right?

Thanks again Mike
Re: Hooking up limits!
« Reply #3 on: February 01, 2008, 04:46:38 AM »
Without seeing your wiring, I couldn't confirm that exactly - but my method uses a fairly strong current (30mA or so) to hold a relay shut in the isolating board, shorting a pin to LPT ground. Hitting a limit forces a switch open and allows the relay to power down and snap open for an "active high" input. This has three benefits for me - as mentioned, basic wiring supervision; faults are detected and flagged. Second, earth leakage is allowed for; there's quite a bit on my rig being both large and old. Third - the relays give me around 1500V worth of isolation going into the port, so bangs and flashes won't breed further down the line ;)

Offline olf20

*
  •  325 325
Re: Hooking up limits!
« Reply #4 on: February 01, 2008, 07:00:25 AM »
Hi all, hope everyone is doing well.
Mike attached is a diagram of the switch layout. This shows the switches wired in the NC mode.
Hope this helps!
olf20
Mach3, Atlas Knee Mill, 4th Axis, VcarvePro, ESS, Super PID.
Been Heating with corn since 1998

Offline olf20

*
  •  325 325
Re: Hooking up limits!
« Reply #5 on: February 01, 2008, 07:02:28 AM »
Sorry, the file did not upload.
Here it is.
olf20
Mach3, Atlas Knee Mill, 4th Axis, VcarvePro, ESS, Super PID.
Been Heating with corn since 1998

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
Re: Hooking up limits!
« Reply #6 on: February 01, 2008, 07:51:57 AM »
Catch - yes you have the idea -

At the moment, all your limit switches are "off" - their contacts are open.(+5v to computer) Along comes the carriage - hits the limit and closes the switch.(0v to computer)

What you need to do is swap the terminals so that the limit switches are in fact "on" all the time (0v to computer) - along comes the carriage - hits the switch and opens it - 5v to computer. YOU NEEDN'T WORRY ABOUT THE 5 V - THE WIRING IS INTERNAL - THE LACK OF 0V READS AS 5V. Change the Active Low box to a cross and away you go.

It is fail safe, in that, if any wires come loose, the internal pull ups pull the signal to 5v and signal a limit is hit - you know it hasn't hit a limit - but it gives you a clue where to look.

The other advantage is, you can connect all the limit switches in series, and just use one wire as input to the computer - saving inputs (although this doesn't work if you are also using the limits as homing switches)
Not me driving the engine - I'm better looking.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Hooking up limits!
« Reply #7 on: February 01, 2008, 08:27:23 AM »

The other advantage is, you can connect all the limit switches in series, and just use one wire as input to the computer - saving inputs (although this doesn't work if you are also using the limits as homing switches)

Jim, it does work if you want to use the limits as home switches and on one pin. The reason is that when you do a Home move Mach just treats the switches as home switches, once homing is complete then they magically become limit switches again as far as Mach is concerned :)
 Hood

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
Re: Hooking up limits!
« Reply #8 on: February 01, 2008, 09:39:50 AM »
Yes - I'm sorry - and I assume since it does each axis seperately, it doesn't need to differentiate between the switches.

I had a bit of difficulty with mine, and needed to press reset after homing. They weren't in a good position anyway, so I've abandoned them for the time being. I particularly need something on the cross slide if I am going to use it for drilling, to get the drill(s) properly centered. I was thinking of some optical sensor with a slotted plate so I can stop at a choice of positions.
Not me driving the engine - I'm better looking.

Offline greg

*
  •  66 66
Re: Hooking up limits!
« Reply #9 on: February 01, 2008, 10:00:09 AM »
hood, do you mean i can just leave all my limits on 1 pin & not have my homing on 3 other switches & it will still home? if this is so then i have 3 extra pins! thanks greg