[https://youtu.be/w-bKvqXCd0Q https://youtu.be/w-bKvqXCd0Q]
Normally the feed rate indication in KMotionCNC shows ''average'' feed rate over 100ms, assuming straight line motion. Here we use a C program to calculate a more instantaneous rate and display it on the KMotionCNC screen using the KMotionCNC screen editor. Here the C program samples two positions and times, computes the delta position and the delta time, formats it to a string and displays it onto DRO label 162 in KMotionCNC and it performs this action roughly every one ½ seconds. Here is the screen script for the screen shown on the left, we’ve added a type DRO label in the screen editor, edited colors and it is connected to persist variable 162. This job consist of a rapid heal explore (?) helix bore at a rate of about 6 revolutions per second. It shows the instant feed rate being more correct.
There is a newer example which also displays the feed rate as a vertical bar graph. See:
ShowInstantFeedRate3AxisBar.scr and related C Program ShowInstantVelocityDROBar.c
=====Split/Full/Hidden GViewer Display on Main Dialog Face=====