Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:32:20 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  same switch for all 3 x axis requirements
Pages: 1 2 »   Go Down
Print
Author Topic: same switch for all 3 x axis requirements  (Read 672 times)
0 Members and 1 Guest are viewing this topic.
spaceman
Active Member

Offline Offline

Posts: 9



View Profile
« on: October 14, 2010, 08:10:35 PM »

Can I set 1 switch for X++ and X-- and X Home?  I've tried to wire it this way with all three switches using one cable on Port 1/Pin 10 but can't get Mach 3 to Ref Home. The Limit function of the switches works but not the home.
Logged

I let my mind wander once.... it never came back
whitehedr
Active Member

Offline Offline

Posts: 6


View Profile
« Reply #1 on: October 15, 2010, 12:58:54 AM »

You can use one switch if you want.  You just need to locate it so a trigger device at each end of the travel
will trip the switch at the right time.  You can use two or three switches each wired to an input if you want
 but that is wasteful of the inputs to Mach.

I set my system up so that one switch does X++, X- -, and X home.  Set   X++ to the same pin and port that you specify for
X - - and X home.  Then make sure that the system is setup so that the condition is the same for all three functions. 
That is all three must be looking for a high OR a low.

I would suggest that you set your system up so the contacts are normally "closed" and then open to say that
the limit is reached or that the axis is homed.

 You can use one switch to do both the limit function and the home function. 
When you tell Mach to Ref Home the system is looking for the switch to change state.   When it sees the state change
it will then reverse direction until the state change goes away.  You are then homed.   All other times the system
is looking at that switch as a limit switch and will act accordingly, stopping movement and requiring a reset.

RWW
Logged
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« Reply #2 on: October 15, 2010, 02:03:36 AM »

Further to what has been said you can use two Normally Closed switches per axis and have them wired in series, you can then wire the other  axis switches in series with them and that way you will only require one input to Mach for all axis.

Hood
Logged
spaceman
Active Member

Offline Offline

Posts: 9



View Profile
« Reply #3 on: October 15, 2010, 08:05:58 AM »

Thanks for the responses guys. Reading my OP, I realized I didn't quite word my setup correctly.  I have 2 switches for each axis.  One at ++ extreme and one at -- extreme.  Each axis is wired to a single pin.  X on 10, Y on 11, and Z on 12.  I just can't get the Home to work yet with this setup.  I did find a couple of articles about debounce and will play with that to see if it works and will report my findings.  Right now,  when I home, it only works if I disable ++/-- and have the switch active as Home.  If the ++/-- is enabled, the axis gets to home and then ( I'm guessing) the switch acts like a limit and triggers an Estop.

Thanks again!

Slainte Mhath Hood
« Last Edit: October 15, 2010, 08:08:22 AM by spaceman » Logged

I let my mind wander once.... it never came back
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« Reply #4 on: October 15, 2010, 08:08:48 AM »

Do the machine coords zero?
Hood
Logged
BR549
Active Member

Offline Offline

Posts: 2,555


View Profile
« Reply #5 on: October 15, 2010, 08:35:25 AM »

DO you  have the 2 switches wired in series ?  

Just a thought, (;-) TP
« Last Edit: October 15, 2010, 08:37:01 AM by BR549 » Logged
spaceman
Active Member

Offline Offline

Posts: 9



View Profile
« Reply #6 on: October 15, 2010, 09:33:46 AM »

The home function didn't work at all so the coords don't zero.  Mach 3 interprets the switch, even in the home function as a limit.

UPDATE: it now works in Ref Home because I set the debounce. I'm going to add capacitors to see if that quiets everything.


DBR549: the switches are in parallel
Logged

I let my mind wander once.... it never came back
Hood
Active Member

Offline Offline

Posts: 17,362


Carnoustie, Scotland


View Profile
« Reply #7 on: October 15, 2010, 09:38:35 AM »

If it was a bouncing switch, which it seems as debounce is working,  then it should have zeroed the machine coords. Reason is Mach would have thought homing was complete and reactivated the inputs as limits, so it would trigger the E-Stop.
Hood
Logged
whitehedr
Active Member

Offline Offline

Posts: 6


View Profile
« Reply #8 on: October 15, 2010, 09:47:39 AM »

You stated that the axis switches are in parallel.  I strongly recommend that
you change that configuration to a series configuration using the normally
closed contacts on the switches.  I think that will fix your problem. 

RWW
Logged
spaceman
Active Member

Offline Offline

Posts: 9



View Profile
« Reply #9 on: October 15, 2010, 05:02:08 PM »

You stated that the axis switches are in parallel.  I strongly recommend that
you change that configuration to a series configuration using the normally
closed contacts on the switches.  I think that will fix your problem. 

RWW


Are you concerned about the axis crashing if a switch fails or is there another reasone behind it?
Logged

I let my mind wander once.... it never came back
Pages: 1 2 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!