save the last machine coordinate

More
10 Feb 2024 11:53 #292985 by Thayloreing
save the last machine coordinate was created 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 or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Feb 2024 14:15 #292995 by tommylight
Replied by tommylight on topic save the last machine coordinate
LinuxCNC does that automatically even on power cut, just add this line to the ini file, [TRAJ] section:
POSITION_FILE = position.txt
The following user(s) said Thank You: Unlogic

Please Log in or Create an account to join the conversation.

More
10 Feb 2024 18:35 #293023 by Thayloreing
Replied by Thayloreing on topic save the last machine coordinate
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 or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Feb 2024 19:49 #293032 by tommylight
Replied by tommylight on topic save the last machine coordinate
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.
The following user(s) said Thank You: Thayloreing

Please Log in or Create an account to join the conversation.

More
10 Feb 2024 20:38 #293036 by zz912
Replied by zz912 on topic save the last machine coordinate
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.
The following user(s) said Thank You: Thayloreing

Please Log in or Create an account to join the conversation.

More
10 Feb 2024 20:48 #293037 by Thayloreing
Replied by Thayloreing on topic save the last machine coordinate
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
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
11 Feb 2024 02:10 #293051 by zz912
The following user(s) said Thank You: Thayloreing

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum