Configuration in TwinCAT

The following steps are required for a new CNC task:

  1. Determine the available CPU cores
  2. Create a new CNC task
  3. Set the properties of the new CNC task
  4. Generate the context for the new CNC task
  5. Link the new CNC task to the context

Determine the available CPU cores

Before splitting tasks, the available cores on the current CPU must be determined. This is achieved using the "Real-time" and "Read from target system" tabs. The cores can be set to isolated / non-isolated. These cores can then be assigned to the tasks.

Determining the available CPU cores
Determining the available CPU cores

Notice

notice

If you specify the available cores incorrectly, TwinCAT may not start properly.

Generate another GEO task for interpolation

By default, a CNC GEO task is created for the CNC. Synchronous tasks must be created to be able to create the interpolation of individual CNC channels on different GEO tasks.

The following sequence describes the procedure:

Generating a new GEO task
Generating a new GEO task
Create a GEO task with name
Create a GEO task with name

The priority, cycle time and port must be modified or checked for each new GEO TASK created.

Settings of task priorities
Settings of task priorities

For the port number it is recommended to use the next number after the port numbers of the existing CNC tasks.

Each GEO task requires a unique priority, whereby the priority of a new task created can be based on the priority of the existing GEO task.

All GEO tasks should be ranked higher in priority than SDA or COM tasks.

Notice

notice

The cycle times of all GEO tasks must have the same setting.

Creating the context between CPU core and the new CNC task

Create context for new GEO task
Create context for new GEO task
Assign the new GEO task to the context created
Assign the new GEO task to the context created
Assign the interpolator of channel 2 to the new context
Assign the interpolator of channel 2 to the new context

Example

example

Configuration of 10 channels (CNC GEO task) on 10 CPU cores