How to call up sub programs in G code

I have several programs from a prior machine that were written in conversational programming. All these can be converted to G code simply,but when it comes to sub routines, the protocol is different than G code. I know that M98 calls the sub and m99 is the end of the sub, but where is the file actually placed? What would the correct syntax look like?

I know that the subs for the ATC have to be in the same folder as the program you are trying to run.

I pulled this off of the Masso Rapid change info. Not sure if it helps

1 Like

You should be able to name it “600.nc” naming and then edit your program where it calls up your sub to the new name.

1 Like

Additionally, make sure the main .nc and required sub program .nc files are in the same folder on the USB.

https://docs.masso.com.au/supported-m-codes/m98-and-m99-sub-program-call

2 Likes

Thanks, that helped a lot. I couldn’t get it to work because I didn’t use the "P"to call up the file, so it just skipped those lines.

2 Likes