Hal help for home to index with stepgen firmware update
01 Jun 2024 02:43 #302031
by PCW
Replied by PCW on topic Hal help for home to index with stepgen firmware update
Your example hal file shows the wrong index enable being used
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
01 Jun 2024 06:41 - 01 Jun 2024 09:44 #302042
by besriworld
Replied by besriworld on topic Hal help for home to index with stepgen firmware update
I just uploaded the wrong example here. Uploading the Pin file. You may see something wrong.
Without the included index, the machine is HOME close to the switch. When the index is on, the machine moves to the Home switch and then returns 26-45mm.
PS. Now I tested the motor index for repeatability and every time in halshou pin stepgen.00.index-enable clears at the same position. It is not a problem in the driver and reading the signal. Maybe something in the ini file is missing or wrong? When the index is turned on, the Axis returns at the time of starting the HOME procedure And the speed is high
Without the included index, the machine is HOME close to the switch. When the index is on, the machine moves to the Home switch and then returns 26-45mm.
PS. Now I tested the motor index for repeatability and every time in halshou pin stepgen.00.index-enable clears at the same position. It is not a problem in the driver and reading the signal. Maybe something in the ini file is missing or wrong? When the index is turned on, the Axis returns at the time of starting the HOME procedure And the speed is high
Attachments:
Last edit: 01 Jun 2024 09:44 by besriworld.
Please Log in or Create an account to join the conversation.
01 Jun 2024 13:43 - 01 Jun 2024 13:49 #302056
by PCW
Replied by PCW on topic Hal help for home to index with stepgen firmware update
Can you post your current hal/ini files?
Also you can verify index operation by
1. Watching the stepgen feedback position and stepgen index enable in halshow
2. "sets" the stepgen index enable signal
3. Generate an index event
The expected result is that on index event, the stepgen index enable will go false
and the stepgen feedback position should be zeroed.
Also you can verify index operation by
1. Watching the stepgen feedback position and stepgen index enable in halshow
2. "sets" the stepgen index enable signal
3. Generate an index event
The expected result is that on index event, the stepgen index enable will go false
and the stepgen feedback position should be zeroed.
Last edit: 01 Jun 2024 13:49 by PCW.
The following user(s) said Thank You: besriworld
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
01 Jun 2024 15:49 #302070
by besriworld
Replied by besriworld on topic Hal help for home to index with stepgen firmware update
Please Log in or Create an account to join the conversation.
01 Jun 2024 16:00 #302071
by PCW
Replied by PCW on topic Hal help for home to index with stepgen firmware update
Can you post your current hal/ini files?
The original one had encoder 0 on an analog axis
so makes no sense to use stepgen index enable 00
The original one had encoder 0 on an analog axis
so makes no sense to use stepgen index enable 00
The following user(s) said Thank You: besriworld
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
01 Jun 2024 19:47 #302097
by besriworld
Replied by besriworld on topic Hal help for home to index with stepgen firmware update
I think I found the error. When I have duplicated the X axis to make the Z axis. I forgot to change a few Z-specific names .
Here are the wrong lines in Z configuration :
net x-index-enable joint.1.index-enable <=> hm2_7i98.0.encoder.00.index-enable
Thanks again for your help!
Here are the wrong lines in Z configuration :
net x-index-enable joint.1.index-enable <=> hm2_7i98.0.encoder.00.index-enable
Thanks again for your help!
Attachments:
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
01 Jun 2024 20:50 - 01 Jun 2024 20:53 #302106
by besriworld
Replied by besriworld on topic Hal help for home to index with stepgen firmware update
I have a question . When the index pulse is read. Can I set a fast speed for HOME_SEARCH_VEL and low speed for HOME_LATCH_VEL The pulse from the encoder is read at this speed HOME_LATCH_VEL ?
Just the encoder is with lag
Just the encoder is with lag
Last edit: 01 Jun 2024 20:53 by besriworld.
Please Log in or Create an account to join the conversation.
01 Jun 2024 21:24 #302111
by PCW
Replied by PCW on topic Hal help for home to index with stepgen firmware update
AFAIK the initial search for the home switch is done at HOME_SEARCH_VELOCITY
and any further moves (until index is detected in your case) are done at HOME_LATCH_VEL
and then the final move is done at HOME_FINAL_VEL.
and any further moves (until index is detected in your case) are done at HOME_LATCH_VEL
and then the final move is done at HOME_FINAL_VEL.
The following user(s) said Thank You: besriworld
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
02 Jun 2024 12:35 #302147
by besriworld
Replied by besriworld on topic Hal help for home to index with stepgen firmware update
Yes, it works fine now. Stupid mistake. . . I did not expect the solution to the problem to be in the other axis.
Please Log in or Create an account to join the conversation.
Time to create page: 0.191 seconds