Not possible to clearly determine the task class of source variable

I got this warning “Not possible to clearly determine the task class of source variable “sys_as1iohealth13_xdi” using automatic detection. Please assign task class manually”

Should I choose the cyclic that the variable is in ( Cyclic #5 - [200 ms])
Or should I choose Cyclic#1 10ms?

What happens if I don’t choose any?

Hi,

You have to decide how often you need a updated value for this variables, based on your process. Most often, the fastest cycle should fit.

For my interest, I asked the conversational help:

What does the following warning mean: Please assign task class manually

Here’s the answer:

The warning “Please assign task class manually” indicates that the automatic detection mechanism in your programming environment is unable to determine the appropriate task class for certain variables or processes. This typically occurs with global variables, as the compiler cannot determine their specific usage context.

To resolve this warning, you need to manually assign the task class for the affected variables. Here are the steps to do this:

  1. Locate the Task Class Column:

    • In the IO mapping section, the task class column might be hidden. You can show it by right-clicking on the header and selecting “Columns” from the menu. Ensure that the “Task Class” column is checked to be visible.
  2. Assign the Task Class:

    • Once the task class column is visible, select the appropriate task class for each variable. You can choose from the available task classes (e.g., TaskClass#1, TaskClass#2) or set it to “Automatic” if you prefer. However, setting it manually to a specific task class will resolve the warning.
  3. Understand the Task Class:

    • Task classes determine the update cycle for the variables. For example, setting a variable to TaskClass#1 means it will be updated in the context of the first cyclic task. This ensures that the variable is refreshed at the correct interval, which is crucial for proper operation.

By following these steps, you can resolve the warning and ensure that your variables are updated correctly, maintaining the stability and performance of your system.

Further Information:

Best regards.

1 Like