About Post Processing

Post processing, or posting, refers to the process by which the toolpaths in your part files are converted to a format that can be understood by your machine tool's control (for example, G-codes). A program called a post processor, or post, reads your part file and writes the appropriate NC code. Generally, every machine tool or control requires its own post processor, customized to produce code formatted to meet its exact requirements. In addition, you can customize a post to reflect job or shop preferences, such as safety blocks, tolerances, etc.

Post processors have two components:

  • Executable file: This is the piece of software that actually generates your NC code. Mastercam includes MP.DLL for this purpose. Other DLLs can be developed for advanced applications or are available from other companies.
  • Post customization script: A post customization script (.pst or .mcpost) is used by MP.DLL to customize the post output for your machine tool. It includes format statements, processing logic, miscellaneous integers and custom variable definitions, system variables, etc. Mastercam makes available a wide variety of working posts for common machines and NC controllers. These can be further customized for specific needs.

A single post executable like MP.DLL is used to produce NC output for many different machines by reading different .pst files. A typical Mastercam user has one post executable (most often MP.DLL), and several post files—one for each machine in their shop.

Post processors do not read your part files directly. Instead, Mastercam creates an NCI file as an intermediate file format to be used by the post processor. The NCI file is written in a text format so that you can review it directly. This is useful when customizing posts, debugging post problems, or analyzing problems with your NC code because it lets you see the exact data that the post is reading.

CAUTION

Customizing the post file is an advanced task that should only be attempted by knowledgeable users. Programs created with incorrect posts can cause your machine tool to crash or behave in unpredictable ways. If you have any doubts, please consult your Mastercam Reseller for assistance or more information!

Learn more