Limit/home switches not working?

More
01 Apr 2020 23:16 #162402 by Catch22
So I ran the Pncconfig and my e stop works but my limit switches are not, I have one limit switch on x and y and two on z that are wired together so only one red and one black wire for each axis. I wired the red wires on to the 7i77 board on TB8 to 11,12,13 and all the black wires are tied together and go to TB1 the 24v field power terminal block to number 5 terminal. I have moved that wire around on that block and get a joint 0 on limit switch error. Any ideas on this?
Thanks Mike

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

More
01 Apr 2020 23:59 - 02 Apr 2020 00:00 #162412 by PCW
If you have normally closed (NC) limit switches, you have to invert the
corresponding 7I77 input either in pncconf by checking the "Inv"
box next to the pin or in the hal file by choosing the input pin that ends
in 'not"

This is because LinuxCNC expects limit and home signals to be active
high (high only when home or limit is reached), but a normally closed switch
read by a 7I77 is the opposite, it will be high until the home or limit is
reached, so must be inverted.
Last edit: 02 Apr 2020 00:00 by PCW.
The following user(s) said Thank You: Catch22

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

More
02 Apr 2020 00:39 #162417 by Catch22
Oh ok, thanks so much PCW.

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

More
02 Apr 2020 07:01 #162427 by bbsr_5a
woudt be good for readers if you tell the type and Printing lable of the switches you used
The following user(s) said Thank You: Catch22

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

More
02 Apr 2020 15:48 #162455 by Catch22
Unfortunately there is nothing on the limit switches, but they are the plunger type with one red wire and one black wire.

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

More
02 Apr 2020 15:50 #162456 by Catch22
Ok got the limits all working, when I hit a limit should it show Joint 0 on limit switch error? At the bottom right hand corner of linuxcnc.

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

More
02 Apr 2020 17:06 #162470 by bbsr_5a
yes if you connect them to Axis X limit in HAl
if you did tthem all together the Joint.0 is the first that outputs the error
even if it is on a other axis or on a othere end

You need to test all that are together connected if they all fire bevor you do a real Run

in Hal file they are splited by the name

net home-limit_all 7i77.0.7i77.0.0.input-09-not
and then output this signal to the joints you like
remember to Drive HOME away from the switch
Home_Offset is the real Number of the switch pos
The following user(s) said Thank You: Catch22

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

More
02 Apr 2020 18:40 #162477 by Catch22
Yes I tested all limits and all are working, I'm getting the joint 0, joint 1 and joint 2.
Thanks for your help.

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

Moderators: cmorley
Time to create page: 0.075 seconds
Powered by Kunena Forum