[RTAI 5.4.258 and LINCURVE conflict] Can I see an example of lincurve please.

More
29 Feb 2024 18:27 #294791 by Mecanix
Hello incredible experts. Need help again (moral/mental mostly). I've recently installed RTAI and getting never-seen-before RTAPI errors when the spindle is on. I've narrowed it down to the lincurve component, of which I depend on to linearize my rpm speeds. Works perfectly when lincurve is not loaded. 

In the other kind of help dept I'd eternally be grateful for, I would like to see a functional implementation of lincurve on RTAI and Linuxcnc 2.9.2 from someone who use it. How you did it? What's your HAL connections, etc.  (please x2)

For ref. Here's the faulty way to do it with RTAI (apparently). Although this works perfectly fine in RT preempt: 

custom.hal
##################################################
### Spindle Range
### Min: 25  RPM
### Max: 5500 RPM
loadrt lincurve personality=12
addf lincurve.0 servo-thread
setp lincurve.0.x-val-00 50
setp lincurve.0.y-val-00 55
setp lincurve.0.x-val-01 200
setp lincurve.0.y-val-01 200
setp lincurve.0.x-val-02 500
setp lincurve.0.y-val-02 480
... ...
setp lincurve.0.x-val-10 4500
setp lincurve.0.y-val-10 4208
setp lincurve.0.x-val-11 5000
setp lincurve.0.y-val-11 4674
setp lincurve.0.x-val-12 5500
setp lincurve.0.y-val-12 5160
net spindle-corr <= spindle.0.speed-out-abs lincurve.0.in
net spindle-cmd-rpm <= lincurve.0.out
##################################################
 

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

More
29 Feb 2024 18:33 #294792 by tommylight
Post the picture with the error from the other topic, might help figure out why it faults.

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

More
29 Feb 2024 18:37 #294793 by Mecanix

Post the picture with the error from the other topic, might help figure out why it faults.

Ah. Forgot that, thanks. 

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

More
29 Feb 2024 18:54 - 29 Feb 2024 18:56 #294794 by Mecanix
I've moved the loadrt and addf at the beginning of the HAL file.  Ran for 15min without crashing... does that make any sense at all or I'm going crazy to think there is a rule order here? A full 15min without anything exploding is a record for today, RTAPI normally complains after a minute or two max. Why is that? Self-fixed?!

Last edit: 29 Feb 2024 18:56 by Mecanix.

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

More
29 Feb 2024 19:13 - 29 Feb 2024 19:14 #294795 by Mecanix
Crazy stuff this HAL linuxcnc. Problem solved. Unbelievable. Have your comps and functions order right, or else, well... waste 5hrs trying to figure out why the world sucks so much lol

Putting my in Linuxcnc protest hunger strike, sleep deprivation and suicide ON HOLD. Until the next random-whatever, I wish you all well, incredible experts!

RTAI <--- Numero Uno. Who ever built that is a Legend. Thank you. 
 
Last edit: 29 Feb 2024 19:14 by Mecanix.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.279 seconds
Powered by Kunena Forum