Sound and/or Speech

More
16 Sep 2018 14:53 #117608 by dgarrett
Replied by dgarrett on topic Sound and/or Speech

(or anywhere else in the SUBROUTINE_PATH) and make it executable.


User M code files are located by using [RS274NGC]USER_M_PATH (not [RS274NGC]SUBROUTINE_PATH)

USER_M_PATH = myfuncs:/tmp/mcodes:experimentalmcodes - Specifies a list of
colon (:) separated directories for user defined functions. Directories are
specified relative to the current directory for the ini file or as absolute
paths. The list must contain no intervening whitespace.

A search is made for each possible user defined function, typically (M100-M199).
The search order is:

    [DISPLAY]PROGRAM_PREFIX (if specified)
    If [DISPLAY]PROGRAM_PREFIX is not specified, search the default location: nc_files
    Then search each directory in the list [RS274NGC]USER_M_PATH
    The first executable M1xx found in the search is used for each M1xx.
Ref:
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m100-m199
linuxcnc.org/docs/2.7/html/config/ini-co...#sec:display-section

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

More
17 Sep 2018 03:02 #117638 by Askjerry
Replied by Askjerry on topic Sound and/or Speech
I'm traveling for the next 3 weeks... work... :S but I'll try it as soon as I get back home. (Oct 6th or so)

Thanks!
Jerry

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

More
23 Sep 2018 20:36 - 23 Sep 2018 20:45 #117907 by Askjerry
Replied by Askjerry on topic SUBROUTINE PATH
dgarrett - I was doing a video segment on making custom M-Codes... and I installed a SUBROUTINE PATH in the INI file as expected... then placed the files into it. When I did, it crashed and said it could not find the files. When I placed them into the ROUTINES path, it worked just fine. I do not know why that happened.

I explain it here:

JUMP to 10:42 to get there... I put the jump point in the link... but the forum seems to negate that.

When I get back home about October 5th, I'll try it again to see what happens. Not sure why the SUBROUTINE PATH failed.

Wait...

I bet it was because I was using M300 to M302 in my example... You are talking about M1xx commands... I swear... sometimes I'm thick headed. I'll give it a try when i get home. (I wish I had a LinuxCNC laptop with me now.)
Last edit: 23 Sep 2018 20:45 by Askjerry.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum