Hello Guest it is March 28, 2024, 07:23:12 PM

Author Topic: Subroutine File Not Found  (Read 1334 times)

0 Members and 1 Guest are viewing this topic.

Subroutine File Not Found
« on: April 03, 2018, 05:13:14 PM »
Hello all,

Using the M98 P1234 code I am trying to call a file O1234 located in C:\Mach4Hobby\Subroutine,

When the code is run, the sub program is not loaded and the error Subroutine File Not Found is displayed. ??? ??? ???

Has anyone any ideas on how I could resolve this.

Any help greatly appreciated. ;) ;) ;) ;) ;) ;)
« Last Edit: April 03, 2018, 05:14:45 PM by roywalker »
Re: Subroutine File Not Found
« Reply #1 on: April 03, 2018, 05:52:21 PM »
Change your m99 in the end of your Subroutine to m30.
I got the following program to run the Subroutine and got the MDI to run the Subroutine.
See picture.  Program on the left and Subroutine on the right.  O1234 is saved in the Subroutines folder.

« Last Edit: April 03, 2018, 05:59:39 PM by Cbyrdtopper »
Chad Byrd
Re: Subroutine File Not Found
« Reply #2 on: April 03, 2018, 05:54:59 PM »
Huh,
Actually, I just changed mine to M99 as well.  It worked just fine.

You need to have the name of your subroutine at the top of your program.

Exp.  In subroutine O1234 the first line needs to be:   (O1234)

(O1234)
CODE
CODE
m99
« Last Edit: April 03, 2018, 06:00:05 PM by Cbyrdtopper »
Chad Byrd
Re: Subroutine File Not Found
« Reply #3 on: April 03, 2018, 06:06:57 PM »
I added the O1234 to the first line of the subprogram and it worked perfect.

Thanks for the replies to my first post....I'm sure I will have some more to follow!! ;D ;D ;D ;D ;D ;D ;D
Re: Subroutine File Not Found
« Reply #4 on: April 03, 2018, 07:22:26 PM »
No problem.   This is a great community to be a part of!!
Chad Byrd