Tasks
Create a task to schedule when programs execute. Schedule a task to run continuously,
periodically, or when triggered by a specific event. A program executes a set of
instructions in a project. Create tasks from the
Execution
explorer,
by either right-clicking on the controller or Tasks
folder and
selecting New Task
.Creating a task varies by task type. Task types include:
- Continuous. A continuous task runs continuously in the background through all assigned programs. CPU times not allocated to other operations scan the assigned programs. After the continuous task scans a program, an output update triggers and the task scans the next program.
- Periodic. Periodic tasks perform a function at a specific rate. Multiple periodic tasks may exist where each task is operates at independent rates.
- Event. Event tasks perform a specific function that is triggered by a specified event.
Create up to 1000 tasks.
FactoryTalk Design Studio Copilot and tasks
When creating a controller,
FactoryTalk Design Studio®
creates a DefaultTask periodic task with these parameters- 250 ms Period
- Priority 10
- 500 ms Watchdog
- Inhibit task
- Disable automatic output processing to reduce task overhead OFF.
Use these
FactoryTalk Design Studio
Copilot prompts with tasks.- Create a taskPrompt: Create a task Task_001 in CLX_001. (This prompt creates a periodic task. You can specify the type of task to create by using the prompt: Create task Task_001 in CLX_001 as a [type] task).FactoryTalk Design Studio Copilot response: Task_001 in CLX_001 updated from 250 ms to 240 ms.
- Update a taskPrompt: In Task_001 in CLX_001, update the period from 250 ms to 240 ms.FactoryTalk Design Studio Copilot response: Task_001 in CLX_001 updated from 250 ms to 240 ms.
- Delete a taskPrompt: Delete Task_001 in CLX_001.FactoryTalk Design Studio Copilot response: If no programs are in the task that you are deleting, the task deletes. If there is at least one program in this task,FactoryTalk Design Studioinforms you that any programs become unscheduled.
- Provide guidance on creating a taskPrompt: How do I create a task in CLX_001?FactoryTalk Design Studio Copilot response: Instructions on how to manually create tasks and examples.
Find information about
FactoryTalk Design Studio
Copilot prompts for:Provide Feedback