Hello
We have chosen Codesys V3.5 for Modeling a Smart home, we have done everything and the visualization works as we want it to, we were wondering if we can connect the buttons of the simulation to a server that we can instead control the simulation from a mobile phone and not only the computer?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi hamalaw,
This is exactly this feature of the Automation Server: https://help.codesys.com/webapp/_cas_display_web_visualization;product=codesys_automation_server;version=1.15.0.0
When you say 'simulation', do you mean only that you are simulating a home? Or do you mean that you are using simulation mode?
For web visualization your 'simulation' must be running in a PLC, even if it is the Control Win V3 which installs with the CODESYS Development System. Simulation Mode just runs in the IDE and has no connection to anything outside the IDE.
Last edit: i-campbell 2021-02-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hamalaw, if you use the simulation mode (Menu >> Online >> Simulation) then it will not work.
Instead, you can use the SoftPLC which you installed when you installed the IDE. In your project, use the PLC CODESYS Control Win V3 (or CODESYS Control Win V3 x64). Then start the softPLC from the system tray.
This is actually a full featured PLC.
Now you can follow eschweillinger's instructions from above.
Thanks, I Followed every Instruction but i it says no visualization is available even though the project has 2 visualization files
is there a way to fix this?
and this is how device tab looks
hm.. is there really a webvisu in your project and the application deployed via server?
if you call localhost:8080/webvisu.htm does it show the webvisu from your pc?
Last edit: eschwellinger 2021-02-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I made this video so that you can understand what I want to explain https://www.youtube.com/watch?v=VoLPB93xWDg&ab_channel=MuhammedAbdulkhalq
as you can see there is no web visualization
and everything is in the way it should be I guess
help
looking forward to hear from you
and sorry i dont know what you mean by calling localhost:8080/webvisu.htm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is a big red banner at 0:07 in your video which says simulation. (Towards the middle bottom of screen)
Please turn off simulation at Menu >> Online >> Simulation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for replying
I did turn off the Simulation mode and now i am able to access the device tab https://youtu.be/kJ-VsPeR5Lw
still it doesn't show any visualization
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
[CmpWebServer]
;The handling of startup/shutdown of the webserver:
;0->automatically start, shutdown only on shutdown of the runtime;1->automatically start, could be shutdown on demand
;2(default)->start/shutdown on demand;3->start on demand, shutdown only on shutdown of the runtime
StartupType=2
;The TCP port the webserver listens on
WebServerPortNr=8080
LocalAddress=127.0.0.1
;LocalAdapterName=LAN-Connection
;LocalAdapterNameUnicode=L\00A\00N\00-\00C\00o\00n\00n\00e\00c\00t\00i\00o\00n\00
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
We have chosen Codesys V3.5 for Modeling a Smart home, we have done everything and the visualization works as we want it to, we were wondering if we can connect the buttons of the simulation to a server that we can instead control the simulation from a mobile phone and not only the computer?
Hi hamalaw,
This is exactly this feature of the Automation Server:
https://help.codesys.com/webapp/_cas_display_web_visualization;product=codesys_automation_server;version=1.15.0.0
When you say 'simulation', do you mean only that you are simulating a home? Or do you mean that you are using simulation mode?
For web visualization your 'simulation' must be running in a PLC, even if it is the Control Win V3 which installs with the CODESYS Development System. Simulation Mode just runs in the IDE and has no connection to anything outside the IDE.
Last edit: i-campbell 2021-02-25
We don't have a PLC its only on the program, will there be a way to do that?
a good start point is:
frst steps:
https://www.youtube.com/watch?v=iiPKyyO4M00&list=PLaws15OZmd7Uu2W23zX2w424aI3TrOfHf
project & apps:
https://www.youtube.com/watch?v=huh1r-1Cl_c&list=PLaws15OZmd7Uu2W23zX2w424aI3TrOfHf&index=3
remote Gateway:
https://www.youtube.com/watch?v=8KLywg51Xyk&t=110s
Webvisu:
https://www.youtube.com/watch?v=Kyf9bCpPa6s&t=1s
you could use on your Android:
https://play.google.com/store/apps/details?id=com.codesys.webview&hl=de&gl=US
or any Browser to view the webvisu of your smart home
Last edit: eschwellinger 2021-02-26
We need a PLC to be able to do that?
we Dont have the PLC itself, we just modeled it on the program itself
/
hamalaw, if you use the simulation mode (Menu >> Online >> Simulation) then it will not work.
Instead, you can use the SoftPLC which you installed when you installed the IDE. In your project, use the PLC CODESYS Control Win V3 (or CODESYS Control Win V3 x64). Then start the softPLC from the system tray.
This is actually a full featured PLC.
Now you can follow eschweillinger's instructions from above.
Thanks, I Followed every Instruction but i it says no visualization is available even though the project has 2 visualization files
is there a way to fix this?
and this is how device tab looks
Last edit: hamalaw 2021-02-26
hm.. is there really a webvisu in your project and the application deployed via server?
if you call localhost:8080/webvisu.htm does it show the webvisu from your pc?
Last edit: eschwellinger 2021-02-26
I made this video so that you can understand what I want to explain
https://www.youtube.com/watch?v=VoLPB93xWDg&ab_channel=MuhammedAbdulkhalq
as you can see there is no web visualization
and everything is in the way it should be I guess
help
looking forward to hear from you
and sorry i dont know what you mean by calling localhost:8080/webvisu.htm
There is a big red banner at 0:07 in your video which says simulation. (Towards the middle bottom of screen)
Please turn off simulation at Menu >> Online >> Simulation.
thanks for replying
I did turn off the Simulation mode and now i am able to access the device tab
https://youtu.be/kJ-VsPeR5Lw
still it doesn't show any visualization
hm... should work please check if it works by executing:
localhost:8080/webvisu.htm
in the browser
im getting this error.
write to CODESYS store - my question bug report - to check
is the CmpWebServer activated in your runtime ?
[CmpWebServer]
;The handling of startup/shutdown of the webserver:
;0->automatically start, shutdown only on shutdown of the runtime;1->automatically start, could be shutdown on demand
;2(default)->start/shutdown on demand;3->start on demand, shutdown only on shutdown of the runtime
StartupType=2
;The TCP port the webserver listens on
WebServerPortNr=8080
LocalAddress=127.0.0.1
;LocalAdapterName=LAN-Connection
;LocalAdapterNameUnicode=L\00A\00N\00-\00C\00o\00n\00n\00e\00c\00t\00i\00o\00n\00