Generate the NC Code Interactively

The Generate the NC Code Interactively dialog box appears when you select Generate the NC Code Interactively. This allows you to set up the NC output for NC code.

This dialog box contains controls for:

This page discusses:

In/Out

Input
Define the Input

  • Part Operations: Select one Part Operation. In this case, all the Manufacturing Programs of the selected Part Operation are processed.
  • Programs: Select one or more Manufacturing Programs. The file and container names for each program are previewed in the list and the default name fields are prefilled with the name of the selection. You can modify the default name from the corresponding cell or from the column header.
    Note: If several Manufacturing Programs exist, they are all listed in the dialog box.
  • NC File Container: Select a previously generated APT file in the NC files container.
    • APT to be Processed: Specifies the APT file that you plan to use.
    • APT Index File: Specifies the APT index file that you plan to use.

Output
Define the following options:
One File...
  • for all selected programs - Generates a single output file for all the selected Manufacturing Programs.
  • by program - Generates a single output file for each selected Manufacturing Programs.
  • by machining activity - Generates a single output file for each machining activity in the selected Manufacturing Programs.

    This option is not supported in Manufacturing Programs containing Copy or Tracut Operators for output type CLFile.

  • by tool change - Generates a single output file for each tool change activity in the selected Manufacturing Programs. Each file contains the output for the specific tool change and all the manufacturing operations under the particular tool change as visible in the activities process tree. Auxiliary operations like Machining axis change, Machine instruction etc., are not specific to a particular tool-change even if they appear under a tool change in the activities process tree view and hence, are output for subsequent tool changes as well. Activities like Post-Processor instructions created before the first tool change are output in files for each of the tool-changes.

    This option is not supported in Manufacturing Programs containing Copy or Tracut Operators or for output type CLFile. This option does not enable to generate output only for a specific tool-change.

Note: When Programs mode is selected, the default name is indexed and one container is created for each program.
NC Output Type
Specifies the output format: APT, CLFile or G-Code. This type is defined globally in the machine associated to the Manufacturing Program.
File Extension
Selects the corresponding output file extension.
Store APT Index File for Post-Processing
Generates APT index file. You can use this file afterward when generating NC code from an APT file in an NC File Container.
Keep Content of Existing Containers
Keeps or removes existing files of selected containers.
Lock Operations
Locks all the machining activities after processing.
Do Not Show NC Output Error Panel
Hides NC output error panel.
Calculate the Cost Computation
Computes the tool cost for a given machining program or activity. The cost is displayed in the Results tab.

Tools Motions

Tool Motions

Tool motions and formatting let you modify locally the machine parameters.

Remove Coincidental Point between Operators - Output the same point even if the end point of a Machining Activity and start point of the subsequent Machining Activity are the same.

Process Repetition as Toolpath Point - Repeated toolpaths outputs are treated as transformed toolpath points

Feedrates

Modify locally the machine feedrate parameters.

Circular Interpolation

Set the circular interpolations with the minimum and maximum values.

Formatting

Statements

Set the data information.

Format for Points Coordinates (X,Y,Z)
Set the point coordinates for the Number of digits and the digits after the decimal.
Format for Axial Components (I,J,K)
Set the point coordinates for the Number of digits and the digits after the decimal.

NC Code

Cenit Post-Processor File

If the output option is set to None, you cannot generate the NC code. The content of the NC Code tab varies according to the post-processor selected.

If not already done, go to the Numerical Control tab of the machine to select the Post Processor Provider or Me > Preferences > App Preferences > Simulation > Machining > NC Machining Apps Common Services > Output to select the type of Post Processor (Cenit, Intelligent Manufacturing Software (IMS), ICAM Technologies Corporation, ICAM Foundation, SGPost, or My Post). For more information, see Output.

Cenit Post-Processor Solution

Sample Cenit Post Processor parameter files are delivered with the product in the folder \Startup\Manufacturing\PPPar, which provides NC output for various machine types. To execute your own PP, you must copy it into this folder.

You can use PPs that include external macros. In this case, you must define them in the PP in:

Modify postprocessor // Define NC-blocks // Index : MACRO APT WORDS

and then copy these macros in the same folder as the PP.

IMS Post-Processor Solution

Sample IMS Post Processor parameter files are delivered with the product in the folder \Startup\Manufacturing\IMSPar, which provides NC output for various machine types.

It also allows customization of the Post Processors as per the user’s machine specifications through IMS ® Formatter .

To execute your own PP, you must copy it into this folder.

The IMSPar folder must be accessible in Read or Write mode.

ICAM Post-Processor Solution

Sample ICAM Post Processor parameter files are delivered with the product in the folder \Startup\Manufacturing\ICAMPar, which provides NC output for various machine types. To execute your own PP, you must copy it into this folder.

Always save your program modifications before generating NC code.

For best results, verify the operations of your program by means of a replay or simulation. You must not have operations that you need to update or are undefined.

ICAM Foundation Post-Processor Solution

Sample ICAM Foundation Post Processor parameter files are delivered with the product in the folder \Startup\Manufacturing\ICAMFoundationPar, which provides NC output for various 2 and 3 axis machine types.

It also allows creation of the Post Processors as per the user’s machine specifications through ICAM ® Foundation Developer.

Always save your program modifications before generating NC code.

For best results, you should first verify the operations of your program by means of a replay or simulation. There should be no operations to be updated or in an undefined state.