- Posts: 7
- Thank you received: 0
Axis DRO's
11 years 10 months ago #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.
11 years 10 months ago #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.
11 years 10 months ago #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.
11 years 10 months ago #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.
11 years 10 months ago #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
fgauder wrote: 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:
Code:
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.
11 years 10 months ago #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.
Time to create page: 0.052 seconds