Subrouting Path - no effect

More
24 Jul 2024 19:28 #305973 by kmeld
Hi,
I have added
SUBROUTINE_PATH  = /home/km/G_Code/SUB/

in to DISPLAY sectoion of INI file, but this has no effect.
I can only call subroutines if their files are in PROGRAM_PREFIX directory.

How to correctly specify subroutine patch for AXIS?

Cris.

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

More
25 Jul 2024 00:44 #305982 by tommylight
Fixed the tittle, it was "patch", threw me off.
-
Not sure, but i think subroutines should be set executable in permissions.

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

More
25 Jul 2024 00:56 #305984 by MaHa
Replied by MaHa on topic Subrouting Path - no effect
I can tell only from my experience, i set SUBROUTINE_PATH and USER_M_PATH in [RS274NGC] section.

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

More
25 Jul 2024 11:30 #306007 by Aciera
Replied by Aciera on topic Subrouting Path - no effect
In the [DISPLAY] section you need use 'PROGRAM_PREFIX':
PROGRAM_PREFIX = ~/linuxcnc/nc_files - The default directory for G-code files, named subroutines, and user-defined M-codes. The PROGRAM_PREFIX directory is searched before the directories listed in [RS274]SUBROUTINE_PATH and [RS274]USER_M_PATH. 
linuxcnc.org/docs/html/config/ini-config...#sub:ini:sec:display

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

More
28 Jul 2024 16:56 #306246 by kmeld
Replied by kmeld on topic Subrouting Path - no effect
Ok, I do not know what exactly solved the problem but I have it working now.

I have changes SUB path not to be sub-directory of main program folder
I have set up SUB path in DISPLAY and in RS274NGC sections of INI file.

Now subroutines are properly read from intended directory.

Cris
 
The following user(s) said Thank You: tommylight

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

Time to create page: 0.099 seconds
Powered by Kunena Forum