Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Internal subs in an external sub call (M198)


huskermcdoogle
 Share

Recommended Posts

Anyone know if you can use M98 Q(n address) inside of an M198?  Looking to simplify and streamline my subs, unfortunately most of my programs are too big for main memory, and I would like to use subs to simplify changing coordinates so I don't have to scroll through the program to make edits or check what coordinates a program was set for.  Also, its nice to have everything in the data server so that you can organize everything by folder easily.

Link to comment
Share on other sites

If you're running a FANUC, Make sure you have Parameter #6005.0 = 1.

 

M98/M198 P... Q...

On a 30i and 0i-F Series you can actually call subs by name and not O number.

For example, in my folder I have the following Programs; in my control/Dataserver

TEST_MAIN

TEST_SUB_1

TEST_SUB_2

TEST_SUB_3

 

%

<TEST_MAIN>

N1M98<TEST_SUB_1>Q101 (WILL JUMP TO LINE 101 in SUB)

N2M98<TEST_SUB_2>Q201 (WILL JUMP TO LINE 201 in SUB)

N3M98<TEST_SUB_3>Q301 (WILL JUMP TO LINE 301 in SUB)

M01

M30

%

Link to comment
Share on other sites

Now I do call subs in the data server by file name already but I hadn't thought about the line address aspect of it.....  Now this opens up a can of potentially useful worms.  I wonder if I can set up my post to output everything using a main call then one sub file with all tools but broken up with address numbers at each tool change and m99's before the next tools starts.  Sounding very doable, and useful for breaking things up so you can restart easily from a given tool or operation.

HMMMMMMMMMM  I DIDN'T NEED THIS DISTRACTION TODAY :rant: :whistle:

But thanks for reminding me of this feature that didn't register its usefulness into brain upon reading about it many moons ago...  Thanks Fanuc for having such clear manuals...

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...