Simulation of machining by NC program

The mode of machining simulation by NC program (NC) allows you to take into account the peculiarities of postprocessor implementation when simulating machining. In this mode, the system automatically generates the NC for each operation during its calculation. Simulation control is performed in the same way as in the normal simulation control.

Enabling the mode of modeling by NC.


Switching on is carried out with the button images/download/attachments/131894864/image2024-7-19_17-20-34.png on the toolbar, when the <Modeling> tab is active.

Note: The button becomes unavailable for toggling if the multitasking mode is used;


Parameters of the simulation mode by NC program.
Simulation by control program text is performed on the basis of the selected postprocessor file and interpreter file defined in the parameter panel < Machinery> of the machine tool.

images/download/attachments/131894864/image2024-7-19_11-4-47.png

The interpreter is a machine tool control settings file (*.snci) located in the $(PROGRAM_PERSONAL)/Interpreters directory.

During the selection process, a preview panel of interpreter information (description, purpose, stand type, authors, and more) is available:

images/download/attachments/131894864/image2024-7-18_12-40-25.png

The ability to select an interpreter from a container is supported. To do this, get a container with interpreter. Then open the interpreter selection window and navigate to the containers folder.

images/download/attachments/131894864/image2024-7-18_12-44-31.png

Log into the resulting container as a folder, select the interpreter to model inside the container.

images/download/attachments/131894864/image2024-7-30_14-31-27.png

Defining the default postprocessor and interpreter in the machine tool's kinematic diagram

It is possible to set the postprocessor file name and the interpreter file name “by default” in the kinematic diagram of the machine. To do this, add tags SPPFile, SNCIFile with references to the corresponding files to the XML file of the machine diagram and restart the CAM system.

Now, when you select the machine in the CAM system, the postprocessor and the interpreter will already be set and their values will be obtained from the kinematic diagram. If necessary, from the ENCY user interface, the postprocessor and interpreter values can be overridden for the current project.

Example:

<SCType ID=“Fanuc 30i” Caption=“”Fanuc 30i“ type=”“Fanuc30i” Enabled=“true”>
<... other tags ... />
<SPPPFile DefaultValue=“$(PROGRAM_PERSONAL)\Postprocessors\Mill\Fanuc (30i)_Mill.sppx”/>
<SNCIFile DefaultValue=“$(PROGRAM_PERSONAL)\Interpreters\Mill\Fanuc (30i)_Mill.snci”/>.
<... other tags ... />
</SCType>

Currently, interpreters of the following CNC systems are available for use:

Machine group

CNC system

Comment

Note

Milling

APT

Import toolpath only


Apt_Simplify_3D

Import toolpath only


ISO

Import toolpath only


Global control

Import toolpath only

An additional license is required

Fanuc 30i

To simulate and import a toolpath


Haas VF-2

To simulate and import a toolpath


Heidenhain iTNC 530

To simulate and import a toolpath


Mazatrol SmoothG

To simulate and import a toolpath

An additional license is required

NC210

To simulate and import a toolpath

An additional license is required

Sinumerik 840D

To simulate and import a toolpath


Tormach PCNC Mach3

To simulate and import a toolpath


Tormach PCNC PathPilot

To simulate and import a toolpath


Turning

Mazatrol SmoothC

To simulate and import a toolpath

An additional license is required

Turn-milling

Fanuc 21i

To simulate and import a toolpath

An additional license is required

NC220

To simulate and import a toolpath

An additional license is required

Sinumerik 840D

To simulate and import a toolpath


Okuma OSP-P300

To simulate and import a toolpath

An additional license is required

Robot

Fanuc robot (R-30iB controller)

To simulate and import a toolpath


Kuka robot

To simulate and import a toolpath


Motoman robot

To simulate and import a toolpath


ABB robot

To simulate and import a toolpath


Nachi robot (AW Format)

To simulate and import a toolpath

An additional license is required

Note: All interpreters support command list generated by postprocessors in CAM system distribution kit only.

"Import toolpath only" interpreters are not supported matching line NC code - trajectory of tool movement.

When you select an interpreter, pay attention to its purpose (the Purpose field in the Preview pane)

images/download/attachments/128523378/image2024-7-18_12-40-25.png

The selected interpreter should be intended for simulation. Otherwise, the trajectory of the tool may be incorrect (shifted relative to the coordinate system of the workpiece, duplicated approaches/retracts, incorrect starting position, etc.).

Features of modeling by NC

If the mode is enabled, after calculating the tool trajectory, ENCY will automatically generate a control program for the CNC machine with a pre-selected postprocessor settings file, and will convert the text of the control program into a tool trajectory. The generated toolpath will take into account the specifics of the postprocessor implementation. The text of the control program for the selected operation is displayed at the bottom of the <Simulation> mode page, immediately after the list of process operations.

After a short delay of the mouse pointer over the line with the control program text, the description of the associated nodes of the trajectory tree (CLData technological commands) appears in the tooltip.

Note: The tooltip can be hidden by moving the mouse pointer slightly or pressing any key, e.g. [Esc] or one of the keys for navigating through the control program text: [↓] or [↑].


To the left of the control program text there is a service field for displaying auxiliary information. In addition to the number, the status of all associated nodes in the trajectory tree is displayed for each line. The values of the displayed icons are similar to those used for the CLData process commands. In this way, you can unambiguously identify the control program frame in which erroneous trajectory tree nodes exist. Buttons images/download/thumbnails/131894864/image2024-7-30_14-33-53.png and images/download/thumbnails/131894864/image2024-7-30_14-34-5.png allow you to navigate through the control program text between errors.

images/download/attachments/131894864/image2024-7-31_15-0-36.png


Support for external interpreters.

Third-party interpreters for simulation by the control program text are supported. The interpreter settings file (*.snci) must contain a reference to the program library that is used to interpret the control program text. The Creating your own interpreter page describes the process of creating your own interpreter: settings file and application program interface (API).

Video on G-code verification


See also:

Controlling simulation process

Selection of a machine and its parameters definition

Container manager

Creating your own interpreter