Combine all Home and LImit switches
12 May 2011 11:22 #9740
by BigJohnT
Replied by BigJohnT on topic Re:Combine all Home and LImit switches
You will have to as part of your homing defining a home location that moves each axis off the switch before homing the next axis.
John
John
Please Log in or Create an account to join the conversation.
12 May 2011 12:13 #9744
by czerech
Replied by czerech on topic Re:Combine all Home and LImit switches
it it set like You said. After homing proces, switch is relased.
its look like this:
1. i only enable limit switches on one axis in HAL file (AXIS 0)
2. i got 4 switches connected together in row to one LPT pin
3. Axis 0 is homing perfect (here i have enabled limit switches)
4. When Axis 1 trigger limit switch program is stoped.
if I disable limit switch function in Axis 0, both Axis are homing good.
so i suspect i must include information in INI file, that i have all limit switches and homing switches of both axis connected in row to one LPT pin...
but i dont know how to do this ;/
i have: "HOME_IGNORE_LIMITS = YES" in both axis
regards,
Piotr
its look like this:
1. i only enable limit switches on one axis in HAL file (AXIS 0)
2. i got 4 switches connected together in row to one LPT pin
3. Axis 0 is homing perfect (here i have enabled limit switches)
4. When Axis 1 trigger limit switch program is stoped.
if I disable limit switch function in Axis 0, both Axis are homing good.
so i suspect i must include information in INI file, that i have all limit switches and homing switches of both axis connected in row to one LPT pin...
but i dont know how to do this ;/
i have: "HOME_IGNORE_LIMITS = YES" in both axis
regards,
Piotr
Please Log in or Create an account to join the conversation.
12 May 2011 12:47 #9748
by BigJohnT
Replied by BigJohnT on topic Re:Combine all Home and LImit switches
Monitor the input pin in Show Hal Configuration watch window while you home to see if it changes as you expect from on to off.
Also, HOME_IS_SHARED = 1 should be in each axis section.
www.linuxcnc.org/docview/html/config_ini_config.html#sub:[AXIS]-section
John
Also, HOME_IS_SHARED = 1 should be in each axis section.
www.linuxcnc.org/docview/html/config_ini_config.html#sub:[AXIS]-section
John
Please Log in or Create an account to join the conversation.
12 May 2011 12:55 #9749
by czerech
Replied by czerech on topic Re:Combine all Home and LImit switches
thanks John a lot for help ![:) :)](/media/kunena/emoticons/smile.png)
i got in both axis HOME_IS_SHARED = 1
i will check when i go home what signal i have i hal when limit shitch trips.
regards,
Piotr
![:) :)](/media/kunena/emoticons/smile.png)
i got in both axis HOME_IS_SHARED = 1
i will check when i go home what signal i have i hal when limit shitch trips.
regards,
Piotr
Please Log in or Create an account to join the conversation.
12 May 2011 17:51 #9765
by czerech
Replied by czerech on topic Re:Combine all Home and LImit switches
i checked Hal Configuration, everything is changing in the way i expect it.
when base proces is running, when the first limit switch trips, all 4 pins change status:
net all-home => axis.0.neg-lim-sw-in
net all-home => axis.0.pos-lim-sw-in
net all-home => axis.2.neg-lim-sw-in
net all-home => axis.2.pos-lim-sw-in
maybe i should use some other function to provide limit switch after homing?
when base proces is running, when the first limit switch trips, all 4 pins change status:
net all-home => axis.0.neg-lim-sw-in
net all-home => axis.0.pos-lim-sw-in
net all-home => axis.2.neg-lim-sw-in
net all-home => axis.2.pos-lim-sw-in
maybe i should use some other function to provide limit switch after homing?
![:( :(](/media/kunena/emoticons/sad.png)
Please Log in or Create an account to join the conversation.
12 May 2011 18:22 #9766
by BigJohnT
Replied by BigJohnT on topic Re:Combine all Home and LImit switches
And I assume you also have in your ini
net all-home axis.0.home-sw-in
net all-home axis.2.home-sw-in
Which should work...
John
net all-home axis.0.home-sw-in
net all-home axis.2.home-sw-in
Which should work...
John
Please Log in or Create an account to join the conversation.
12 May 2011 18:27 #9767
by czerech
Replied by czerech on topic Re:Combine all Home and LImit switches
"
net all-home => axis.0.home-sw-in
net all-home => axis.0.neg-lim-sw-in
net all-home => axis.0.pos-lim-sw-in
net all-home => axis.2.home-sw-in
net all-home => axis.2.neg-lim-sw-in
net all-home => axis.2.pos-lim-sw-in
"
yes i have those 2 lines
net all-home => axis.0.home-sw-in
net all-home => axis.0.neg-lim-sw-in
net all-home => axis.0.pos-lim-sw-in
net all-home => axis.2.home-sw-in
net all-home => axis.2.neg-lim-sw-in
net all-home => axis.2.pos-lim-sw-in
"
yes i have those 2 lines
Please Log in or Create an account to join the conversation.
12 May 2011 18:28 #9768
by BigJohnT
Replied by BigJohnT on topic Re:Combine all Home and LImit switches
If you have a spare input try putting all the X axis on one pin and all the Z on the other... then you have something like:
net home-x <= paraport.0.pin-10-in
net home-x => axis.0.neg-lim-sw-in
net home-x => axis.0.pos-lim-sw-in
net home-x => axis.0.home-sw-in
John
net home-x <= paraport.0.pin-10-in
net home-x => axis.0.neg-lim-sw-in
net home-x => axis.0.pos-lim-sw-in
net home-x => axis.0.home-sw-in
John
Please Log in or Create an account to join the conversation.
12 May 2011 18:31 #9769
by czerech
Replied by czerech on topic Re:Combine all Home and LImit switches
i think i must do it that way...
i was just trying to use only one pin instead of two.
i was just trying to use only one pin instead of two.
Please Log in or Create an account to join the conversation.
12 May 2011 19:15 #9770
by czerech
Replied by czerech on topic Re:Combine all Home and LImit switches
when i used 2 pin, everything works fine ![:) :)](/media/kunena/emoticons/smile.png)
thanks John for helping, but if You will figure how to use only one pin, plz give me a sign![;) ;)](/media/kunena/emoticons/wink.png)
regards,
Piotr
![:) :)](/media/kunena/emoticons/smile.png)
thanks John for helping, but if You will figure how to use only one pin, plz give me a sign
![;) ;)](/media/kunena/emoticons/wink.png)
regards,
Piotr
Please Log in or Create an account to join the conversation.
Time to create page: 0.090 seconds