# Combine all Home and LImit switches

07 May 2011 15:59 #9633 by czerech
czerech created the topic: Combine all Home and LImit switches
Hello,

it's my first post on forum so i want to say hello to everyone

I was wondering about one thing. Can I combine all limit and homing switches and plug it to one pin?
I know that i can combine all Homing to one pin and all Limit to another pin, but i got only one pin left.

thanks in advance for help, and sorry for my poor english skill ;]

regards
Piotr
07 May 2011 19:03 #9634 by BigJohnT
BigJohnT replied the topic: Re:Combine all Home and LImit switches
Yes, you can combine all the limits and homing switches to one input. In your homing sequence you MUST home only one axis at a time.

John
07 May 2011 21:08 #9637 by czerech
czerech replied the topic: Re:Combine all Home and LImit switches
Thanks a lot John

but i have problem with homing. When i add in HAL limit option

"
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
"

when im trying to home then when first switch trip, homing proces stops and "joint 2 on limit switch error"

of course i set "HOME_IGNORE_LIMITS = YES" in both axis

any clue, what i'am doing wrong?
07 May 2011 22:07 - 07 May 2011 22:08 #9642 by BigJohnT
BigJohnT replied the topic: Re:Combine all Home and LImit switches
Are you moving axis 0 off of the home switch as your move to home?

www.linuxcnc.org/docview/html/config_ini...ing-sequence-diagram

John
Last Edit: 07 May 2011 22:08 by BigJohnT.
08 May 2011 05:03 - 08 May 2011 05:15 #9647 by czerech
czerech replied the topic: Re:Combine all Home and LImit switches

in a second i will paste AXIS section of my INI file and HAL file.

regards,
Piotr

"
net all-home <= parport.0.pin-10-in-not

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
"

"
[AXIS_0]
TYPE = LINEAR
HOME = 490.0
MAX_VELOCITY = 85.5008550086
MAX_ACCELERATION = 500.0
STEPGEN_MAXACCEL = 625.0
SCALE = 200.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -0.001
MAX_LIMIT = 500.0
HOME_OFFSET = 500.000000
HOME_SEARCH_VEL = 20
HOME_LATCH_VEL = -10
HOME_IGNORE_LIMITS = YES
HOME_IS_SHARED = 1
HOME_SEQUENCE = 0

[AXIS_2]
TYPE = LINEAR
HOME = 490.0
MAX_VELOCITY = 85.5008550086
MAX_ACCELERATION = 500.0
STEPGEN_MAXACCEL = 625.0
SCALE = 200.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -0.001
MAX_LIMIT = 500.0
HOME_OFFSET = 500.000000
HOME_SEARCH_VEL = 20
HOME_LATCH_VEL = -10
HOME_IGNORE_LIMITS = YES
HOME_IS_SHARED = 1
HOME_SEQUENCE = 1
"
Last Edit: 08 May 2011 05:15 by czerech.
08 May 2011 11:32 #9652 by czerech
czerech replied the topic: Re:Combine all Home and LImit switches

in a second i will paste AXIS section of my INI file and HAL file.

regards,
Piotr
08 May 2011 11:56 #9653 by BigJohnT
BigJohnT replied the topic: Re:Combine all Home and LImit switches
The second example in the link is a more normal scenario for homing where both search velocity and latch velocity are the same sign. The first example only works for a short pulse and the velocity is fast enough to carry it off the switch so the switch is not "on" when the latch part of the homing is performed.

John
08 May 2011 14:01 #9655 by czerech
czerech replied the topic: Re:Combine all Home and LImit switches
thank John for reply But its non working correct anyway. I think i have found the problem.

I make a test, turn on only limit switches on Z axis, when X axis (HOME_SEQUENCE=0) was based everything was ok. When X asis (HOME_SEQUENCE=1) trip switch, "joint 2 on limit switch error" appears.

I think "HOME_IGNORE_LIMITS = YES" only affects limit "pos" and "neg" of this axis, and I have all 4 limits (from both axis) connected to one pin.

How i can ignore all limit switches, not only those from currently based axis?

regards,
Piotr
08 May 2011 14:58 #9656 by BigJohnT
BigJohnT replied the topic: Re:Combine all Home and LImit switches
After the Z homes is it sitting on the switch?

John
12 May 2011 09:13 #9738 by czerech
czerech replied the topic: Re:Combine all Home and LImit switches
Yes, table hits switch and sit on in.

ehhhh, i make mistake in post before.

"I make a test, turn on only limit switches on X axis, when X axis (HOME_SEQUENCE=0) was based everything was ok. When Z axis (HOME_SEQUENCE=1) trip switch, "joint 2 on limit switch error" appears. "

regard,
Piotr
Time to create page: 0.074 seconds