limit switch problem

More
25 Jul 2025 20:44 #332328 by RLA
limit switch problem was created by RLA
Hi ...after finally getting a micro switch wired up for limit switch,,,light shows on/off on mesa7ip6s board,..hal meter shows working... but when I run axis and hit switch held in my hand....no change....keeps moving. been at his all day...I usually like to figure things out myself but now I am weary...grateful for some help if possible.

Thanks,

Rick
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
25 Jul 2025 22:51 #332336 by tommylight
Replied by tommylight on topic limit switch problem
This is a stab in the dark as i do not have a 7i96S (did have 7i96) but inputs should be with something like "inmux" in the naming, sorry been a long time since i did a 7i95 that had something similar in the pin naming.

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

More
25 Jul 2025 23:40 #332339 by RLA
Replied by RLA on topic limit switch problem
So This from HAL May be wrong or incomplete?

Anything needed in ini?

Thanks for reply!!

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
26 Jul 2025 00:05 #332341 by tommylight

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

More
26 Jul 2025 03:03 #332351 by PCW
Replied by PCW on topic limit switch problem
Not sure if this is a pncconf version issue but current pncconf does this:

# external input signals

# --- HOME-X ---
net home-x     <=  [HMOT](CARD0).inm.00.input-00

# --- HOME-Y ---
net home-y     <=  [HMOT](CARD0).inm.00.input-01

# --- HOME-Z ---
net home-z     <=  [HMOT](CARD0).inm.00.input-02

From this:

 


In your hal file you have# --- MIN-X ---
net min-x <= hm2_7i96s.0.gpio.000.in_not

but net-min-x is not connected to anything so is not functional

the actual signals connected are these (also from your hal file)

# ---setup home / limit switch signals---

net x-home-sw => joint.0.home-sw-in
net x-neg-limit => joint.0.neg-lim-sw-in
net x-pos-limit => joint.0.pos-lim-sw-in

so if you changed

# --- MIN-X ---
net min-x <= hm2_7i96s.0.gpio.000.in_not

to
# --- MIN-X ---
net x-home-sw <= hm2_7i96s.0.gpio.000.in_not

you should get some function

(I am glossing over the difference between the INM inputs and GPIO inputs
as they can be used interchangeably on the 7I96/7I96s, that is GPIO 0..10
behave the same as INM 0..10)
Attachments:

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

More
26 Jul 2025 15:51 #332370 by RLA
Replied by RLA on topic limit switch problem
Hi..Thanks for reply...I made change...same result...I made the change under the external input signals...is that right?....if so... I am not familiar with homing variables...anything that could be set wrong to make switch ignored?

Thanks again for your help..

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

More
26 Jul 2025 16:58 #332375 by PCW
Replied by PCW on topic limit switch problem
the actual path  of x home (in your hal file) should be:

net x-home-sw <= hm2_7i96s.0.gpio.000.in_not

net x-home-sw => joint.0.home-sw-in

So trace from hm2_7i96s.0.gpio.000.in_not to  x-home-sw to joint.0.home-sw-in
in halshow



 

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

More
26 Jul 2025 17:54 #332376 by RLA
Replied by RLA on topic limit switch problem
ok...thanks...I will do on monday...in the meantime check out halshow


Thanks!!

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

Time to create page: 0.091 seconds
Powered by Kunena Forum