Hi Stigoe,
You could configure a User Button to do this. See the CenterFindByHalfKMotionCNCDROX.c example.
Code:
#include "KMotionDef.h"
#define TMP 10 // which spare persist to use to transfer data
#include "KflopToKMotionCNCFunctions.c"
main()
{
double DROx, DROy, DROz, DROa, DROb, DROc;
GetDROs(&DROx, &DROy, &DROz, &DROa, &DROb, &DROc);
DoPCFloat(PC_COMM_SET_X, DROx/2);
}
But that sounds like a good feature to add to the Set DRO dialogs. What Version of KMotionCNC are you using? If you want we can post a patch to add this.