Is there a way to Connect Visualization to a web that the buttons can be used using a mobile phone?

hamalaw
2021-02-25
2021-04-22
  • hamalaw - 2021-02-25

    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?

     
  • i-campbell

    i-campbell - 2021-02-25

    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
    • hamalaw - 2021-02-26

      We don't have a PLC its only on the program, will there be a way to do that?

       
  • eschwellinger

    eschwellinger - 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
    • hamalaw - 2021-02-27

      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

       
      • i-campbell

        i-campbell - 2021-02-27

        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.

         
        • hamalaw - 2021-02-27

          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

           
  • eschwellinger

    eschwellinger - 2021-02-27

    hm... should work please check if it works by executing:
    localhost:8080/webvisu.htm
    in the browser

     
  • eschwellinger

    eschwellinger - 2021-02-28

    write to CODESYS store - my question bug report - to check

     
  • cedric89 - 2021-04-22

    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

     

Log in to post a comment.