Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: roywalker 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. ;) ;) ;) ;) ;) ;)
-
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.
-
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
-
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
-
No problem. This is a great community to be a part of!!