Macros. File not open

More
1 year 9 months ago #319506 by Yaroslav
  When trying to run a macro located in the "macros" folder, we get an error "File not open"  
  At the same time, in the MDI mode, the button of this macro and the image, which is located in the same folder, appear.
The file will work only if it is placed in the root of the folder configuration or the root folder nc-files.
This happens only on some configurations.
For example, I had a configuration with an ATC carousel, everything worked. I converted this same configuration to a ladder - and it stopped working. 
It is more convenient if the macros are in a separate folder.

Please Log in to join the conversation.

More
1 year 9 months ago #319530 by Aciera
Replied by Aciera on topic Macros. File not open
Moved to the 'Gmoccapy' section.

Please Log in to join the conversation.

More
1 year 8 months ago #320400 by HansU
Replied by HansU on topic Macros. File not open
Try to give an absolute path for the macros or play around with that value:
Code:
[RS274NGC] SUBROUTINE_PATH = macros

See linuxcnc.org/docs/devel/html/gui/gmoccapy.html#gmoccapy:macros [/color][/color][/color][/color][/code]

Please Log in to join the conversation.

More
1 year 8 months ago #320599 by Yaroslav
Replied by Yaroslav on topic Macros. File not open
I did this on some machines. But it causes inconvenience when transferring the configuration, especially if it needs to be done remotely.

Please Log in to join the conversation.

More
1 year 8 months ago #320629 by Aciera
Replied by Aciera on topic Macros. File not open
Just a stab but have you tried ./macros instead of just macros?

Please Log in to join the conversation.

More
1 year 8 months ago #320660 by Yaroslav
Replied by Yaroslav on topic Macros. File not open
I tried both options. Version 2.9.4 is out. I'll try it and see if anything has changed.

Please Log in to join the conversation.

More
1 year 8 months ago #320926 by zz912
Replied by zz912 on topic Macros. File not open
Sub has not same name at start and end.
 

Attachment not found

Please Log in to join the conversation.

More
1 year 8 months ago #320980 by Yaroslav
Replied by Yaroslav on topic Macros. File not open
This is a random error. I have many other files that are not working. At the moment I am solving the problem by moving them to the root of the machine configuration folder.

Please Log in to join the conversation.

More
1 year 8 months ago #322210 by JuFu
Replied by JuFu on topic Macros. File not open

This is a random error. I have many other files that are not working. At the moment I am solving the problem by moving them to the root of the machine configuration folder.
 
I have the same problem.
Created about 10 macros and all worked fine.
I edited some of the macros and changed names, all of a sudden the message "File not open" shown when I try to run the macro.
Verified 10 times to be sure file name, MACRO = in ini-file, first and last line (before M2) has correct name.
The macros not edited still work, but the macros I changed the names donot.

@Yaroslav: did you find a solution?

Please Log in to join the conversation.

More
1 year 8 months ago #322268 by Yaroslav
Replied by Yaroslav on topic Macros. File not open
I solved the issue by moving the files to the root of the machine configuration folder.

Please Log in to join the conversation.

Time to create page: 0.107 seconds
Powered by Kunena Forum