add + sign with axes XYZ and runtime in program

More
10 years 1 month ago #80055 by boy777
Hi Everybody,
First of all sorry ,if I am wrong.
I am new to LinuxCNC , don't know much about it.
But the issue I faced is how to add + sign with axes while they are not in negative position
Also how to add run time to the auto mode, so that every time I get the time consumed by job.
Third one , how to save values of XYZ to a file so that if i stopped the program , i can continue from that point, something like that helps much. I haven't found anything regarding these issues . Kindly help me.
Thanks in advance
Sorry again
Have good time!

Please Log in to join the conversation.

More
10 years 1 month ago #80070 by andypugh
I am working from an iPhone as I am away from home. This somewhat limits my support resources.
(Also why I didn't see your post to approve it)

The solution to the + sign will be the same as the answer to questions about number of digits.
You need to change the format string in axis.py
I have suggested that a better way might be useful to the developers mailing list.

Please Log in to join the conversation.

More
10 years 1 month ago #80079 by tommylight
Also the time for completing a job is already there under File>Properties>Run time, there you have the total FEED time, so it does not count for rapid movements.
Saving the last position is also possible,
forum.linuxcnc.org/forum/38-general-linu...n-between-runs#75946

Please Log in to join the conversation.

More
10 years 1 month ago #80081 by Todd Zuercher
The "Run Time" calculated under File>Properties> does use positioning times, but is woefully inaccurate because it estimates the run time without accounting for accelerations. An extreme example might be a complex 3d surfacing file where the actual feed rate may only ever reach 75% of the programed feed rate for most of the run.

There is a way to display the actual runtime of a file after each run, by using the time hal component and adding a virtual control panel (pyvcp or gladevcp)
linuxcnc.org/docs/html/man/man9/time.9.html

Please Log in to join the conversation.

More
10 years 1 month ago #80082 by tommylight
I use it all the time, i just add 20 to 50% more time, depending on the complexity. For more complicated stuff, i do not bother, i leave it and go have a coffee ! :laugh:

Please Log in to join the conversation.

More
10 years 1 month ago #80115 by boy777

tommylight wrote: Also the time for completing a job is already there under File>Properties>Run time, there you have the total FEED time, so it does not count for rapid movements.
Saving the last position is also possible,
forum.linuxcnc.org/forum/38-general-linu...n-between-runs#75946


didn't get where to add this (see the attachment) ?
tired a little , guessed from your old post
forum.linuxcnc.org/forum/38-general-linu...rdinate-system#77930
, but to which version does it support? does it work on emc2 ?

also it can only help me find the values before homing ?
but it can't work for auto mode resume running condition

Please Log in to join the conversation.

More
10 years 1 month ago #80167 by andypugh
I am sure I composed a longer and more compete answer when back at a keyboard, but I don't see it here.

forum.linuxcnc.org/forum/38-general-linu...and-le-failing#62572

Is a link to a similar problem.

You need to edit the format string to suit.

% 6.3f means "floating point, pad with spaces, 6 digits, 3 decimals"
% +6.3f" means "add a + or - symbol

Sorry for the bad lead on axis,py, it's glcanon.py.
/usr/lib/pymodules/python2.7/rs274/glcanon.py

Please Log in to join the conversation.

More
10 years 1 month ago #80179 by tommylight
You need to add that line in the .ini file.

Please Log in to join the conversation.

More
10 years 1 month ago #80198 by boy777
i found 9.3, instead of 6.3, the find says no 6.3f is in the file.
anyhow i tired to change 9.3f to +9.3f ( seen that from an old post)
BUT
can't save the file, thinking stuck near the end :(

andypugh wrote: I am sure I composed a longer and more compete answer when back at a keyboard, but I don't see it here.

forum.linuxcnc.org/forum/38-general-linu...and-le-failing#62572

Is a link to a similar problem.

You need to edit the format string to suit.

% 6.3f means "floating point, pad with spaces, 6 digits, 3 decimals"
% +6.3f" means "add a + or - symbol

Sorry for the bad lead on axis,py, it's glcanon.py.
/usr/lib/pymodules/python2.7/rs274/glcanon.py

Please Log in to join the conversation.

More
10 years 1 month ago #80208 by andypugh
Ah, yes, you need to either save the file to somewhere that you can write to, then use sudo and cp to move it into place, or remember to open the editor in "sudo" mode before you start editing.

So, either start the editor from the command line with something like
Code:
sudo gedit /usr/lib/pymodules/python2.7/rs274/glcanon.py
or maybe
Code:
sudo mousepad /usr/lib/pymodules/python2.7/rs274/glcanon.py
depending on the editor you have installed.

Or, if you already saved it to the desktop
Code:
sudo cp ~/Desktop/glcanon.py /usr/lib/pymodules/python2.7/rs274/glcanon.py

Please Log in to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum