How do I close a g-code file in Gmocapy?
- Unlogic
- Offline
- Elite Member
-
Less
More
- Posts: 237
- Thank you received: 116
17 Sep 2025 13:13 - 17 Sep 2025 13:20 #335124
by Unlogic
Replied by Unlogic on topic How do I close a g-code file in Gmocapy?
I'm gonna revive this thread as I'm running into the exact same issue as Ikavan describes.
My g-code files are stored on a Samba and when I open a file from the share in LinuxCNC (Probe Basic in my case) it gets locked.
If it would be possible to add a configuration flag in the INI file or somewhere else that makes LinuxCNC load the file to RAM and then close it to prevent locking I'd pay 200$ without hesitation.
Next step would be to add "Reload" button in the GUI to reload the currently open file. The would save a lot of time during the iterative process of testing new g-code programs.
My g-code files are stored on a Samba and when I open a file from the share in LinuxCNC (Probe Basic in my case) it gets locked.
If it would be possible to add a configuration flag in the INI file or somewhere else that makes LinuxCNC load the file to RAM and then close it to prevent locking I'd pay 200$ without hesitation.
Next step would be to add "Reload" button in the GUI to reload the currently open file. The would save a lot of time during the iterative process of testing new g-code programs.
Last edit: 17 Sep 2025 13:20 by Unlogic. Reason: Fixed typo
Please Log in or Create an account to join the conversation.
- Unlogic
- Offline
- Elite Member
-
Less
More
- Posts: 237
- Thank you received: 116
04 Nov 2025 10:42 - 04 Nov 2025 20:55 #337801
by Unlogic
Replied by Unlogic on topic How do I close a g-code file in Gmocapy?
I made some progress on this issue.
The following command will show all open files in Samba which have some form of lock:
smbstatus -L
Edit: Ignore the text below it gave some weird side effects after some more testing.
Adding the following lines to the configuration of the share in smb.conf allows me to overwrite the files even though they are locked.
oplocks = no
level2 oplocks = no
strict locking = no
I'm using Probe Basic and it recently received a "RELOAD PGM" button in the development version which is very welcome.
However it doesn't seem to pick up the changes if I overwrite the file on the share and press the "RELOAD PGM" button. But if I open another file and then open the first file again it picks up the changes right away.
The following command will show all open files in Samba which have some form of lock:
smbstatus -L
Edit: Ignore the text below it gave some weird side effects after some more testing.
oplocks = no
level2 oplocks = no
strict locking = no
I'm using Probe Basic and it recently received a "RELOAD PGM" button in the development version which is very welcome.
However it doesn't seem to pick up the changes if I overwrite the file on the share and press the "RELOAD PGM" button. But if I open another file and then open the first file again it picks up the changes right away.
Last edit: 04 Nov 2025 20:55 by Unlogic.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.268 seconds