Homing switch setup in hal

More
08 Jul 2026 17:39 #347601 by RLA
Homing switch setup in hal was created by RLA
Hi...I have a mechanical home switch wired as seen from others but does not seem to be functioning...I am not sure I have hal right for x home switch...I have pin # 2  from mesa 7196s going to nc on switch...Input common to 24v ground on  power supply  and switch common to 24v power supply v+...I am not very good with electric so any help would be greatly appreciated..

Thanks,
Rick
Attachments:

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

More
08 Jul 2026 18:53 #347605 by PCW
Replied by PCW on topic Homing switch setup in hal
TB3 pin Pin 2 would be GPIO 01 (but actually you should be using INM pins, not GPIO)

Pncconf setup would be something like:

 


(invert it using NC switches)

You should also use halshow to verify home switch operation before attemting to home
Attachments:

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

More
08 Jul 2026 19:14 #347606 by RLA
Replied by RLA on topic Homing switch setup in hal
Hi...I used pin that is labeled iN2....and put in Hal as GPIO 002....when I tried to test in Halshow nothing happened....i checked wiring seems ok....I did not know if i am missing something in Hal...I only put  info  in the x axis section...
.
# ---# external input signals...under this part it is blank..


setup home / limit switch signals---
net x-home-sw <=  hm2_7i96s.0.gpio.002.in_not
net x-home-sw <= joint.0.home-sw-in

Thanks for reply!!

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

More
08 Jul 2026 19:51 #347607 by PCW
Replied by PCW on topic Homing switch setup in hal
Does the yellow LED near IN2 operate as expected?

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

More
08 Jul 2026 20:03 #347608 by RLA
Replied by RLA on topic Homing switch setup in hal
I forgot about that.....no

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

More
08 Jul 2026 20:31 #347609 by RLA
Replied by RLA on topic Homing switch setup in hal
if I go to V- instead of power supply ground IN2 lights...is that ok? or does it indicate a different problem?

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

More
08 Jul 2026 23:25 #347613 by RLA
Replied by RLA on topic Homing switch setup in hal
So all is working now....thanks again for your help...I am not sure what INM pins are...would I need another board?

Thanks again!,

Rick

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

Time to create page: 0.544 seconds
Powered by Kunena Forum