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

Compare with Current View Page History

« Previous Version 3 Next »


  • 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:




  • Edit the PLC_PRG POU as follows:


    Declaration

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

    Implementation

    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.





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






  • fgjdfh


  • cvbd



  • dbdsfg




  • ffhgsg
  • dfhdsf


  • No labels