Axis DRO's

More
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 to join the conversation.

More
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 to join the conversation.

More
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

Please Log in to join the conversation.

More
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 to join the conversation.

More
11 years 10 months ago #53954 by andypugh
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 to join the conversation.

More
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 to join the conversation.

More
11 years 10 months ago #53958 by andypugh
Replied by andypugh on topic Axis DRO's

fgauder wrote: 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 to join the conversation.

More
11 years 10 months ago #53959 by fgauder
Replied by fgauder on topic Axis DRO's
Andy, thanks again. It's /usr/bin/axis.

Please Log in to join the conversation.

More
11 years 10 months ago #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

Please Log in to join the conversation.

More
11 years 10 months ago #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 to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum