Axis DRO's
12 Dec 2014 09:56 #53946
by fgauder
Axis DRO's was created by fgauder
Is there any way for the DRO's on Axis to have more than 4 decimal places?
Please Log in or Create an account to join the conversation.
12 Dec 2014 16:26 #53948
by emcPT
Replied by emcPT on topic Axis DRO's
Yes, but as far as I know you need to change the source code.
Please Log in or Create an account to join the conversation.
12 Dec 2014 20:27 #53951
by BigJohnT
Replied by BigJohnT on topic Axis DRO's
You can change Axis with the .axisrc file.
linuxcnc.org/docs/html/gui/axis.html#_axisrc
I don't see off hand what to change...
JT
linuxcnc.org/docs/html/gui/axis.html#_axisrc
I don't see off hand what to change...
JT
Please Log in or Create an account to join the conversation.
12 Dec 2014 20:42 #53953
by fgauder
Replied by fgauder on topic Axis DRO's
Thanks for your replys. I quess the next question is, has anyone done it and would they share how? This is like a lot of other things, over my head.
Please Log in or Create an account to join the conversation.
12 Dec 2014 20:54 #53954
by andypugh
Yes. You need to make a simple change to axis.py then restart LinuxCNC. (It would be nice if this was an INI option).
It is section around line 1731 in the current axis version:
You need to change the %.4f to %.5f (or whatever)
Replied by andypugh on topic Axis DRO's
Is there any way for the DRO's on Axis to have more than 4 decimal places?
Yes. You need to make a simple change to axis.py then restart LinuxCNC. (It would be nice if this was an INI option).
It is section around line 1731 in the current axis version:
1731 if vars.metric.get():
1732 conv = 1
1733 units = _("mm")
1734 fmt = "%.3f"
1735 else:
1736 conv = 1/25.4
1737 units = _("in")
1738 fmt = "%.4f"
You need to change the %.4f to %.5f (or whatever)
Please Log in or Create an account to join the conversation.
12 Dec 2014 21:18 #53956
by fgauder
Replied by fgauder on topic Axis DRO's
Andy, thanks. I did a search for axis.py and it came up with 5 "fix_default_axis.py" files, all of them 7kb. So, where do I find it.
Please Log in or Create an account to join the conversation.
12 Dec 2014 21:29 #53958
by andypugh
try /usr/bin/
It might be called axis.g
"which axis" might work. (I am nowhere near a LinuxCNC machine)
Replied by andypugh on topic Axis DRO's
Andy, thanks. I did a search for axis.py and it came up with 5 "fix_default_axis.py" files, all of them 7kb. So, where do I find it.
try /usr/bin/
It might be called axis.g
"which axis" might work. (I am nowhere near a LinuxCNC machine)
Please Log in or Create an account to join the conversation.
12 Dec 2014 21:36 #53959
by fgauder
Replied by fgauder on topic Axis DRO's
Andy, thanks again. It's /usr/bin/axis.
Please Log in or Create an account to join the conversation.
12 Dec 2014 21:36 #53960
by BigJohnT
Replied by BigJohnT on topic Axis DRO's
In Ubuntu 10.04 is it /usr/bin/axis to edit it you will need to use sudo gedit /usr/bin/axis in a terminal window. It would be a good thing to make a copy of axis before modifying it.
I did test changing the fmt line and it did not work.
JT
I did test changing the fmt line and it did not work.
JT
Please Log in or Create an account to join the conversation.
12 Dec 2014 22:04 #53962
by fgauder
Replied by fgauder on topic Axis DRO's
I've also changed the fmt line to 5 to 6 to 3 and nothing works. Also the default for metric is 3 but the display is always 4 and apparently the accuracy also.
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds