You can declare an interface for parameters for a visualization that is to be referenced. The actual parameters are passed to the interface (similar as in the case of a function block) when the visualization is called at runtime.
First of all, declare the interface variables in the visualization interface editor. Then configure the parameters that are transferred to the interface by assigning a data-type-compliant application variable to each interface variable. The assignment is configured in the “References” property in the case of a “Frame” or “Tabs” element.
Depending on the display variant, the parameter transfer of local variables (with
the VAR
scope) is limited.
If you execute the visualization as an integrated visualization, you can only transfer local variables having a basic data type as parameters. If the visualization is called as CODESYS TargetVisu or CODESYS WebVisu, then you can also transfer parameters with a user-defined data type.
-
User-controlled update of the transfer parameters
-
Calling visualization with interface (VAR_IN_OUT)
-
Printing the instance name of a transfer parameter