- Posts: 5
- Thank you received: 0
More Decimal Places in the Default Axis GUI
I would like to see a 5th decimal place in the AXIS gui. Is this a changeable setting? I looked around the LinuxCNC documentation and searched the forum, but I did not find any information about it.
Thanks
Please Log in to join the conversation.
fbx109 wrote: I would like to see a 5th decimal place in the AXIS gui. Is this a changeable setting?
Not exactly, but because the relevant code runs in an interpreted rather than a compiled language it is relatively easy to change. Just be aware that you will need to change it again when you upgrade.
gksudo gedit (this opens gedit in super-user mode)
then open /usr/share/pyshared/rs274/glcanon.py
Edit line 1068 and change
format = "% 6s:% 9.3f"
to
format = "% 6s:% 9.6f"
for 6 digits of decimals/
Then save the file.
I can not guarantee that the line number is correct, this was a paste from an old email.
Please Log in to join the conversation.
Thanks for all your great posts.
Please Log in to join the conversation.
cyrut2 wrote: Will this mod give you that precision if you call for it? I have added gear reducers to the ball screw to add precision by 100. I would like to be able to call for it in g code instead of having to remember of dividing what i call for by 100.
If you have put in 100:1 reducers then you simply need to change the scaling numbers in the INI file by a factor of 100 too.
Please Log in to join the conversation.
this is what i get
cyrut2@EMC:~$ gksudo gedit
glibtop: Non-standard uts for running kernel:
release 3.4-9-rtai-686-pae=3.4.0 gives version code 197632
(gksudo:2576): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
cyrut2@EMC:~$ open /usr/share/pyshared/rs274/glcanon.py
Couldnt get a file descriptor referring to the console
Could not get a file descriptor referring to the console
cyrut2@EMC:~$ ^C
cyrut2@EMC:~$
Please Log in to join the conversation.
(gksudo:3782): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
cyrut2@EMC:~$ gksudo edit
glibtop: Non-standard uts for running kernel:
release 3.4-9-rtai-686-pae=3.4.0 gives version code 197632
cyrut2@EMC:~$ /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
Please Log in to join the conversation.
Please Log in to join the conversation.
cyrut2@EMC:~$ su i
No passwd entry for user 'i'
cyrut2@EMC:~$ su cyrut2
Password:
cyrut2@EMC:~$ sudo su
[sudo] password for cyrut2:
root@EMC:/home/cyrut2# gksudo gedit /usr/share/pyshared/rs274/glcanon.py
root@EMC:/home/cyrut2# gksudo gedit /usr/share/pyshared/rs274/glcanon.py
root@EMC:/home/cyrut2# gksudo gedit
root@EMC:/home/cyrut2# gksudo
root@EMC:/home/cyrut2# gedit /usr/share/pyshared/rs274/glcanon.py
bash: gedit: command not found
root@EMC:/home/cyrut2# /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
Please Log in to join the conversation.
root@EMC:/home/cyrut2# sudo apt-get install gksu
Reading package lists... Done
Building dependency tree
Reading state information... Done
gksu is already the newest version.
gksu set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 64 not upgraded.
root@EMC:/home/cyrut2# gksudo gedit /usr/shared/rs274/glcanon.py
root@EMC:/home/cyrut2# /usr/share/pyshared/rs274/glcanon.py
bash: /usr/share/pyshared/rs274/glcanon.py: Permission denied
Please Log in to join the conversation.
Nano is a text mode editor. It will take some getting used to, but at least the commands to use are at the bottom.
Please Log in to join the conversation.
