EL4031 setup for VFD

More
30 Jan 2025 13:39 #320143 by Martin.L
EL4031 setup for VFD was created by Martin.L
Hi guys,
I've been lucky enough to find a used EL4031 used at an affordable price. I have set it up on LCNC and I can enable it. I can't keep going one with the setup because I'm a bit lost on what I should do next. I have found this example:

Warning: Spoiler!


I'm not asking to do it for me, I want to learn so a practical example should be enough, I know the basics of C+ and did many arduino projects but I'm a bit lost on how to write code for LCNC.

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

More
30 Jan 2025 19:14 #320172 by Hakan
Replied by Hakan on topic EL4031 setup for VFD
Start here and see how far you come
linuxcnc.org/docs/html/examples/spindle.html

Your example is quote complex, forget that.

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

More
01 Feb 2025 10:39 #320312 by Martin.L
Replied by Martin.L on topic EL4031 setup for VFD
Hi Hakan, thanks for saving me again!

If can be useful to someone, for a 40K spindle ended up with :

loadrt scale count=1
addf scale.0 servo-thread
setp scale.0.gain 0.000025
net spindle-M3 spindle.0.on lcec.0.SPINDLE.aout-0-enable
net spindle-speed-scale spindle.0.speed-out scale.0.in
net spindle-speed-DAC scale.0.out lcec.0.SPINDLE.aout-0-value

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

Time to create page: 0.079 seconds
Powered by Kunena Forum