Spindle speed conversion into rpm does not work

More
06 Dec 2020 12:26 - 06 Dec 2020 12:28 #191215 by Tholimo
Hello,

I need a little help on a most probably simple mistake, which I do not find.

I tried to convert RPS into RPM of my Lathe spindle and don't understand why it doesn't work.

My system is Debian 10 and LinuxCNC 2.8.0 on a standard PC.

My HAL text is this (found somewhere here):

loadrt scale count=1
loadrt lowpass count=1
loadrt abs count=1

.
.
.

setp scale.0.gain 60
setp lowpass.0.gain 1.2

net spindle-velocity-rps encoder.0.velocity scale.0.in
net spindle-velocity-rpm scale.0.out abs.0.in
net spindle-velocity-rpm-abs abs.0.out lowpass.0.in
net spindle-velocity-rpm-abs-filtered lowpass.0.out


When I watch the PIN or SIGNAL values in the HAL configuration, I only see a bouncing value for scale.0.in and spindle-velocity-rps. All others, like scale.0.out, abs.0.in etc. are zero. Obviously the encoder signal was correctly transferred to scale.0.in (the value seems to be correct as RPS value), but after that the information is somehow "lost"?

I would very much appreciate a hint, where to search.

Thanks a lot and best regards
Thorsten
Last edit: 06 Dec 2020 12:28 by Tholimo.

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

More
06 Dec 2020 13:01 #191216 by Aciera
have you added the components to the servo-thread?

addf scale.0 servo-thread
addf lowpass.0 servo-thread
addf abs.0 servo-thread
The following user(s) said Thank You: Tholimo

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

More
06 Dec 2020 13:18 #191218 by Tholimo
No, I haven't. But now I have added it and now it works and my gui-meter shows the spindle speed nicely.

Thank you very much for your help and have a nice rest of the weekend!

Best regards
Thorsten

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

Time to create page: 0.065 seconds
Powered by Kunena Forum