Changing Metric DROs to 3 digit resolution
Posted: Wed Jun 02, 2021 7:33 pm
I'd like to change the DRO resolution on my Metric machine. My machine has 1 micron resolution, and it makes no sense and it confusing to display more digits than that.
I've found a file C:\KMotion434\PC VC Examples\KMotionCNC\KMotionCNCDlg.cpp that has a procedure names CKMotionCNCDlg::SetBigValues which has the following line...
s.Format(" X:%10.4f ",x);
... which looks to me like it only needs to be changed to read .3f instead of .4f
I changed that, but it didn't change anything, so I assume this has to be compiled to make a new executable.
It would be better if the procedure automatically changed to three decimal places when Metric was selected. I very much doubt if anyone would ever need 0.0001mm resolution when the Imperial 4 places only goes to 0.00254mm
I've found a file C:\KMotion434\PC VC Examples\KMotionCNC\KMotionCNCDlg.cpp that has a procedure names CKMotionCNCDlg::SetBigValues which has the following line...
s.Format(" X:%10.4f ",x);
... which looks to me like it only needs to be changed to read .3f instead of .4f
I changed that, but it didn't change anything, so I assume this has to be compiled to make a new executable.
It would be better if the procedure automatically changed to three decimal places when Metric was selected. I very much doubt if anyone would ever need 0.0001mm resolution when the Imperial 4 places only goes to 0.00254mm