7i73 Potentiometer Feedoverride doesnt change in realtime

More
7 years 5 months ago #133545 by 3D-Master
Hello,

i have Linuxcnc 2.7.14 on Debian 9 stretch with the Kernel: 4.9.0-9-rt-amd64 x86_64 (running on Intel NUC7PJYH)

I have a potentiometer connected to the 7i73 but the problem is, the reaction is quite laggy as you can see in the picture.

this is what is in my hal file:
Code:
loadrt conv_float_s32 names=conv_float_s32.feed,conv_float_s32.spindel addf conv_float_s32.feed servo-thread addf conv_float_s32.spindel servo-thread setp halui.spindle-override.scale 0.015 setp halui.spindle-override.direct-value true setp hm2_7i80.0.7i73.0.1.analogin1-scalemax 100 setp halui.feed-override.scale 0.015 setp halui.feed-override.direct-value true setp halui.rapid-override.scale 0.015 setp halui.rapid-override.direct-value true setp hm2_7i80.0.7i73.0.1.analogin0-scalemax 100 net analog2 hm2_7i80.0.7i73.0.1.analogin1 conv_float_s32.spindel.in net spindelanalog conv_float_s32.spindel.out halui.spindle-override.counts net analog1 hm2_7i80.0.7i73.0.1.analogin0 conv_float_s32.feed.in net feedanalog conv_float_s32.feed.out halui.feed-override.counts net feedanalog conv_float_s32.feed.out halui.rapid-override.counts

does someone have any idea?
thanks

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

More
7 years 5 months ago #133552 by PCW
Have you tried using motions feedrate override?

I'm not sure halui is real time, it looks like it is polling its inputs at a low rate.
not sure if this is affected by the CYCLE_TIME parameter in the DISPLAY section
of the ini file but fussing with that might be worth a try also

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

More
7 years 5 months ago #133560 by 3D-Master
i have searched for motion pins prior but have not found any.

CYCLE_TIME doesnt make it better, only worse if i raise the number.

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

More
7 years 5 months ago #133561 by PCW
Did you try reducing CYCLE_TIME (to say 0.050)?

man motion

For motions pins

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

More
7 years 5 months ago #133562 by 3D-Master
CYCLE_TIME was always at 0.01, then i changed it to 0.001 - didnt make a noticeable difference - and then to 0.1 which was way more laggy.

i have searched for motion pins prior but have not found any.

i ment any pins which do the same like "halui.feed-override.counts".

"motion.adaptiveāˆ’feed" may work but i want to use it in the future for automatic feed reduction if the spindle is about to stall.

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

More
7 years 5 months ago #133569 by PCW
Not sure why halui is so laggy here, Ideally motion should have a feed over-ride pin available so its real time, and not passed through NML

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

Time to create page: 0.405 seconds
Powered by Kunena Forum