Skip to main content

Dialog: CNC properties

Symbol: _cds_icon_property_object.png

Function: The dialog provides parameters for the CNC Program object.

Call: View → Properties command; context menu of the object

Requirement: The CNC object is selected in the device tree.

Tip

Application-wide CNC settings are saved in the CNC Settings object.

Tab: General

Change the name of the CNC object.

Tab: Access Control

Here you specify the permissions of the user groups.

For more information, see: Properties – Access Control

Tab: Build

Activate the option to exclude the CNC object from the build. Then IEC data is not generated. However, it is possible to save the G code as an ASCII file. For reading this kind of file at runtime, you can use the function blocks from the SM3_CNC library.

For more information, see: Properties – Access Control

Tab: CNC

Implementation

  • Din66025: The motion path is defined in the CNC language DIN 66025.

  • Table: The motion path is defined by means of the parameterization of a table.

Compile mode

. Behavior on compile
  • SMC_OutQueue: An SMC_OutQueue data structure is generated on compile. You are granted global access by means of g_CNCQueueManager.

  • SMC_CNC_REF: Program variables are generated on compile. You are granted global access by means of g_CNCProgManager.

  • File: A file generated by G code is downloaded and updated at each login. The PLC can download this file by means of function blocks. The G code files are updated each time at each login to the application. This meas that the files on the PLC are overwritten at each login.

File name

Requirement: Compile mode is set to File.

Default: $ObjectName$.cnc. This default value is a placeholder which is replaced by the object name of the CNC object (effective file name) at login. Only the characters [a-zA-Z0-9$_.] are permitted in a file name. The field for the file name must not be blank or start or end with a dot. Moreover, a dot does not have to be part of the path in the file name.

Queue size [elements]

Default: 100

The size setting does not affect the size of the generated SMC_OutQueue data structure (when this mode is selected). The size of SMC_OutQueue is determined only by the number of path objects. However, the parameter sets the buffer size of the preprocessing FBs (for example, SMC_NCDecoder, SMC_RoundPath) which are used internally and define the size of the lookahead buffer.

Default values

Velocity (F) [u/s]

This value is used when the value of the velocity (in the "F" word) is not set in the CNC program. In path units per second. Value range: [0, 1e9]. Default: 0

Acceleration (E+) [u/s²]

This value is used when the value of the acceleration (in the "E" word with a positive value) is not set. In path units per second squared. Value range: ]0, 1e9].

Default: 100

Deceleration (E-) [u/s²]

This value is used when the value of the deceleration (in the "E" word with a negative value) is not set. In path units per second squared. Value range: ]0, 1e9].

Default: 100

Default values for fast forward (G0)

Velocity (FF) [u/s]

This value is used if the velocity for rapid positioning ("FF" word) is not set in the CNC program. In path units per second. Value range: [0, 1e9].

Default: 0

Acceleration (EF+) [u/s²]

This value is used if the acceleration for rapid positioning ("EF+" word with a positive value) is not set. In path units per second squared. Value range: [0, 1e9].

Default: 0

Deceleration (EF-) [u/s²]

This value is used if the deceleration for rapid positioning ("EF-" word with a negative value) is not set. In path units per second squared. Value range: [0, 1e9].

Default: 0

3D-Mode

Requirement: Implementation Din66025, translation mode CNC_REF, and OUTQueue

standard icon: 3D mode is the default value.

Offline values of variables

Variables: If offline values are defined, then the Offline Values of Variables dialog opens. In this dialog, variables are displayed which can also be edited.

Start position

Default: 0

Precision

The accuracy of the path in technical units. This value specifies the accuracy of the positions which are read from the G code. For example, if the G code is specified with 3 decimal places, then the accuracy should be set to 0.001 units. The accuracy must not be negative. This value is used, for example, by path preprocessing such as SMC_ToolRadiusCorr and SMC_AvoidLoop.