Integration Utility Kit

Mastercam





Mastercam integration
ICAM MFG Extractor for Mastercam


Mastercam to Icam Post Interface Documentation

Overview

The Mastercam Interface Kit is designed to accommodate differences in syntax between Mastercam's and ICAM's post processing languages. CAM-POST can directly process the Mastercam ".NCI" file format. Internally, NCI records are converted directly to an APT standard format. The INPUT_FORMAT definition file variable must be set to MCAM to enable this conversion.

Many NCI records do not have a standard APT equivalent. These records are converted to a record, which can be captured inside the post processor for whatever purpose you desire. The following lines show a typical NCI record and the resultant record in the CL file.

NCI record (two lines)

PPFUN command representation for Mastercam 9

ISN command representation for Mastercam X

Mastercam also supports a "cantext" concept, which allows an integer flag to be added (or piggy-backed) on to motions. These flags can then be used in the post processor for special processing. The cantext value is converted into a PLABEL command. For example, a cantext value of "10" added to a linear rapid motion would appear as follows:

NCI record (two lines)

APT representation

Mastercam has slightly different record formats for Mill, Turn and Edm applications. Note that CAM-POST does not support the Edm application format. The Mill and Turn formats however are supported. CAM-POST determines the format in use by the operation code (opcode$) defined on the 1013 record, as follows:

With the MCAM1 and MCAM2 formats, tool changes in milling mode are represented by a LOADTL command and tool changes in turning mode are represented by a TURRET command. With the MCAM3 format (default), tool changes are always represented by a LOAD/TOOL command, irregardless of the mode.

Post Processor Commands Conversion

Within the Mastercam kit folder, there is an insert.apt file that contains special commands that control NCI to APT conversion details. This file should not be changed. There is also a kit.mac file that contains the following macros:

LOADTL/$P1* $$ Check for MILL tools on lathes

TURRET/* $$ Switch to TURN mode on lathe PPFUN/$P1'' $$ Ignore unprocessed NCI records PLABEL/$P1 $$ Ignore unprocessed NCI cantext data

Back to top