My own function in events list

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
n_lev
Posts:73
Joined: Tue May 28, 2013 2:24 am

My own function in events list

Post by n_lev »

Hi!

I have an integer value that can be 0, 1, 2 or 3. This value is configured for archiving. Event list correctly displays every change of the value. So far so good.
In reality 0 means "pos1", 1 means "pos2", etc. I would like my event list to actually display these text values rather than integer numbers (they are hard for operator to remember). I have simple function that converts the integers to the text.

I've tried to create a new column but it seems like I can't use my function, I can only use a predefined WiniCC OA functions from the drop-down list on the columns configuration dialogue. So, the question is, can I add a column with my own text values in it? I found something under Help->System Management->Diagnostics->Alert and Event Panel->Example of how to add a user-defined column but this seams overly complicated for such a simple function. Is there a better stock-standard way?

n_lev
Posts:73
Joined: Tue May 28, 2013 2:24 am

Re: My own function in events list

Post by n_lev »

After some poking around we found that if you add "_alert_hdl" to the archived integer value and add ranges with texts (even with alert disabling) then those texts will be shown under Contents column of the event list when value changes. Is that a proper way of achieving this integer-to-text conversion? Those text values seem to be stored in the "_offline.._text". Does that parameter actually get stored in the historical DB? Will it be stored in Oracle DB?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: My own function in events list

Post by leoknipp »

Hello,

the information for the _alert_hdl.._text is not stored in the value-archives/historical DB and also not in the Oracle-database. This information is related to the _alert_hdl-config and in the value-archives only information concerning values is saved.

As the _alert_hdl-textes are only part of the configuration this information is stored in the configuration history, this is a part of the RAIMA-database.
The information will be lost when the configuration history is initialized.

Please note that the maximum size of the configuration history is limited. Every change of the configuration for the configs _alert_hdl and _alert_class is saved in the configuration history.
This can be avoided when using dpSetTimed() with null time to modify the configs.
If this function is used you will not get the corresponding values in the AEScreen when reading historical values if the _alert_hdl-textes have been changed during runtime of the project.

If the values for the _alert_hdl-textes are static (defined once) or changed with a dpSet() you will get the correct values in the AEScreen.

Best Regards
Leopold Knipp
Senior Support Specialist

3 posts • Page 1 of 1