Index homing Heidenhain ls 403/exe602
- H-S-W
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
22 May 2025 05:40 #328893
by H-S-W
Replied by H-S-W on topic Index homing Heidenhain ls 403/exe602
Do you have the LS 403 scale or the LS 403 C? Could explain why I have some problems since the "C" is the Distance-coded version of the scale...My Maho homes off the Heindenhain LS-403 scale index marks. Works the same as homing to a a separate homing switch.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18714
- Thank you received: 5164
22 May 2025 15:03 #328917
by PCW
Replied by PCW on topic Index homing Heidenhain ls 403/exe602
If the machine has no built in home switches, it really makes no sense to
have multiple index marks on the scale.
It it possible there is an electrical issue causing false index detection?
Is there documentation on the scale types?
have multiple index marks on the scale.
It it possible there is an electrical issue causing false index detection?
Is there documentation on the scale types?
Please Log in or Create an account to join the conversation.
- H-S-W
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
23 May 2025 08:01 #328963
by H-S-W
Replied by H-S-W on topic Index homing Heidenhain ls 403/exe602
stanki-used.com.ua/image/PASSPORT/CNC/LS-403_LS-403C.pdf
I have the "C" version of the scale.
From what i understand it should be possible to calculate the absolute position on the scale by traversing past two reference marks. See picture 4 on page 9.
I have the "C" version of the scale.
From what i understand it should be possible to calculate the absolute position on the scale by traversing past two reference marks. See picture 4 on page 9.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18714
- Thank you received: 5164
23 May 2025 12:45 #328974
by PCW
Replied by PCW on topic Index homing Heidenhain ls 403/exe602
OK, That's entertaining...
It should be possible to home by using a component that
measures the distance between index's and only arms
the actual index logic by simulating home switch detection
when the correct inter-index distance is measured.
It should be possible to home by using a component that
measures the distance between index's and only arms
the actual index logic by simulating home switch detection
when the correct inter-index distance is measured.
The following user(s) said Thank You: tommylight, besriworld, H-S-W
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
-
Less
More
- Posts: 292
- Thank you received: 80
23 May 2025 15:39 #328991
by besriworld
Replied by besriworld on topic Index homing Heidenhain ls 403/exe602
I believe there's no way to avoid using a home sensor. Because if the machine is left at the last index on the encoder line, when searching for the next index marker, it might hit the limit switch. But when you have a home sensor, it's much easier—you only need to check the first, closest index marker.
The following user(s) said Thank You: H-S-W
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18714
- Thank you received: 5164
23 May 2025 16:20 - 23 May 2025 16:58 #328992
by PCW
Replied by PCW on topic Index homing Heidenhain ls 403/exe602
It seems the machine originally homed this way, but yes, you need to
guarantee the you are 2 index marks away from the end stop before
starting homing.
guarantee the you are 2 index marks away from the end stop before
starting homing.
Last edit: 23 May 2025 16:58 by PCW.
The following user(s) said Thank You: H-S-W
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23362
- Thank you received: 4964
23 May 2025 20:13 #329010
by andypugh
Replied by andypugh on topic Index homing Heidenhain ls 403/exe602
As far as I know nobody has done this yet, but the change that allowed one to use a custom homing component was put in to support this type of scale.
How's your C coding?
www.linuxcnc.org/docs/devel/html/man/man9/homecomp.9.html
github.com/LinuxCNC/linuxcnc/blob/07cee8...nts/homecomp.comp#L4
However, I don't know if that is strictly necessary. I think that it _might_ be possible to craft a custom HAL component that outputs an encoder position and handles index_enable. This would take the encoder counts as input, and also manipulate the index_enable pin of the encoder counter. (I think it would be necessary to use the position-latching facility of the software or Mesa encoder. I _think_ you can set index-enable, which will zero the counts when the first index is seen, then re-enable index-enable and look at the counts-latched pin when index-enable resets on the second index. But I have not tried this.)
The component would then reset the index-enable that the homing system sees, and pass the correct position into the system. (Note that the "correct" position might be the inverse of the actual position, in some way. The position-after-index-enable is used by the system to calculate how far the current position is from the home position.
component inputs:
index-enable - to / from motion system
encoder position - from encoder counter
position-latched - from encoder counter
outputs:
index-enable - to manipulate the encoder counter
encoder-position - an offset version of the encoder position input
I do have a Heidenhain scale, but i have never done anything with it, and don't know if its a type with encoded index marks.
How's your C coding?
www.linuxcnc.org/docs/devel/html/man/man9/homecomp.9.html
github.com/LinuxCNC/linuxcnc/blob/07cee8...nts/homecomp.comp#L4
However, I don't know if that is strictly necessary. I think that it _might_ be possible to craft a custom HAL component that outputs an encoder position and handles index_enable. This would take the encoder counts as input, and also manipulate the index_enable pin of the encoder counter. (I think it would be necessary to use the position-latching facility of the software or Mesa encoder. I _think_ you can set index-enable, which will zero the counts when the first index is seen, then re-enable index-enable and look at the counts-latched pin when index-enable resets on the second index. But I have not tried this.)
The component would then reset the index-enable that the homing system sees, and pass the correct position into the system. (Note that the "correct" position might be the inverse of the actual position, in some way. The position-after-index-enable is used by the system to calculate how far the current position is from the home position.
component inputs:
index-enable - to / from motion system
encoder position - from encoder counter
position-latched - from encoder counter
outputs:
index-enable - to manipulate the encoder counter
encoder-position - an offset version of the encoder position input
I do have a Heidenhain scale, but i have never done anything with it, and don't know if its a type with encoded index marks.
Please Log in or Create an account to join the conversation.
- H-S-W
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
02 Jun 2025 12:55 - 02 Jun 2025 12:56 #329550
by H-S-W
Replied by H-S-W on topic Index homing Heidenhain ls 403/exe602
Unfortunately I do not have any coding experience...
like i mentioned in previous post a "C" at the end "LS 403 C", indicates you have a distance coded version of the scale. Do you also have an interpolator like the exe 602?
I doubt i'll manage to HAL such a custom component myself, but I have my mill moving and would of course be willing to do some testing if someone has some time over to give it a try!
/Hampus
like i mentioned in previous post a "C" at the end "LS 403 C", indicates you have a distance coded version of the scale. Do you also have an interpolator like the exe 602?
I doubt i'll manage to HAL such a custom component myself, but I have my mill moving and would of course be willing to do some testing if someone has some time over to give it a try!
/Hampus
Last edit: 02 Jun 2025 12:56 by H-S-W.
Please Log in or Create an account to join the conversation.
- RotarySMP
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1491
- Thank you received: 549
03 Jun 2025 18:54 #329626
by RotarySMP
Replied by RotarySMP on topic Index homing Heidenhain ls 403/exe602
Mine are old, so just basic LS403's with a single index. Sorry for that confusion.
Mark.
Mark.
The following user(s) said Thank You: H-S-W
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18714
- Thank you received: 5164
03 Jun 2025 19:07 #329628
by PCW
Replied by PCW on topic Index homing Heidenhain ls 403/exe602
I think I can see a way to do this, as Andy explained I will take a look at this when I get a bit of free time.
Its a bit tricky because the first index detections ( used for latching the position ) will zero the position
so the latched count + encoder position must be used for feedback until the final homing to index
is done.
What I was thinking is that the detection of the desired position difference enables passing the index detection
to LinuxCNCs motion component.
Its a bit tricky because the first index detections ( used for latching the position ) will zero the position
so the latched count + encoder position must be used for feedback until the final homing to index
is done.
What I was thinking is that the detection of the desired position difference enables passing the index detection
to LinuxCNCs motion component.
The following user(s) said Thank You: H-S-W
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds