Hello, i have a question :
I have 5 Raspberry Pi MC with same code and Same visualisation, just different actuators. They are all in the same Ethernet network. I have only one big touchscreen to monitor. How can i make Web visualisation so that i can access all 5 of them...better one at a time?
I am thinking of 5 tabs automated opening and with a button and a script to browse through 5 Tabs.
I am sure there is a better way...please suggest.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The one big touch screen, is that also a PLC/HMI or is it a computer with a browser? Are you fine with running more software on the PC? It sounds like you designed web visualizations for each Pi that you would like to use though, correct?
If you don't want more running on the computer...You could always have... another RasPi that collects information from each of the others and uses it to generate web visualizations that contain all of the relevant information. That could be through Codesys or through other software like NodeRed. On Codesys one of the numerous ways to do that is through the Data Source manager. A modbus TCP/IP server/slave setup could also work and I might recommend that over the Data Source manager.
If you are fine with software on the computer. You could use one of a number of software packages to collect and display status information. An example of that would be Ignition but that costs. Grafana might be able to do what you want with some work and does have a free offline tier. Node Red on the computer could also do this.
Like dkugler says you could do something with the web browser element. Then just design visualizations specific to that and set things up such that the web visu's from any 1 Pi can display the relevent visualizations from the other Pi's.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have tried today with dkugler Idea and result seems to be ok but not yet tested to full extents (as we say in germany, noch nicht ausgiebig getestet!!).
I do have a fallout QUESTION now. ;)
I would like to share my modus-operandi and some infos
info:- My Visualisation has fixed scaling - 1920x1080. i used fixed to avoid any hassles -> as i also use Touch Recognition (from example multi-touch)
Actually what i did is adding another Visualisation and adding a webbrowser Control(size 1330x750) to it (dkugler idea).
Now i can see the other Raspberry Pi Visu. but scaling was problem as
Then i inserted another webVisu lets say it WebVisu2 and sized it Isotropisch with fixed value 1330x750.
My Question is can we change scaling informations programmatically seomething like
webvisu2.ClientScaling.length = xxx
webvisu2.ClientScaling.width = xxy
webvisu2.ClientScalingTyp = Anisoptropic
Regards and Thanks a lot for all feeds!
Last edit: Tyro 2021-04-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
little trick with scaling problems at auto detected screen sizes: Place a small object, a line or circle or bitmap with only 1 or 2 pixel hight/length in the lower right corner of the visualizations, which will be shown in the web browser element. I remember a similar problem in my beginnings with Codesys visu 6 years ago. So till that time, I always place a quit or home button in the lower right corner in my visualizations :-)
Second hint: right click the visualization an enter properties/Visualization tab. There you can fix every visualization separately to a fixed size.
Good luck!
David
Hello, i have a question :
I have 5 Raspberry Pi MC with same code and Same visualisation, just different actuators. They are all in the same Ethernet network. I have only one big touchscreen to monitor. How can i make Web visualisation so that i can access all 5 of them...better one at a time?
I am thinking of 5 tabs automated opening and with a button and a script to browse through 5 Tabs.
I am sure there is a better way...please suggest.
Thanks
maybe you can use the Visu Element "Web Browser" and switch the URL to the selected Pi. Declare a string variable and write the ULRs in this string, depending of the pressed tab switch: https://help.codesys.com/webapp/_visu_elem_webbrowser;product=core_visualization;version=3.5.16.0
Last edit: dkugler 2021-04-12
Maybe something like https://forge.codesys.com/u/marci4/wvdetection/wiki/Home/ is what you are looking for
Thanks a lot for your feedback!
@dkugler, i think then i am bound to one PLC.
@m.prestel, is it possible to have an implementation?
Regards
Baldeep
Please check out the project.
The one big touch screen, is that also a PLC/HMI or is it a computer with a browser? Are you fine with running more software on the PC? It sounds like you designed web visualizations for each Pi that you would like to use though, correct?
If you don't want more running on the computer...You could always have... another RasPi that collects information from each of the others and uses it to generate web visualizations that contain all of the relevant information. That could be through Codesys or through other software like NodeRed. On Codesys one of the numerous ways to do that is through the Data Source manager. A modbus TCP/IP server/slave setup could also work and I might recommend that over the Data Source manager.
If you are fine with software on the computer. You could use one of a number of software packages to collect and display status information. An example of that would be Ignition but that costs. Grafana might be able to do what you want with some work and does have a free offline tier. Node Red on the computer could also do this.
Like dkugler says you could do something with the web browser element. Then just design visualizations specific to that and set things up such that the web visu's from any 1 Pi can display the relevent visualizations from the other Pi's.
i have tried today with dkugler Idea and result seems to be ok but not yet tested to full extents (as we say in germany, noch nicht ausgiebig getestet!!).
I do have a fallout QUESTION now. ;)
I would like to share my modus-operandi and some infos
info:- My Visualisation has fixed scaling - 1920x1080. i used fixed to avoid any hassles -> as i also use Touch Recognition (from example multi-touch)
Then i inserted another webVisu lets say it WebVisu2 and sized it Isotropisch with fixed value 1330x750.
My Question is can we change scaling informations programmatically seomething like
webvisu2.ClientScaling.length = xxx
webvisu2.ClientScaling.width = xxy
webvisu2.ClientScalingTyp = Anisoptropic
Regards and Thanks a lot for all feeds!
Last edit: Tyro 2021-04-15
little trick with scaling problems at auto detected screen sizes: Place a small object, a line or circle or bitmap with only 1 or 2 pixel hight/length in the lower right corner of the visualizations, which will be shown in the web browser element. I remember a similar problem in my beginnings with Codesys visu 6 years ago. So till that time, I always place a quit or home button in the lower right corner in my visualizations :-)
Second hint: right click the visualization an enter properties/Visualization tab. There you can fix every visualization separately to a fixed size.
Good luck!
David
Last edit: dkugler 2021-04-15
Visu size is the correct way to do it for a visu.
Webvisu Object also has the possibility to set a client size