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 Network scan.

    Image Added
  • Edit the PLC_PRG POU as follows:



    Section


    Column
    width7

    Declaration


    Column
    width93


    Code Block
    themeConfluence
    VAR
        udiCnt : UDINT;
    END_VAR






    Section


    Column
    width7

    Implementation


    Column
    width93


    Code Block
    themeConfluence
    // Nothing to implement











  • Create a new POU IsWebVisu (type: function).
    The return value is type BOOL and the implementation language is ST.

    Image Added

  • Edit the IsWebVisu POU as follows:



    Section


    Column
    width7

    Declaration


    Column
    width93


    Code Block
    themeConfluence
    VAR
        pClientData : POINTER TO VisuElems.VisuStructClientData;
    END_VAR






    Section


    Column
    width7

    Implementation


    Column
    width93


    Code Block
    themeConfluence
    IsWebVisu := TRUE;
    pClientData := VisuElems.CurrentVisuClient;
    
    IF pClientData <> 0 THEN
        IsWebVisu := pClientData^.GlobalData.ClientType = VisuElems.VisuElemBase.Visu_ClientType.WebVisualization;
    END_IF









  • Insert a visualization in the device tree.