- Posts: 260
- Thank you received: 0
How do I close a g-code file in Gmocapy?
1 year 1 month ago #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.
Please Log in to join the conversation.
11 months 3 weeks ago #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.
Please Log in to join the conversation.
Time to create page: 0.034 seconds
