7i73 Potentiometer Feedoverride doesnt change in realtime

More
12 May 2019 10:54 #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:
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
Attachments:

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

More
12 May 2019 11:47 #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
12 May 2019 14:55 #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
12 May 2019 15:17 #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
12 May 2019 15:32 #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
12 May 2019 16:10 #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.

More
12 May 2019 16:25 #133573 by 3D-Master
Just to let you know, i have a fairly big pyvcp containing:

program time
program line
actual spindle speed bar
spindle load bar
commanded spindle speed bar
reached spindle speed led
combined feed bar
coolant led
touchprobe led
tool clamped led
tool air blast led

next page

3 buttons which call gcode
3 pictures with 3 buttons calling gcode
spinbox to set a parameter inside a subroutine

next page

picture following 2 buttons
picture following 6 buttons
picture following 6 buttons again
2 spinboxes for setting parameters

next page

2 pictures with 2 buttons
2 spinboxes
one button

next page

2 buttons
3 spinboxes

next page

following error u32 number for x,y,z,b and c
number for spindle temp
spindle temp comp in mm

that may affect the ui performance i think

hopefully someone can implement motion feedoverride pins, that would be really nice

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

Time to create page: 0.067 seconds
Powered by Kunena Forum