When you insert a task in the
node of the , the task editor view for setting the task configuration opens with the tab.It also opens if you double-click an available task (for example,
) in order to modify the configuration of the task.Insert the desired attributes.
Priority |
|
---|---|
|
A number from 0...31; 0 is the highest priority, 31 is the lowest The default value for new tasks is defined by your controller.
NOTE: Consider the controller-specific task settings to find the settings for your application tasks. This may be important when assigning priority to tasks dedicated to communications, and its relation to topics such as cyber security. You can increase system robustness by setting application tasks to a higher priority than communication tasks.
|
Type |
|
---|---|
The target device defines which task types are supported. Not all types are available for some target devices. Consult the Programming Guide specific to your controller for more information. |
|
|
The task will be processed cyclic according to the time definition (task cycle time) given in the field (see below). |
|
The task will be started as soon as the variable defined in the field gets a rising edge. |
|
The task will be processed as soon as the program is started and at the end of one run it will automatically be restarted in a continuous loop. There is no cycle time defined. |
|
The task will be started as soon as the system event, which is defined in the field, occurs. It depends on the target, which events will be supported and offered in the selection list. (Not to be mixed up with system events.) |
|
The task will be started if the variable defined in the field is TRUE. |
Entry |
Description |
---|---|
(for example, ) |
Obligatory for task type .The time (in milliseconds [ms]]) after which the task should be restarted. When you set the task cycle time, consider the bus system used by the application. For example, on a CAN bus system, you can set the in the tab. The task cycle time must match the transmission rate and the number of frames used on the bus. Additionally, the times set for heartbeat, nodeguarding and sync always should be a multiple of the task cycle time. Otherwise, CAN frames may go unrecognized. For further information, refer to the Device Editor part of the EcoStruxure Machine Expert online help. Deviations of the task from the configured task cycle time are displayed at runtime as periodic jitter in the tab |
|
Obligatory for type or triggered by an .A global boolean variable which will trigger the start of the task as soon as a rising edge is detected. Use button or the to get a list of all available global event variables.
NOTE: If the event that is driving a task stems from an entry, there must be at least one task which is not driven by events. Otherwise, the I/Os will never get updated and the task will never get started.
NOTE: Only internal IEC variables and values of onboard touchprobes and digital inputs (controller) are permitted. Referencing a property (including system parameter) in an event task will lead to a watchdog exception error being detected during download.
|
The specified event being TRUE fulfills the start condition of a status driven task, whereas an event driven task requires the change of the event from FALSE to TRUE. If the event changes too fast from TRUE to FALSE and back to TRUE, then this event may be left undetected and thus the
task will not be started.The following example illustrates the resulting behavior of the task in reaction to an event (green line):
At sampling points 1...4 tasks of different types show a different reaction:
Behavior at Point: |
1 |
2 |
3 |
4 |
---|---|---|---|---|
Status |
No start |
Start |
Start |
Start |
Event |
No start |
Start |
No start because the event changed too fast from TRUE to FALSE and back to TRUE |
No start |
For each task, you can configure a timeout control (watchdog).
The default watchdog settings depend on your controller.
When the
option is activated (check mark is set), the watchdog is enabled. When the task watchdog is enabled, an error is raised if the execution time of the task exceeds the defined task time limit ( ) given in the defined .The defined
is taken into account when determining when to raise an exception error. The allows you to adjust for variations in cycle times in the execution of the task. The can be defined as follows:After consecutive timeouts:
set to 0 or 1: exception in the first cycle after time expires
set to 2: exception in the second cycle after time expires
set to n: exception in the nth cycle after time expires
After a single timeout: exception if the cycle time of the present cycle is longer than (task time limit * sensitivity).
Consult the Programming Guide specific to your controller, chapter System and Task Watchdog, for information on task time, sensitivity and other possible watchdog parameters.
The POUs which are controlled by the task are listed here in a table with the POU name and an optional
. Above the table there are commands for editing:In order to define a new POU, open the
dialog box via the command . Choose 1 of the programs available in the project. You can also add POUs of type program to the list by drag and drop from the .In order to replace a program call by another 1, select the entry in the table, open the
via command and choose another program.In order to delete a call, select it in the table and use the command
.The command
opens the selected program in the corresponding editor.The sequence of the listed POU calls from top to bottom determines the sequence of execution in online mode. You can shift the selected entry within the list via the commands
and .