You can select from different variants for displaying your visualization created in CODESYS. An advantage is that you can have not only one, but multiple display variants running at the same time. During this time, the contents of the visualization are the same for all variants. This also applies to the integrated visualization: when the visualization editor is open in CODESYS, the visualization is also displayed there with the same active contents.
The following object types are available:
-
“TargetVisu”
The display as a variant of CODESYS TargetVisu is possible one time. You can insert an object of this type below the Visualization Manager.
-
“WebVisu”
The display as a variant of CODESYS WebVisu is possible any number of times. You can insert any number of objects.
-
“Remote TargetVisu”
The display as a variant of CODESYS TargetVisu is possible any number of times. You can insert any number of objects.
When you insert a variant below the Visualization Manager, the task configuration
is extended by the visualization task VISU_TASK
(the flow unit of the visualizations). The task is automatically deleted when no
more objects exist below the Visualization Manager or the objects below are excluded
from compiling. You can set this in the “Properties” dialog of an object, on the “Compile” tab.
If no object is inserted below the Visualization Manager, then the visualization created there is displayed automatically as an integrated visualization when the application starts.
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.
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