Lincurve module missing?

More
04 Apr 2016 02:32 - 04 Apr 2016 03:37 #72670 by brianbonedoc
I was trying to dial in the spindle speed of my lathe and when I added the Lincurve line to my hal I received an error that the module isn't installed. I looked in the folder where all the modules are, and sure enough there is no lincurve module installed in PathPilot.

Anyone (like Andy) know how to install it?

Thanks!

EDIT: OK so I just copied the lincurve.ko into the rtlib folder and it seems to work. Now just how to configure it.
The following doesn't really work - the spindle spins at a fixed speed regardless of the commanded rpm.



Here are the important Hal lines:

#added lincurve to correct for spindle actual/commanded differences
# commanded=x actual=y ??
loadrt lincurve personality=4
setp lincurve.0.x-val-00 0
setp lincurve.0.y-val-00 0
setp lincurve.0.x-val-01 200
setp lincurve.0.y-val-01 380
setp lincurve.0.x-val-02 500
setp lincurve.0.y-val-02 650
setp lincurve.0.x-val-03 2400
setp lincurve.0.y-val-03 2400


# added lincurve to correct for RPM differences between commanded and actual

net spindle-speed-raw motion.spindle-speed-out gearchange.0.speed-in
net spindle-speed gearchange.0.speed-out lincurve.0.in
net corrected-spindle-speed incurve.0.out hm2_5i25.0.stepgen.02.velocity-cmd
Last edit: 04 Apr 2016 03:37 by brianbonedoc.

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

More
04 Apr 2016 10:00 #72692 by cncbasher
Replied by cncbasher on topic Lincurve module missing?
as you have found some components are missing , but easily added ,
you may find depending on the spindle encoder your using , i.e single or ttl input , you may need to reverse or negate the spindle scale .

this usually shows when the spindle will run the leadin to the cut and then stops waiting for spindle speed to match .

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

More
04 Apr 2016 13:01 #72712 by andypugh
Replied by andypugh on topic Lincurve module missing?

EDIT: OK so I just copied the lincurve.ko into the rtlib folder and it seems to work.


A more robust way to install missing components is to find the source-code and then use
sudo halcompile --install lincurve.comp

linuxcnc.org/docs/2.7/html/hal/comp.html

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

More
04 Apr 2016 13:02 #72713 by andypugh
Replied by andypugh on topic Lincurve module missing?
I don't see any "addf" line, did you forget it?

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

More
04 Apr 2016 14:17 #72717 by brianbonedoc
Andy - yes I did forget the addf!!

Will try to figure it out when I get home later.

Thanks!!

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

More
04 Apr 2016 20:47 #72738 by brianbonedoc
OK, once I added the addf it all worked!! For the path pilot users that may not know how to install the lincurve module the proper way, the drag and drop worked fine as described above.

Thanks Andy!

Here is my current code re: the lincurve and spindle speed. I am within about 20rpm from 200-2400.

#added lincurve to correct for spindle actual/commanded differences
# Roughly: commanded RPM=Y actual RPM=X
loadrt lincurve personality=7
addf lincurve.0 servo-thread
setp lincurve.0.x-val-00 150
setp lincurve.0.y-val-00 0
setp lincurve.0.x-val-01 375
setp lincurve.0.y-val-01 200
setp lincurve.0.x-val-02 650
setp lincurve.0.y-val-02 500
setp lincurve.0.x-val-03 1200
setp lincurve.0.y-val-03 1000
setp lincurve.0.x-val-04 1750
setp lincurve.0.y-val-04 1500
setp lincurve.0.x-val-05 2300
setp lincurve.0.y-val-05 2000
setp lincurve.0.x-val-06 2400
setp lincurve.0.y-val-06 2200
#

net spindle-speed-raw motion.spindle-speed-out gearchange.0.speed-in
net spindle-speed gearchange.0.speed-out lincurve.0.in
net corrected-speed lincurve.0.out hm2_5i25.0.stepgen.02.velocity-cmd

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

Moderators: cncbasher
Time to create page: 0.075 seconds
Powered by Kunena Forum