- Posts: 80
- Thank you received: 0
Homing switch setup in hal
3 months 3 weeks ago #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
Thanks,
Rick
Please Log in to join the conversation.
3 months 3 weeks ago #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
Pncconf setup would be something like:
Attachment not found
(invert it using NC switches)
You should also use halshow to verify home switch operation before attemting to home
Please Log in to join the conversation.
3 months 3 weeks ago #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!!
.
# ---# 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 to join the conversation.
3 months 3 weeks ago #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 to join the conversation.
3 months 3 weeks ago #347608
by RLA
Replied by RLA on topic Homing switch setup in hal
I forgot about that.....no
Please Log in to join the conversation.
3 months 3 weeks ago #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 to join the conversation.
3 months 3 weeks ago #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
Thanks again!,
Rick
Please Log in to join the conversation.
3 months 3 weeks ago #347617
by PCW
Replied by PCW on topic Homing switch setup in hal
If you use a recent pncconf it will use the INM pins rather than the GPIO pins
The INM pins have the advantage that they are debounced. Standard 7I96S
firmware has INM on all isolated I/O pins (the GPIO pins work but the built-in
debounce is often an advantage)
The INM pins have the advantage that they are debounced. Standard 7I96S
firmware has INM on all isolated I/O pins (the GPIO pins work but the built-in
debounce is often an advantage)
Please Log in to join the conversation.
3 months 3 weeks ago #347626
by RLA
Replied by RLA on topic Homing switch setup in hal
Got it..Thanks...Have not been using the pncconf ...I am using 9 axis and I was afraid it would overwrite ...
Thanks again!!
Thanks again!!
Please Log in to join the conversation.
3 months 3 weeks ago #347643
by PCW
Replied by PCW on topic Homing switch setup in hal
You can always use pncconf/MesaCT to create a sample configuration
to copy/paste from, if you don't want to possibly corrupt your hand edited file.
to copy/paste from, if you don't want to possibly corrupt your hand edited file.
Please Log in to join the conversation.
Time to create page: 4.755 seconds
