save the last machine coordinate

More
2 years 8 months ago #292985 by Thayloreing
good morning guys. I'm a beginner in Linux cnc, I hope you'll be patient with me, my question is the following, I used mach3 for a long time and I'm switching to linuxcnc, one thing I missed was the option to save the last coordinate of the machine, so when I turned on the machine and it was always at the reference I had left, is there a way to create a button on the axis to save the last coordinate?If so, could you tell me how in the most explanatory way possible?I'm Brazilian, and I have to translate to understand, so some things get a little confusing.

Please Log in to join the conversation.

More
2 years 8 months ago #292995 by tommylight
LinuxCNC does that automatically even on power cut, just add this line to the ini file, [TRAJ] section:
POSITION_FILE = position.txt

Please Log in to join the conversation.

More
2 years 8 months ago #293023 by Thayloreing
I added the line, as you mentioned, but it didn't work, it opened, but when I move, close Linuxcnc and open it again, it lost all references,
and the coordinates return to zero

Please Log in to join the conversation.

More
2 years 8 months ago #293032 by tommylight
Open the config folder using file browser, see if there is a file named
Position.txt
If not, create an empty file using text editor like mousepad or xed or nano ( not office stuff), and name it position.txt and test again.

Please Log in to join the conversation.

More
2 years 8 months ago #293036 by zz912
Here is example:
github.com/LinuxCNC/linuxcnc/blob/54bca1...apy/gmoccapy.ini#L92

You can try it. It is sim configuration. You have this configuration file in your instalation.

Please Log in to join the conversation.

More
2 years 8 months ago #293037 by Thayloreing
I managed it, thank you very much, but I have another question, in Mach3 if I close and open it and want to run the program without referencing it would use the previous reference, Linuxcnc has to reference it again, is there a way to make it keep the last reference after closing and opens again, the position it maintained when it opens again, but the reference does not

Please Log in to join the conversation.

More
2 years 8 months ago #293051 by zz912

Please Log in to join the conversation.

Time to create page: 0.135 seconds
Powered by Kunena Forum