The easiest way should be to leverage the Web Browser element under Special Controls under the Visualization Toolbox. From there, fill in the URL data (http://x.x.x.x:8080/webvisu.htm) and a boolean for Show and that should be it. You should see the other PLC's visualization inside the current PLC's visualization.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've found network variables to not be great for elements that you interact with. However what has worked great is setting up a data source manager on the remote plc and adding the source PLC applciation as a datasource under the manager. However unfortunately unless your PLC supports it you can not load a symbol configuration and I must have the source PLC either live and connected or simulated to load a list of variables.
If you can't use Codesys HMI for some reason. Codesys HMI works similarly but you can load a symbol configuration which makes it nicer to work with.
Last edit: Morberis 2020-09-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a project with two identical PLCs, and I would like to display data from PLC2 in a web visualization on PLC1. Is this possible?
The easiest way should be to leverage the Web Browser element under Special Controls under the Visualization Toolbox. From there, fill in the URL data (http://x.x.x.x:8080/webvisu.htm) and a boolean for Show and that should be it. You should see the other PLC's visualization inside the current PLC's visualization.
Hi,
One idea : You can use "network variables" to share data between the two PLC and display data from PLC2 by web visualization on PLC1.
See here : https://help.codesys.com/webapp/_cds_f_networkvariables;product=codesys;version=3.5.16.0
Another idea : Use "Remote TargetVisu", see here : https://help.codesys.com/webapp/_visu_execute_remote_target_visu;product=core_visualization;version=3.5.16.0
BR
I think you should take a look at the CODESYS HMI.
It is designed to read values of multiple plcs and display them in one visualization.
Best regards,
Marcel
I've found network variables to not be great for elements that you interact with. However what has worked great is setting up a data source manager on the remote plc and adding the source PLC applciation as a datasource under the manager. However unfortunately unless your PLC supports it you can not load a symbol configuration and I must have the source PLC either live and connected or simulated to load a list of variables.
If you can't use Codesys HMI for some reason. Codesys HMI works similarly but you can load a symbol configuration which makes it nicer to work with.
Last edit: Morberis 2020-09-23
Very good information, thanks!