'Tasks and Events' Editor (PLCnext)
The following information refers to a specific, typical device type. Your screen may differ.
This help topic describes the 'Tasks and Events' editor of the 'PLCnext' PLANT node. The editor is used for creating and configuring the tasks to be executed by the various controller cores including all task properties (task type, cycle time etc.). Furthermore, the editor allows the instantiation of program POUs. For that purpose, open the drop-down list in the column 'Program type' and select the desired program in the list.
By selecting the program from the list box, you can instantiate IEC 61131-3 programs as well as non-IEC 61131-3 programs.
Further Info
The steps to be done in the 'Tasks and Events' editor are described in the help chapter "Task Configuration" |
This topic contains the following sections:
Toolbar of the editor
Description of the task editor table
The 'Tasks and Events' editor contains a hierarchically structured table where tasks and events can be specified and program instances can be assigned.
Entries in the table can be expanded and collapsed by clicking the appropriate icons and
Column | Description | |
---|---|---|
Name | Name of the table entry. Depending on the hierarchical position, this can be:
|
|
Component name | Displays the name of the PLCnext component. | |
Task type | The task type specifies the condition which starts the execution of the task.The available types can be selected from a drop-down list. Refer to the topic "Task/Event Properties and Types" for details on the available task types. |
|
Event Name | Event that triggers the execution of the task. Only available for Event Tasks. The task is started as soon as the selected event occurs. The selection list provides all predefined user events and system events.User events are defined by the user in a C++ program. For a description of the available system events refer to the topic "System Event Tasks". | |
Program Type | Program that is assigned to the task (type of the instance).Left-clicking into the field opens the Role Picker. The tree on the left shows the structure of the program POUs as organized in the 'Programs' folder (COMPONENTS area). On the right, the available program POUs are provided for selection. | |
Interval (ms) | Time interval in ms in which the cyclic task is executed (integer or floating point value). Only available for cyclic tasks.The time value should be a multiple of the timer resolution of the target device.
|
|
Priority | Priority for calling the task (number between 0 and 15). 0 is the highest and 15 the lowest priority. The task with the highest priority is called first. | |
Threshold (ms) | Execution time threshold value in milliseconds. This value supports you in monitoring the application: If a value > 0 is specified and the task execution lasts longer than this threshold, the value of the EXEC_TIME_THRESHOLD_CNT variable (contained in the TASK_INFOS system variable) is incremented. Both the set threshold value and the threshold exceeded counter can be read out from the TASK_INFOS system variable which is contained in the ESM_DATA system variable (data structure) for monitoring purposes:
|
|
Watchdog (ms) | Maximum time a task is allowed to run for one cycle (call). If the watchdog time exceeds, a watchdog error is generated and the CPU goes into STOP state. This way, the watchdog monitors the execution and completion of a task within the defined time. The watchdog is executed during each system cycle.For cyclic tasks, the watchdog time normally should be shorter than the system cycle time.The valid value range depends on the target. Please refer to the PLCnext Info Center and the device manual for minimum and maximum watchdog settings.
|
|
Comment | Comment for the core, task or program instance. |