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:

Tooltable @ end of file


Recommended Posts

The only real issue with using the 'subout$' stream is that it is also used for subroutine output. So if you use Subs, I would write to the 'auxiliary file' or the 'external file' (AUX or EXT).

 

Writing to the AUX file is 'subout$ = 2'. Writing to the EXT file is 'subout$ = 3'.

 

MP was also enhanced a while back to include a 5th output stream, used for Lathe Canned Cycle processing. This is the 'LCC' file, and is set with 'subout$ = 4'. If you've already used the other output streams, and just need one more, this would also work.

Link to comment
Share on other sites

Thanks,

after I posted this I found another thread that sugguested subout$ = 3

 

I used subout$ = 3 everything looks good as far as the code goes & I've got everything where I want it, but I'm getting this error msg

 

 

 

NCI(108) - 'extprg$' must be set to 'yes$' to open auxiliary file.

 

subout$ = 2 works without any errors

Link to comment
Share on other sites

Yes, the 'subout$' variable acts as a switch to switch the output stream. However, you also need to make MP initialize the EXT file, so that it actually exists.

 

Just prior to your logic that switches the output stream (subout$ = 3), just add a formula that sets 'extprg$ = 1'. A setting of '0' for 'extprg$' would disable writing to the EXT file. A setting of '1' will erase the contents of the file (if it already exists), or just open a new EXT file. A setting of '2' allows you to open the existing EXT file, and append information to the existing file, instead of erasing the contents.

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...