CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sat Jun 24, 2017 7:51 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Alarm Tables
PostPosted: Tue Oct 08, 2013 8:37 pm 
Offline

Joined: Sun Oct 06, 2013 6:10 pm
Posts: 18
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.


Top
   
 Post subject: Re: Alarm Tables
PostPosted: Thu Oct 10, 2013 8:45 pm 
Offline

Joined: Sun Oct 06, 2013 6:10 pm
Posts: 18
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?


Top
   
 Post subject: Re: Alarm Tables
PostPosted: Fri Oct 11, 2013 7:24 am 
Offline

Joined: Sun Oct 06, 2013 6:10 pm
Posts: 18
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
...........


Top
   
 Post subject: Re: Alarm Tables
PostPosted: Fri Oct 11, 2013 3:52 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 399
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.


Top
   
 Post subject: Re: Alarm Tables
PostPosted: Sun Oct 13, 2013 5:11 pm 
Offline

Joined: Sun Oct 06, 2013 6:10 pm
Posts: 18
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?


Top
   
 Post subject: Re: Alarm Tables
PostPosted: Mon Oct 14, 2013 8:09 am 
Offline

Joined: Sun Oct 06, 2013 6:10 pm
Posts: 18
It works now. It seems there was a problem with the compiler version. I updated it to 3.5.2.10.


Top
   
 Post subject: Re: Alarm Tables
PostPosted: Wed Jul 08, 2015 10:02 am 
Offline

Joined: Thu Apr 09, 2015 10:30 am
Posts: 1
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.


Top
   
 Post subject: Re: Alarm Tables
PostPosted: Fri Apr 21, 2017 8:52 am 
Offline

Joined: Wed May 04, 2016 2:43 pm
Posts: 17
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: jzhvymetal, ndzied1 and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited