El5101 Config
- rock861261
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
06 Mar 2026 20:58 #343957
by rock861261
El5101 Config was created by rock861261
Looking for a lathe encoder hal for for threading and rpm. the files I find say to use the index pin however its not an option for the el5101
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 1267
- Thank you received: 442
07 Mar 2026 13:16 #343989
by Hakan
Replied by Hakan on topic El5101 Config
I had to make a component that handles the spindle.0.index-enable signal.
Here is how it is supposed to work from this component linuxcnc.org/docs/html/man/man9/encoder.9.html
The index-enable is I/O pin which isn't supported by EtherCAT, only I or O pins.
github.com/MetalMusings/MyOwnEtherCATDev...musings_encoder.comp
Three lines to connect it in the hal file
github.com/MetalMusings/MyOwnEtherCATDev.../linuxcnc/Turner.hal
For the EL5101 it looks like you need to work with the control and status words instead of the pins I used towards the device.
Hope it isn't too confusing.
Here is how it is supposed to work from this component linuxcnc.org/docs/html/man/man9/encoder.9.html
The index-enable is I/O pin which isn't supported by EtherCAT, only I or O pins.
github.com/MetalMusings/MyOwnEtherCATDev...musings_encoder.comp
Three lines to connect it in the hal file
github.com/MetalMusings/MyOwnEtherCATDev.../linuxcnc/Turner.hal
For the EL5101 it looks like you need to work with the control and status words instead of the pins I used towards the device.
Hope it isn't too confusing.
Please Log in or Create an account to join the conversation.
- rock861261
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
07 Mar 2026 18:36 #343998
by rock861261
Replied by rock861261 on topic El5101 Config
clear as mud lol. is there a more supported module thats plug and play
Please Log in or Create an account to join the conversation.
- rock861261
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
10 Mar 2026 02:37 #344075
by rock861261
Replied by rock861261 on topic El5101 Config
any other suggestions? I can get my enc-index-c-enable to trigger once but I have to turn it on in hal each time. it will also freeze unless i connect the latch. does linuxcnc only care about the Z or does it need a/b as well
Please Log in or Create an account to join the conversation.
- rock861261
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
15 Mar 2026 23:04 #344325
by rock861261
Replied by rock861261 on topic El5101 Config
is it possible to set it up as a output to a 5v input? I can trigger it that way?
Please Log in or Create an account to join the conversation.
- Marcos DC
-
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 41
16 Mar 2026 00:42 #344332
by Marcos DC
Replied by Marcos DC on topic El5101 Config
Did you check the Beckhoff EL5101 latch documentation?
EN_LATC / LATC_VAL look like the terminal’s native C/index latch mechanism to me, so the EL5101 does seem to provide native index support in hardware.
The real gap looks to be on the LinuxCNC side: mapping that cleanly into the expected index-enable semantics.
From what I have seen in the LinuxCNC forum threads, there are bits and pieces of reference material, but apparently no complete end-to-end example covering EL5101 + LinuxCNC spindle index semantics + threading/orient.
EN_LATC / LATC_VAL look like the terminal’s native C/index latch mechanism to me, so the EL5101 does seem to provide native index support in hardware.
The real gap looks to be on the LinuxCNC side: mapping that cleanly into the expected index-enable semantics.
From what I have seen in the LinuxCNC forum threads, there are bits and pieces of reference material, but apparently no complete end-to-end example covering EL5101 + LinuxCNC spindle index semantics + threading/orient.
Please Log in or Create an account to join the conversation.
- rock861261
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
16 Mar 2026 00:47 #344333
by rock861261
Replied by rock861261 on topic El5101 Config
I can get a Z activation but cant configure it to linuxcnc
I agree I see a bunch of pieces but no results. So what does everyone use for a spindle encoder for threading?
I agree I see a bunch of pieces but no results. So what does everyone use for a spindle encoder for threading?
Please Log in or Create an account to join the conversation.
- rock861261
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
16 Mar 2026 01:08 #344334
by rock861261
Replied by rock861261 on topic El5101 Config
Can I use the El5101 for the a/b and use an optical sensor for the z with an input to EL1008
Please Log in or Create an account to join the conversation.
- Marcos DC
-
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 41
16 Mar 2026 02:15 #344339
by Marcos DC
Replied by Marcos DC on topic El5101 Config
It may be less a case of “no results” and more a case of “the pieces exist, but there does not seem to be a complete worked example showing how to tie them together in LinuxCNC.”
If you already get the Z/C event, then it sounds like the remaining issue is LinuxCNC integration rather than the EL5101 itself.
Using the EL5101 for A/B and a separate optical sensor for Z into an EL1008 sounds like a practical workaround if you are looking for a known working threading setup to base yours on.
If you already get the Z/C event, then it sounds like the remaining issue is LinuxCNC integration rather than the EL5101 itself.
Using the EL5101 for A/B and a separate optical sensor for Z into an EL1008 sounds like a practical workaround if you are looking for a known working threading setup to base yours on.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 1267
- Thank you received: 442
17 Mar 2026 18:33 - 18 Mar 2026 08:43 #344424
by Hakan
Replied by Hakan on topic El5101 Config
Surprisingly I have an EL5101, totally forgot haha. And I had to fix it for synchronized moves today.
It is actually very well prepared, it is just that spindle-synchronized moves requires three signals,
spindle.0.at-speed, spindle.0.index-enable and spindle.0.revs linuxcnc.org/docs/html/gcode/g-code.html#gcode:g33
Here is how I connected up the EL5101 in the main hal file
For at-speed, I use data from the vfd and I don't show that here.
It is actually very well prepared, it is just that spindle-synchronized moves requires three signals,
spindle.0.at-speed, spindle.0.index-enable and spindle.0.revs linuxcnc.org/docs/html/gcode/g-code.html#gcode:g33
Here is how I connected up the EL5101 in the main hal file
setp lcec.0.3.enc-pos-scale [SPINDLE_9]ENCODER_SCALE
net spindle-revs lcec.0.3.enc-pos
net spindle-index-enable lcec.0.3.enc-index-c-enableFor at-speed, I use data from the vfd and I don't show that here.
Last edit: 18 Mar 2026 08:43 by Hakan. Reason: bbcode
Please Log in or Create an account to join the conversation.
Time to create page: 0.155 seconds