El5101 Config

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 or Create an account 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 or Create an account 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 or Create an account to join the conversation.

More
7 months 2 weeks ago - 7 months 2 weeks 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.
Last edit: 7 months 2 weeks ago by Hakan. Reason: bbcode

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

More
7 months 1 week ago #344695 by rock861261
Replied by rock861261 on topic El5101 Config
loadusr -W lcec_conf ethercat-conf.xml
loadrt lcec

loadrt ddt names=spindle-v
loadrt mult2 names=rpm-calc
loadrt near names=spindle-at-speed
loadrt lowpass names=spindle-filter

addf rpm-calc servo-thread
addf spindle-at-speed servo-thread
addf spindle-v servo-thread
addf spindle-filter servo-thread

addf lcec.read-all servo-thread
addf lcec.write-all servo-thread

setp lcec.0.El5101.enc-pos-scale 2000

net spindle-pos-fb lcec.0.El5101.enc-pos => spindle-v.in => spindle.0.revs

setp rpm-calc.in1 60
net spindle-rps spindle-v.out => rpm-calc.in0
setp spindle-filter.gain 0.1

net spindle-rpm-raw rpm-calc.out => spindle-filter.in
net spindle-rpm-fb spindle-filter.out => spindle.0.speed-in

setp spindle-at-speed.scale 1.1
setp spindle-at-speed.difference 10

net spindle-vel-cmd spindle.0.speed-out => spindle-at-speed.in1
net spindle-rpm-fb => spindle-at-speed.in2

net spindle-at-speed-sig spindle-at-speed.out => spindle.0.at-speed

net spindle-index-enable lcec.0.El5101.enc-index-c-enable => spindle.0.index-enable

net spindle-rpm-fb => pyvcp.spindle-speed

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

More
7 months 1 week ago #344696 by rock861261
Replied by rock861261 on topic El5101 Config
Seems to all be working correctly open to any additional inputs
The following user(s) said Thank You: rodw

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

Time to create page: 0.259 seconds
Powered by Kunena Forum