-

Configuration Error (PLCN0017): The program instance '...' can only be instantiated under esm '...'.

An error has been detected in the instantiation of a Matlab® multirate program. Such programs may consist of several partial programs. Each partial program must be instantiated separately. As they can be assigned to different tasks (of the same ESM) in your solution, different update cycles can be used within one model. Such programs are referred to as multirate programs.

In your project, a partial program of a multirate program has been instantiated in a different ESM than the other associated partial program. This is not allowed. Although partial programs can be instantiated in different tasks, they must be assigned to tasks belonging to the same ESM.

For more information refer to the topic "Matlab® Integration", section "Multirate programs consisting of several partial programs".

Remedy

  1. Double-click the error message to open the 'Tasks and Events' editor of the 'PLCnext' node in the PLANT. The suspected table line is marked.
  2. Move the suspected multirate program instance to a task of the ESM specified in the error message (as the other associated multirate program instances).