Move the file after job finished

More
10 Jan 2023 15:24 #261451 by mariusl
Hi,
I want to put a button on the screen that will move the current gcode file to a folder after the operator has cut the job.
Is it possible and how would one approach that if possible?
 

Regards
Marius


www.bluearccnc.com

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

More
10 Jan 2023 16:04 #261461 by HansU
Hi,
Yes you can do this by adding an  embedded VCP (also called embedded tab) and write the functionality in a python script.

See here linuxcnc.org/docs/2.9/html/gui/gmoccapy....tabs-and-side-panels 

An example for such a VCP in Gmoccapy you can find here: forum.linuxcnc.org/gmoccapy/45856-spindl...k-in-gmoccapy#242882
The following user(s) said Thank You: tommylight

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

More
10 Jan 2023 16:11 #261464 by HansU
And the filename you can get from linuxcnc.stat(): linuxcnc.org/docs/2.9/html/config/python...xcnc_stat_attributes (look for "file")

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

More
10 Jan 2023 17:13 #261472 by mariusl
Awesome thanks Hans

Regards
Marius


www.bluearccnc.com

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

Moderators: newbynobiHansU
Time to create page: 0.720 seconds
Powered by Kunena Forum