Homing using index

More
3 years 7 months ago - 3 years 7 months ago #266194 by Sourabh3
Replied by Sourabh3 on topic Homing using index
Greetings PCW, i tried what you asked and seems like there is no hardware issue, the linux detects the index perfectly well and responded as you suggested. I guess the real problem lies in the hal file. what line should i add in the hal file so that when the machine hits the index while homing, it gets zeroed.

EDIT:
i solved the problem, thanks to you guys. you guys are the best. i copied some lines from my last time and it works now. the problem was with the HAL only. thanks a lot guys.
Last edit: 3 years 7 months ago by Sourabh3.

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

More
3 years 7 months ago #266195 by andypugh
Replied by andypugh on topic Homing using index
Does your INI file have HOME_USE_INDEX set in each [JOINT_n] section?
The following user(s) said Thank You: Sourabh3

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

More
3 years 7 months ago #266197 by Sourabh3
Replied by Sourabh3 on topic Homing using index
it wasn't adding those lines because i wasn't choosing any home switch inputs in PNCCONF but then i used some random inputs so that it generates basic lines for inputs in both hal and INI files. then i switched the HAL input lines with the encoder inputs and voila , it works now. thanks a lot guys, a big help. although i busted a radial bearing while doing all this , i need to fix that first,. thanks a lot guys.
The following user(s) said Thank You: tommylight

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

More
2 years 5 months ago - 2 years 5 months ago #300345 by Ehsan_R
Replied by Ehsan_R on topic Homing using index
Hello
I just connected the z pulse signal from the encoder and I want to use it for homing.
(A, B are not connected) Open loop system
This is how I configured the ini and hal files.
Code:
net home-x => joint.n.home-sw-in net x-index-enable    joint.n.index-enable     encoder.n.index-enable
And
Code:
HOME_OFFSET = 0 HOME_SEARCH_VEL = 1 HOME_LATCH_VEL = -0.1 HOME_USE_INDEX = Yes HOME = 0 HOME_SEQUENCE = 0
But when the homing command is sent, the joint moves until it reaches the homing switch (for example, position x=20), then the axis value immediately becomes zero and moves in the opposite direction until it reaches the index pulse, and when the index pulse is received, the axis value is set to 20 and moves at maximum speed until it reaches zero.
What should I do if I want the joint to stop immediately upon receiving the index pulse and consider that point as the origin?
Is not connecting the encoder the reason for this last movement?
 
Last edit: 2 years 5 months ago by Ehsan_R.

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

More
2 years 5 months ago - 2 years 5 months ago #300359 by PCW
Replied by PCW on topic Homing using index
Have you tried:

HOME_INDEX_NO_ENCODER_RESET = YES

in your ini file?
Last edit: 2 years 5 months ago by PCW.

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

More
2 years 5 months ago #300369 by Ehsan_R
Replied by Ehsan_R on topic Homing using index
Yes, I tested this before, but it did not make a difference in the result

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

Moderators: cmorley
Time to create page: 0.135 seconds
Powered by Kunena Forum