Limit and home switches using a Mesa 7i76e card on a non-Tormach machine (lathe)

More
24 May 2020 12:21 #168787 by DanieGouws
I'm using a Mesa 7i76e card running PathPilot on a non-Tormach lathe. Most of the functions are working except for the limit- and home switches.

I have 2 limit switches, one of which also acts as a home switch, for both the X and Z axis. All 4 switches are normally closed.

The X and Z switches are connected to input pins 05 and 06 on TB6. The .HAL file contains the code:


net both-home-x <= hm2_7i76e.0.7i76.0.0.input-05
net both-home-z <= hm2_7i76e.0.7i76.0.0.input-06

Then under Axis 0:
net both-limit-x => axis.0.home-sw-in
net both-limit-x => axis.0.neg-lim-sw-in
net both-limit-x => axis.0.pos-lim-sw-in

and under axis 2:
net both-limit-z => axis.2.home-sw-in
net both-limit-z => axis.2.neg-lim-sw-in
net both-limit-z => axis.2.pos-lim-sw-in

With PathPilot active and the limit switches enabled under Settings, activating the limit switches has not effect, when homing the axis move but the switch is not detected / registered.

Using HALMETER I can see both-home-x and both-home-z changing values when the switches are pressed but it has no effect on the system.

What I'm I doing wrong ? Thank you for all the help, Danie

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

More
24 May 2020 13:46 - 24 May 2020 13:53 #168792 by smgvbest
Which version of Pathpilot and Lathe Config are you using?
you have to be sure you reconnect things to what PP expects to be there
and remember in PP the X&Z limits are wired in series. so PP expects 1 input for both switches and it homes one axis at a time

look at tormach_lathe_mesa.hal
the section on limits shows what you are after.

these should be the two line that tie the limit switch into what PP expects

# limit switch
net limit-switch-in freq2pin.0.output-not-1
net limit-switch-in => debounce.1.0.in

you could tie your limits into
net limit-switch-in freq2pin.0.output-not-1
by replacing a or2 function feeding your two input in and taking the output and use it to tie the limit-switch-in to you switches
Last edit: 24 May 2020 13:53 by smgvbest.
The following user(s) said Thank You: DanieGouws

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

More
24 May 2020 18:37 #168818 by DanieGouws
I'm running PathPilot v2.0.0 - I'm unsure on where to verify the Lathe Config? May I kindly ask that you explain your last sentence in more detail? I still struggling to understand all the "links" in the HAL file.
Many thanks Danie

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

Moderators: cncbasher
Time to create page: 0.064 seconds
Powered by Kunena Forum