You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

  • Create a "Standard project" and select CODESYS Control Win V3 as the device.
  • Define the target system by means of the Network scan.


  • Edit the PLC_PRG POU as follows:



    Declaration

    VAR
        udiCnt : UDINT;
    END_VAR




    Implementation

    // Nothing to implement









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



  • Edit the IsWebVisu POU as follows:



    Declaration

    VAR
        pClientData : POINTER TO VisuElems.VisuStructClientData;
    END_VAR




    Implementation

    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.
  • No labels