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.
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=184.108.40.206
Another idea : Use "Remote TargetVisu", see here : https://help.codesys.com/webapp/_visu_execute_remote_target_visu;product=core_visualization;version=220.127.116.11
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.
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.
Very good information, thanks!
Log in to post a comment.