El5101 Config

More
7 months 3 weeks ago #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 to join the conversation.

More
7 months 3 weeks ago #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.

 

Please Log in to join the conversation.

More
7 months 3 weeks ago #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 to join the conversation.

More
7 months 3 weeks ago #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 to join the conversation.

More
7 months 2 weeks ago #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 to join the conversation.

More
7 months 2 weeks ago #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.

Please Log in to join the conversation.

More
7 months 2 weeks ago #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?

Please Log in to join the conversation.

More
7 months 2 weeks ago #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 to join the conversation.

More
7 months 2 weeks ago #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.

Please Log in to join the conversation.

More
7 months 1 week ago #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
Code:
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-enable

For at-speed, I use data from the vfd and I don't show that here.

Please Log in to join the conversation.

Time to create page: 0.130 seconds
Powered by Kunena Forum