CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Alarm Tables
https://forum.codesys.com/viewtopic.php?f=11&t=5454
Page 1 of 1

Author:  opa177 [ Tue Oct 08, 2013 8:37 pm ]
Post subject:  Alarm Tables

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.

Author:  opa177 [ Thu Oct 10, 2013 8:45 pm ]
Post subject:  Re: Alarm Tables

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?

Author:  opa177 [ Fri Oct 11, 2013 7:24 am ]
Post subject:  Re: Alarm Tables

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>"
</logoptions>
<entries>
Timestamp, CmpId, ClassId, ErrorId, InfoId, InfoText
</entries>

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

Author:  TimvH [ Fri Oct 11, 2013 3:52 pm ]
Post subject:  Re: Alarm Tables

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.

Author:  opa177 [ Sun Oct 13, 2013 5:11 pm ]
Post subject:  Re: Alarm Tables

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?

Author:  opa177 [ Mon Oct 14, 2013 8:09 am ]
Post subject:  Re: Alarm Tables

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

Author:  PeterSar [ Wed Jul 08, 2015 10:02 am ]
Post subject:  Re: Alarm Tables

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.

Author:  freedumz [ Fri Apr 21, 2017 8:52 am ]
Post subject:  Re: Alarm Tables

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

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/