Adapt the FB_Iteration function block as follows:
|
Adapt the HandleClient method as follows:
|
|
Adapt the POU PLC_PRG as follows:
|
|
Open the targetvisuremote.cfg file and add the following entries to the CmpVisuHandlerRemote section:
[CmpVisuHandlerRemote]
VisuClient.Name=CodesysRemoteClient1
After the remote target visu is started, the specified name is shown in the project: