Executing as CODESYS TargetVisu¶
You can execute a visualization as CODESYS TargetVisu.
The requirement is that the runtime system contains the CODESYS TargetVisu component on the target system. Controller and visualization are then together on one device and the visualization can be displayed and used on an integrated or connected display. Visualization code is then additionally loaded to the target system on loading the application.
You can start a visualization as TargetVisu on the target system without the development system running. The memory consumption on the target system is thereby considerably reduced. This can be useful for small target systems. If the development system is additionally running, the visualization is also displayed there in execution in the visualization editor. The two display variants are identical.
See also
Supported image formats
TIF
Requirement: CODESYS Control Win V3 supports SysGraphicGDIPlus (standard on Windows platforms)
BMP
JPG
EMF
GIF
PNG
Note
From version 3.5.1.0
the size of JPG graphics of the TargetVisu can be configured in the PLC.
The size with Windows and Windows CE devices was previously limited to 1024 \* 768 \* 3
bytes, i.e. approx. 2.3 MB.
CODESYS TargetVisu Embedded
The runtime system on the target system is extended by the component CODESYS TargetVisu Embedded. It contains no graphic libraries and is thus useful for smaller systems.
Configuring and starting display variants
Select the object Visualization manager and select the command Add object.
Select the object TargetVisu and enter the name
TargetVisu_A
.- ⇒
There is a new object in the device tree underneath the object Visualization Manager. The associated editor opens.
The visualization task
VISU_TASK
is automatically added under the task configuration.
Select the visualization
visMain
in the Start Visualization.Click on Show used visualizations and check whether the selected visualization is activated for a download to the associated device.
- ⇒
The visualization is configured. The settings under Scaling options determine the window size and the scaling.
Start a suitable runtime system with the runtime system component CODESYS TargetVisu.
Configure the communication settings for your system.
- ⇒
The runtime system runs.
Compile, load and start the application.
- ⇒
The application runs. The visualization starts automatically as CODESYS TargetVisu. It displays the visualization data and allows user inputs.
See also
Start or stop the TargetVisu in the Windows command line
Compile, load and start the application.
- ⇒
The application
appTest
starts. In addition, the visualization starts as CODESYS TargetVisu. It displays the visualization data and allows user inputs.
On the development system, execute the command line command
VisualClientController.exe --application=appTest --flags=2
. It is located in the CODESYS installation directory under..\\GatewayPLC
\ .- ⇒
The visualization stops. The application is still in
run
.
Execute the command line command
VisualClientController.exe --application=appTest --flags=1
.- ⇒
The visualization restarts.