Alarm Tables

opa177
2013-10-08
2017-04-21
  • opa177 - 2013-10-08

    I would like to know to make a history of alarms. I can only watch current state of alarm. Something like this:
    Time Message Value
    16:30 event True
    16:45 event True
    16:50 event True

    I can only see the last one(at 16:50) in the table.

     
  • opa177 - 2013-10-10

    What is historic type of alarm table? I don't see any difference between this and normal one. Is there any posibility to save alarms? Maybe storage option? What are your experience with that? Is it working?

     
  • opa177 - 2013-10-11

    I just get a stdlogger.csv file on my PLC but the folder where it has to put alarm storage is empty. I got the next error in stdlogger.csv file:

    <loggername>StdLogger</loggername>
    <logoptions>
    " <enable>1</enable>"
    " <type>normal</type>"
    " <timestamp>rtc</timestamp>"
    " <deactivatable>0</deactivatable>"
    " <dump>always</dump>"
    " <filter>0x0000001f<filter>"
    " <maxentries>1000</maxentries>"
    " <maxfiles>3</maxfiles>"
    " <maxfilesize>5000</maxfilesize>"
    </filter></filter></logoptions>
    <entries>
    Timestamp, CmpId, ClassId, ErrorId, InfoId, InfoText
    </entries>

    1381322668, 0x00001012, 4, 0, 0, Database Error in method WriteToStorage: Error code = 30437, Action = 1030
    ...........

     
  • TimvH

    TimvH - 2013-10-11

    In a Control Win V3.5.3.60 application it works.
    Some tips:
    - create a button which can toggle a boolean variable. Connect this variable to the Alarm List to toggle between realtime / historical.
    - Don't forget to set check the option "Archiving" in the Alarm Class (top left in Alarm Class configuration)
    - Add the Alarm Storage object to the alarm manager.
    - Set the correct Subdirectory (I don't know what this should be on your device)

    If it doesn't work I advise you to contact your PLC vendor.

     
  • opa177 - 2013-10-13

    I'm using codesys 3.5.2.0. So that might be the problem if this version doesn't support history in alarm tables? I've set all the options you mentioned, but i'm not sure about the right directory. There might be the problem if i'm not saving a storage file to the correct folder on my PLC?

     
  • opa177 - 2013-10-14

    It works now. It seems there was a problem with the compiler version. I updated it to 3.5.2.10.

     
  • PeterSar - 2015-07-08

    Hello,

    I know that your subject is old but do you remember what kind of subdirectory I have to put in the AlarmStorage please ?

    My thanks in advance.

     
  • freedumz - 2017-04-21

    I know this topic is old but I've exactly the same probleme
    with the message: Database Error in method WriteToStorage: Error code = 30437, Action = 1030

    So if someone has other idea

    Many thanks in advance

     

Log in to post a comment.