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:

Why the middle man?


Diedesigner
 Share

Recommended Posts

Hi all,

 

As a relatively inexperienced Mastercam Programmer, I have always wondered why Mastercam uses an NCI file; why the "middle man?" I import all of my graphics, and then program off of said graphics. What is the purpose of Mastercam generating an NCI file, and then generating g-code off of the NCI file? At the very base level, it seems that g-code should be associated with the graphics, not a "go between" file. Maybe I just don't properly understand the relationship between graphics and NCI files because of my background in SmartCam confused.gif

 

Can anyone be gracious enough to share some insights and/or explanations as to why Mastercam uses NCI files, and the different ways one can use them?

 

Many thanks in advance.

 

Chris

Link to comment
Share on other sites

quote:

I think you'll find that this is the absolute norm in the CAM world.

+1, Dave.

 

Also, it's worth noting that most other CAM systems just don't make you aware of this fact, although it does happen.

 

Mastercam gives you all options. Very cool. cheers.gif

 

'Rekd teh elaborating

 

[ 06-18-2003, 02:14 PM: Message edited by: Rekd ]

Link to comment
Share on other sites

quote:

background in SmartCam

Actually all the cutter location data was inside of the PM4 file but you just didn't get an explicit file for this.

 

Do a search on SmartCAM transitions here and you will find the issues that you will face as you develop both as a programmer and as a person.

Link to comment
Share on other sites

and now you have the option of not creating an external .nci file in MC. Speaking of nci files, has anyone ever created an external postprocessor that used the .nci files? Is there a reference somewhere of what the integer codes are and the parameters that follow them in the nci? Some of them are direct from APT 1006 etc but I doubt the file is exactly the same as apts cl file.

Link to comment
Share on other sites

You can get from your reseller a set of Mastercam Post Processor Guides, Volumes 1,2,3 in PDF format that will outline in very very much detail all that youneed to know about post programming.

 

Other "highend" CAM systems will generate CL files (cutter location files) and one standard format is APT (I think it's Advanced Programming Tool). The NCI and APT are both neutral formats for the programmed path.

 

Mastercam supplies multiple posts that will convert the NCI into proper G-code for the machine. High-End systems will tell you to buy some other product to generate the G-Code file (ICAM, IMS,...).

 

In SmartCAM, you need the PM4 file, the TMP file, the SMF file and the JOS file to get the code. In Mastercam, the MC9 file can be used with the post (PST and TXT files) to generate code.

 

I hope this helps a bit smile.gif

 

Luc

Link to comment
Share on other sites

quote:

has anyone ever created an external postprocessor that used the .nci files?

Isn't this done by NC_utilitys/post_processors/run_old. It will propmt for an NCI file. There was a time when the geometry was not connected to the NCI file and the only way to post anything was with the use of an external NCI.

Link to comment
Share on other sites

I believe the actual process is like the following.

 

When a toolpath is (re)generated a binary nci is created and stored internally in the mc9 file.

 

toolpath -----> bnci

 

When you 'post' a toolpath the bnci is then written to a text nci file.

 

bnci -----> nci

 

Now the post processor is really made up of 2 files. The program (dll) file which in nothing more than a chook and the pst text file. The pst file is usually what we refer to when we say, 'the post processor'. Mastercam reads the pst file and determines what post processor (dll) to use. MP.dll for mill, MPL.ll for lathe, and so on. It's question 91 in the pst file. The dll is then fed the pst file name, the nci name, and the output nc file name.

 

Then the magic gnomes smile.gif inside the dll convert the nci to the properly formatted nc file. I say gnomes because I refuse to think of all the work that must have gone into programming the post processor dll.

 

nci -----> magic gnomes -----> nc

 

Now if you told mastercam 'not to generate' a nci file, it is deleted. If you also told MC to edit the resulting nc file it is also passed to your favorite nc editor where you can admire the work of the magic gnomes.

 

Now I'm sure someone from MC could give us a much more detail explanation than this, but other than myself I don't know anyone who would be interested in that. [source code with detailed explanations can be emailed to bryan (_at_) ivanxxxx (_dot_) com. biggrin.gif ]

 

Bryan smile.gif

 

Yep, magic gnomes, and I'm sticking to it. biggrin.gif

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