Task tab

Task tab 1:

Name

Internal name of a task

Port

Defines the AMS port number of the task. This value must be specified. For some tasks, such as PLC tasks, this value is preset.

Object Id

A task represents an object in TwinCAT. The Object Id text box contains the TwinCAT object identification number.

Auto start

Task tab 2: TwinCAT generates the start command for the task so that the task is automatically started with the specified data when TwinCAT is restarted.

Auto Priority Management

Task tab 3: The priorities are assigned automatically. Sorting is carried out based on the cycle time of the tasks. As a rule, the faster a task is, the higher its priority.

Priority

The priority valid in TwinCAT for the task

Priorities may not be assigned twice.

Cycle ticks

Refresh time of the task and any variables associated with it

The cycle time of the task is defined in ticks and thus depends on the set TwinCAT base time. The text box to the right shows the cycle time. It results from the product of cycle ticks and base time.

Start tick (modulo)

Shifting the start time of a task compared to the actual sheduling in ticks of the base time.

Separate input update

Before the task execution starts, the inputs can be refreshed. This function is to ensure that all inputs are up to date before the cyclic processing of the task is started.

Pre-ticks

Enabled if the checkbox Separate input update is checked.

Specifies how many ticks before the task starts execution the inputs are to be refreshed.

Warning by exceeding

Task tab 4: The TwinCAT system issues a message if the set task cycle time is exceeded.

Message box

Task tab 5: The warning that the set task cycle time has been exceeded is additionally output as a message box.

Watchdog Cycles

Specifies how often the cycle time may be exceeded before a warning is triggered.

Options

Disable

Disables or enables the task.

A disabled task is not taken into account when generating the I/O information. This can be useful during commissioning, for example. The created link information of the Task is preserved when disabling it.

Create symbols

Task tab 6: Variables of the task can be accessed via ADS. Create symbols means here that these variables are created as symbolic names.

Include external symbols

Task tab 7: This task is synchronized with a configured device with "Master Sync Interrupt". (e.g. a SERCOS card).

Floating point exception

Enables Floating Point Exception. Thus an exception is generated for division by zero and "Invalid Operations" (e.g. root of -1).

Watchdog stack

The task creates an object for managing nested watchdogs. This is required internally by TwinCAT Vision. This option has no influence on the "normal" watchdog function.

Comment

Comment on the task