G-code based operation, G-code based lathe operation

Set

NC program


Select

the interpreter


Press

"Run"


Get

the toolpath

images/download/attachments/128538829/image2024-7-30_13-29-54.png

images/download/attachments/128538829/image2024-7-30_13-31-18.png

images/download/attachments/128538829/image2024-7-30_13-33-8.png

images/download/attachments/128538829/image2024-7-30_13-33-56.png

< G-code based operation > images/download/thumbnails/128538829/NCBasedMilling_Ico.bmp and < G-code based lathe operation> images/download/thumbnails/128538829/NCBasedLathe_Ico.png operations located in <Auxiliary> list. It can be also used for indexed and continuous processing at 4 and 5 coordinate machining centers. All available simulation types are supported, including additive manufacturing to simulate material layer buildup.

Note:

  • images/download/thumbnails/128538829/NCBasedMilling_Ico.bmp < G-code based operation > does not support the turning tool.

  • images/download/thumbnails/128538829/NCBasedLathe_Ico.png < G-code based lathe operation > supports only turning tool.

  • Both operations do not support Wire EDM machining .

These operations allow you to perform:

  • direct control of the machine simulation using G-codes;

  • check and optimize the NC program;

  • convert the text of the NC from one controller to another (for machines with identical kinematic scheme);

  • debug your own interpreter during its creation.

The toolpath is formed on the basis of the following operation parameters:

  • Specified NC text on the images/download/thumbnails/128538829/image2024-7-30_13-41-35.png < Job assignment > parameters panel;

  • Selected interpreter on the images/download/thumbnails/128538829/image2024-7-30_13-41-56.png < Strategy > parameters panel;

  • Assigned tool on the images/download/thumbnails/128538829/image2024-7-30_13-42-19.png < Tool > parameters panel.

images/download/thumbnails/128538829/NCFile.png < The NC text > can be written manually or can be loaded from an external file and edited, if necessary. The built-in text editor supports syntax highlighting of the main key structures of the CNC programming language, as well as a wide range of keyboard shortcuts for working with text.

More detailed information about the possibilities of working with the NC text is described in the section < Job assignment for G-code based operation, G-code based lathe operation >

images/download/thumbnails/128538829/SNCIFile.png < Interpreter file (*.snci) > defines the format of recognition of the controller commands in blocks of the NC program. The corresponding parameter specifies the full path to the selected interpreter. The parameter value can be entered manually as well as by using the file selection dialogue, which is accessed by using the images/download/attachments/128538829/image2024-7-30_14-0-53.png entered button. During the selection process, selection process, a preview of the interpreter information is available (description, purpose, CNC system, authors, etc.):

images/download/attachments/128538829/image2024-7-30_13-50-59.png

The ability to select an interpreter from the container is supported.

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/kb.sprutcam.com/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.).

images/download/thumbnails/128538829/MCD2CLDConversion.bmp < Use advanced toolpath transformation >- this parameter converts the NC toolpath from machine to geometric. Which, in turn, makes it possible to correct the toolpath using the robot axes map. If the setting is disabled, then the final toolpath is formed (as closely as possible repeating the one specified in the NC program), without the possibility of changing it.

images/download/thumbnails/128538829/PhysicGOTOStep.bmp < Step of physic movements dividing > - available only when using Use advanced toolpath transformation (see above). In this mode, at the first stage, the tool path is converted into a geometric curve. At the next stage, machine movements are rasterized with the step specified in the current parameter to ensure maximum similarity with the original toolpath. The smaller the value of the rasterization step, the higher the accuracy of construction and, accordingly, the similarity with the original toolpath.

images/download/thumbnails/128538829/InsertUnknown.bmp < Add unrecognized commands in the trajectory > - this parameter adds all commands of the control program not recognized by the interpreter to the toolpath. Unrecognized commands are added to the tool path description as a technology command parameter < INSERT > before the recognized commands.

Example of how the parameter "Add unrecognized commands in the trajectory" works

NC program

This parameter is disabled

This parameter is enabled

images/download/attachments/128538829/InsertUnknown_NC.png

Commands M107, E - are not recognized by the interpreter

images/download/attachments/128538829/InsertUnknown_ModeOff.png

images/download/attachments/128538829/InsertUnknown_ModeOn.png

images/download/attachments/128538829/Radius%D0%A1ompensationMode.bmp < Radius compensation mode > - A bility to disable or set an arbitrary compensation value on the tool radius.

Parameter value

Milling

Turning

images/download/thumbnails/128538829/CompensationOff.bmp Off

images/download/thumbnails/128538829/TRCMode_Off.png

Radius compensation is disabled.
Commands G40, G41, G42 are ignored

images/download/thumbnails/128538829/CRCMode_Off.png

Cutter radius compensation is disabled .
Commands G40, G41, G42 are ignored

images/download/thumbnails/128538829/CompensationRadius.bmp Tool radius

images/download/thumbnails/128538829/TRCRMode_Radius.png

Radius compensation is equal to the tool radius

images/download/thumbnails/128538829/CRCRMode_Radius.png

Cutter Radius compensation is equal to the tool nose radius

images/download/thumbnails/128538829/CompensationControl.bmp Custom value

images/download/thumbnails/128538829/TRCMode_CustomValue.png

Radius compensation is determined by the specified arbitrary value .

images/download/thumbnails/128538829/CRCMode_CustomValue.png

Cutter radius compensation is determined by the specified arbitrary value .

Parameter

Milling

Turning

Note

images/download/thumbnails/128538829/ToolRadiusDelta.bmp < Tool radius delta >

images/download/thumbnails/128538829/TRCMode_Radius_Delta.png

Additional tool offset.

The total offset is calculated as the sum of the tool radius and the value of the additional offset.

images/download/thumbnails/128538829/CRCMode_Radius_Delta.png

Additional tool offset.

The total offset is calculated as the sum of the tool nose radius and the value of the additional offset.

The setting is only available when using the images/download/thumbnails/128538829/CompensationRadius.bmp <Tool radius> value set as the radius compensation mode (see above)

images/download/thumbnails/128538829/ToolRadiusDelta.bmp < Compensation value >

images/download/thumbnails/128538829/TRCMode_CustomValue2.png

Arbitrary value for radius compensation.
By default, the value is equal to the tool radius — 50% Ø

images/download/thumbnails/128538829/CRCMode_CustomValue.png

Arbitrary value for cutter radius compensation.
By default , the value is equal to the tool nose radius — 50% Ø

The setting is only available when using the images/download/thumbnails/128538829/CompensationControl.bmp <Custom value> value set as the radius compensation mode (see above)

images/download/thumbnails/128538829/MillToolType.bmp < The tool > that will be processed is determined on the corresponding tab of the operation parameters window. When creating G-code based operations, it is assigned a default tool for appropriate processing (milling or turning).

Note: Currently, the tool number indicated in the NC text is not taken into account when selecting from the list of project or library tools. Due to the above feature, only the NC text in which the processing is carried out by one tool can be assigned as a job assignment for each such operation.

G-code based operation demo video


See also:

Job assignment for G-code based operation, G-code based lathe operation

Keyboard shortcuts for working with NC text

Creating your own interpreter