Ten Things You Might Not Know About The Fanuc Sub Program
Category : Beginners Fanuc Fanuc Mill Fanuc Turn New Stuff
CNC Training Call David: 07834 858 407
30 five star ratings on Google (Just saying)
Sub Program Fanuc
Here are ten things you might not know about Fanuc sub programs,
Fanuc CNC controls are the most common controls in the world so it might be useful to have a good understanding of how sub programs are called and used.
(1) You Can Call a Sub Program By Name.
Yes you heard it here the program can be called by it’s name or it’s number. When calling by name don’t use the P.
Just put the name of the program in these things <> with an M98 and your away.
M98<ALBERT>
The only problem with this is that the syntax needs to be spot on so if you have got complicated names for your your sub routines then you might be in the shit.
I always call mine names like ALBERT that are easy to remember.

(2) You can use internal sub routines on a Fanuc Control.
Some people call these local sub programs. It just means it’s tagged on the end of your program which makes them nice n easy to look after. A bit like a pet Goldfish or a pet fly.
I bought mine from the local pet store. I asked the assistant if he sold pet flies and he said no. I said “well there are loads in the window”.
Anyway he sold me one (£15) his name is Paul

This is not him this is Steve.
Internal Sub-Routines
By typing M98 Q500 your control will look for N500 within your current program. This is great because you can add the sub programs to the end of your main program. Don’t forget to leave big gaps so you can clearly see where and what they are. Oh and mind your P’s and Q’s.
M98 P500 (Call O500 externally)
M98Q500 (Call N500 in main program.

Just one other thing. Watch your n numbers it’s easy to get them mixed up. Try and use a convention.











