Configuring and Starting Display Variants

You can execute the visualization created in CODESYS as a display variant. You can execute just one or also several display variants at the same time. The content of the visualization is thereby always the same in all variants, even if several variants are executed at the same time. If CODESYS is opened in addition, the same content of visualization is also displayed in the visualization editor at runtime (with the same content).

For the configuration of each display variant of your visualization, you use an corresponding object under the visualization manager. If no object is inserted under the visualization manager, the visualization is automatically displayed as an integrated visualization when the application is started.

The following object types are available to you:

  • WebVisu

You can execute a display as CODESYS TargetVisu, but you can also execute your visualization any number of times as CODESYS Web Visualization and thus also insert any number of objects with the object type WebVisu.

As soon as an object exists under the visualization manager, the visualization task VISU_TASK is automatically inserted under the task configuration. The task is automatically deleted if no more objects exist under the visualization manager or if the objects under it are excluded from compilation. You can configure an individual object accordingly in its dialog Properties on the tab Compile.

See also

Exception handling at runtime

If an error or an exception occurs in a visualization at runtime, the execution of the visualization is stopped without stopping the execution of the application. An error screen appears informing you of this. In addition, the error screen (usually) enables you to restart the visualization. This exception handling takes place from visualization profile CODESYS V3\.5 SP7, compiler version 3.5.7.0 and a runtime system from version 3.5.7.0.

Select the command Stop execution at handled exceptions in order to investigate the cause of the occurrence of exceptions and the error position.

See also

Identifying display variants

In order to programmatically identify a display variant, the VisuFbClientTagDataHelper library module from the VisuElemBase library is available to you. The library itself is referenced in VisuElems. The library module is typically called with VisuElems.VisuFbClientTagDataHelper.

Further information on this library module can be found in its documentation in the library manager.

See also