Combine all Home and LImit switches

More
07 May 2011 15:59 #9633 by czerech
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

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

More
07 May 2011 19:03 #9634 by BigJohnT
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

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

More
07 May 2011 21:08 #9637 by czerech
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?

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

More
07 May 2011 22:07 - 07 May 2011 22:08 #9642 by BigJohnT
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.

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

More
08 May 2011 05:03 - 08 May 2011 05:15 #9647 by czerech
Yes, i'm useing sequence from to first diagram of Your link.

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.

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

More
08 May 2011 11:32 #9652 by czerech
Yes, i'm useing sequence from to first diagram of Your link.

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

regards,
Piotr

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

More
08 May 2011 11:56 #9653 by BigJohnT
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

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

More
08 May 2011 14:01 #9655 by czerech
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

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

More
08 May 2011 14:58 #9656 by BigJohnT
After the Z homes is it sitting on the switch?

John

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

More
12 May 2011 09:13 #9738 by czerech
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

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

Time to create page: 0.505 seconds
Powered by Kunena Forum