Subrouting Path - no effect

More
2 years 3 months ago #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 to join the conversation.

More
2 years 3 months ago #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 to join the conversation.

More
2 years 3 months ago #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 to join the conversation.

More
2 years 3 months ago #306007 by Aciera
Replied by Aciera on topic Subrouting Path - no effect
In the [DISPLAY] section you need use 'PROGRAM_PREFIX':
Code:
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 to join the conversation.

More
2 years 3 months ago #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
 

Please Log in to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum