Limit switchs

More
29 Dec 2019 01:08 #153381 by jeffie-3
Limit switchs was created by jeffie-3
NO or NC? I'm using 5i25 and 7i77.

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 01:18 #153383 by Leon82
Replied by Leon82 on topic Limit switchs
I don't think it matters. You would invert if it was backwards.

Although mine are both and I made mine nc on the paraport. When I switched to the 7i96 the input light is on except when the switch is pushed. I had to invert my pins If it wasn't soldered I would probably switch it

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 15:48 #153443 by jeffie-3
Replied by jeffie-3 on topic Limit switchs
Inverting the pins?

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 15:57 #153445 by Leon82
Replied by Leon82 on topic Limit switchs
In the Hal file(or thru the wizard) you reverse the pin so instead of expecting the switch to be closed it expects it open or vise versa.
The following user(s) said Thank You: jeffie-3

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 16:09 #153447 by PCW
Replied by PCW on topic Limit switchs
In general NC is preferable for limit/home switches, because a broken wire will
cause a fault rather than possible uncontrolled motion past the physical limits
The following user(s) said Thank You: jeffie-3

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 17:49 #153465 by jeffie-3
Replied by jeffie-3 on topic Limit switchs
O.K. Here is the section in the hal file. I think. Still new and learning.


# external input signals


# --- BOTH-HOME-X ---
net both-home-x <= hm2_5i25.0.7i77.0.0.input-01

# --- BOTH-HOME-Y ---
net both-home-y <= hm2_5i25.0.7i77.0.0.input-02

# --- MIN-HOME-Z ---
net min-home-z <= hm2_5i25.0.7i77.0.0.input-03

# --- MAX-Z ---
net max-z <= hm2_5i25.0.7i77.0.0.input-04


So to reverse the pin. How?

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 17:50 #153466 by jeffie-3
Replied by jeffie-3 on topic Limit switchs
Thank you for the answer. A good friend did most of the wiring for me. Some of the limits switches are wired NO and some are wired NC. So I will switch them to all NC.

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 17:53 #153468 by Leon82
Replied by Leon82 on topic Limit switchs

O.K. Here is the section in the hal file. I think. Still new and learning.


# external input signals


# --- BOTH-HOME-X ---
net both-home-x <= hm2_5i25.0.7i77.0.0.input-01

# --- BOTH-HOME-Y ---
net both-home-y <= hm2_5i25.0.7i77.0.0.input-02

# --- MIN-HOME-Z ---
net min-home-z <= hm2_5i25.0.7i77.0.0.input-03

# --- MAX-Z ---
net max-z <= hm2_5i25.0.7i77.0.0.input-04


So to reverse the pin. How?


Add _not at the end of the line.

That worked for my 7i96. I would think it's the same for all the combos. It will yell at you if it's wrong

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 18:13 #153471 by jeffie-3
Replied by jeffie-3 on topic Limit switchs
# external input signals


# --- BOTH-HOME-X ---
net both-home-x <= hm2_5i25.0.7i77.0.0.input-01_not ?

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 18:21 #153472 by Leon82
Replied by Leon82 on topic Limit switchs

# external input signals


# --- BOTH-HOME-X ---
net both-home-x <= hm2_5i25.0.7i77.0.0.input-01_not ?


That's all I had to do.
The following user(s) said Thank You: jeffie-3

Please Log in or Create an account to join the conversation.

Moderators: piasdom
Time to create page: 0.347 seconds
Powered by Kunena Forum