Fanuc Subprogram (Local Subroutine) - CNC Training Centre
Fanuc Subprogram (Local Subroutine) - CNC Training Centre
! " # $
If you have ever used local subroutines on Heidenhain or Yasnac. Then you will know how convenient it is to save
all your programs in one go. No need to remember to save all those shitty external sub programs.
What’s He On About?
If you are now saying “what the fuck is he on about”. Here is an explanation.
A local subroutine or subprogram is where you stuff all your subprograms at the end of your main program.
Thing is the code is just repeated three times. I have nice round numbers in here like X40. and Y20. so it’s easy to
notice mistakes. But if it was X40.392 for example you wouldn’t spot a slight mistake.
Fanuc Subprogram
The M98 P500 calls the external Fanuc Subprogram. Read this if you don’t know about sub programmes.
You have to look after these bloody things and they seem to be able to just get lost on their own.
You find them at the back of the fridge sometimes along with a piece of mouldy old cheese.
All you need to do is replace P with Q. So mind your P’s and Q’s as they say.
The Q corresponds to any N number. So you could have loads of these stacked up at the end of your programme
and you only need to save it once. All this shit will go with it and you don’t need to worry about it ever again.
This should make it work. If it doesn’t then maybe you should call the Samaritans.
Name *
Email *
:
Company Name (If any)
Phone Number *
Comment or Message *
Submit
# 4 Comments
Jeff Long
April 7, 2021 at 9:22 pm
Thank you very much for this information. I figured there had to be a way. Its just such a nice feature to have. You get
used to using it on the Haas. Would have been great to have that 30 years ago on the fanucs.
Reply
David
April 8, 2021 at 9:40 am
It’s not on all Fanuc controls but if it’s there then why not use it. Thanks for your comment.
Reply
:
Andres
April 11, 2021 at 6:24 pm
Hi,
One question, Is possible use both sub program call (M98 with P and M98 with Q)?
Reply
David
April 21, 2021 at 4:35 pm
Yes
Reply
Leave a Reply
Message*
Name*
Email*
Post Comment
ONSITE TRAINING
:
Onsite Training Enquiry
Onsite Training
CLASSROOM COURSES
APPLY NOW
Name *
Email *
Phone Number *
Comment or Message *
:
Comment or Message *
Submit
Name *
Email *
Phone Number *
Comment or Message *
Submit
:
Copyright © 2015 CNC Training Centre. All Rights Reserved. Website Originally Developed By Jabberdog