- Create a "Standard project" and select CODESYS Control Win V3 as the device.
- Define the target system by means of the Network scan.
- Open the Library Manager and add the following library:
- Insert a visualization in the device tree.
Then the Visualization Manager is inserted with the visu types TargetVisu and WebVisu.
Delete both of these are add a RemoteTargetvisualization. Then assign the Visualization to it as the start page.
In addition, a VISU_TASK is also created automatically.
- Create a new FB named FB_Iteration and implement the VU.IVisualizationClientIteration interface.
The following methods are created automatically with the FB:
Adapt the FB_Iteration function block as follows:
Adapt the HandleClient method as follows:
Adapt the POU PLC_PRG as follows:
- Load the project to the controller and start it.
Open the targetvisuremote.cfg file and add the following entries to the CmpVisuHandlerRemote section:
After the remote target visu is started, the specified name is shown in the project: