Ok, I'm glad to know it is an intended feature, if undocumented. I did find a brief discussion on the forum from a decade ago, but it would be nice to get it into the current docs.
https://forum.linuxcnc.org/20-g-code/3121-o-words-to-open-files My other problem was a simple typo in the PROGRAM_PREFIX line in my ini file, so it wasn't looking for my o-word sub files. I'm good now. Thanks again! -- Ralph ________________________________________ From: andy pugh [[email protected]] Sent: Thursday, November 12, 2020 4:38 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Named subroutines CAUTION: This email originated from outside the Walla Walla University email system. On Fri, 13 Nov 2020 at 00:19, Ralph Stirling <[email protected]> wrote: > > I was reading the docs on remapping, and got to > wondering if the o<subroutinename> call syntax > discussed in: > https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2Fhtml%2Fremap%2Fremap.html&data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Caafaf181e38e4bb409a708d8876c8e57%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637408247616971827%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=40aWwtcAw1nWr0WquyIRih5M3K5BXfk0iCdyGtx6CaU%3D&reserved=0 > could be used directly in G-code programs. Yes. Though oddly the docs don't mention it in the subroutine section. https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2Fhtml%2Fgcode%2Fo-code.html%23ocode%3Asubroutines&data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Caafaf181e38e4bb409a708d8876c8e57%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637408247616971827%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BuyqxIam8upcHdVtWNd6I9YXfcha37PY5hwxaUp0%2Bcc%3D&reserved=0 I tested with: O<subroutine> SUB (DEBUG, #1) O<subroutine> ENDSUB O<subroutine> CALL [22] M2 -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-users mailing list [email protected] https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Caafaf181e38e4bb409a708d8876c8e57%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637408247616971827%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=kn5gPO7tpVmr1D2JzY4LP6L1dXWKdMFAlDpyvdYhy0c%3D&reserved=0 _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
