save the last machine coordinate
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 72
- Thank you received: 2
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
- Away
- Moderator
Less
More
- Posts: 19458
- Thank you received: 6529
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
POSITION_FILE = position.txt
The following user(s) said Thank You: Unlogic
Please Log in or Create an account to join the conversation.
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 72
- Thank you received: 2
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
and the coordinates return to zero
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19458
- Thank you received: 6529
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.
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.
- zz912
- Offline
- Platinum Member
Less
More
- Posts: 509
- Thank you received: 81
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.
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.
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 72
- Thank you received: 2
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.
- zz912
- Offline
- Platinum Member
Less
More
- Posts: 509
- Thank you received: 81
11 Feb 2024 02:10 #293051
by zz912
Replied by zz912 on topic save the last machine coordinate
You can try NO_FORCE_HOMING = 1
github.com/LinuxCNC/linuxcnc/blob/54bca1...apy/gmoccapy.ini#L93
github.com/LinuxCNC/linuxcnc/blob/54bca1...apy/gmoccapy.ini#L93
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