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.


  • Insert an Alarm configuration in the device tree.

    Here, the Error, Info and Warning alarm classes are created automatically, as well as the AlarmStorage object. In addition, another AlarmManagerTask is created.




    Moreover, the AlarmManager library is added to the Library Manager:



  • dfhsdh

  • Edit the PLC_PRG POU as follows:


    Section


    Column
    width7

    Declaration


    Column
    width93


    Code Block
    themeConfluence
    VAR
        xDemoAlarm  : BOOL;
        sDateFormat : STRING := 'dd.MM.yyyy';
        sTimeFormat : STRING := 'HH:mm:ss';
    END_VAR






    Section


    Column
    width7

    Implementation


    Column
    width93


    Code Block
    themeConfluence
    AlarmManager.g_sDateFormat := sDateFormat;
    AlarmManager.g_sTimeFormat := sTimeFormat;











  • Insert a visualization in the device tree.
    Then the Visualization Manager is inserted automatically with the TargetVisu and WebVisu visualization types.
    In addition, another VISU_TASK is created.


    Image Added


  • In the Visualization, set an element of type Alarm Table and configure the element as follows:

    Image Added

    Image Added


  • fgjdfh


  • cvbd



  • dbdsfg




  • ffhgsgsdfhfdh
    fdhdshf
    fgjdfh
  • dfhdsf