Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • Create a "Standard project" and select CODESYS Control Win V3 as the device.
  • Define the target system by means of the Netzwork Network scan.



  • Insert a visualization in the device tree.
    Then the Visualization Manager is inserted with the visu types TargetVisuand WebVisu.

    In addition, a Visu_Task is also created automatically.



  • Create a new POU named ClientInfo and call it from Visu_Task.

    Info

    The call of the ClientInfo POU must originate from the Visu_Task because only then is the required client handle passed.




  • Adapt the ClientInfo POU as follows:



    Section
    Column
    width7

    Declaration

    Column
    width93
    Code Block
    themeConfluence
    VAR
        pClient       :    POINTER TO VisuElems.VisuElemBase.VisuStructClientData;
        helper        :    VisuElems.VisuFbClientTagDataHelper;
        s1            :    STRING;
    END_VAR




    Section
    Column
    width7

    Implementierung

    Column
    width93
    Code Block
    themeConfluence
    VisuElems.g_ClientManager.BeginIteration();
    
    WHILE (pClient := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO
        IF pClient^.GlobalData.ClientType = VisuElems.VisuElemBase.Visu_ClientType.WebVisualization THEN
            helper(pClientData := pClient);
            s1 := helper.stIPv4;
        END_IF
    END_WHILE




...