Alerts
How to display the current alarm color on a symbol?
For displaying the alarm color on a symbol you don't have to connect to the value of a DPE and calculate a color which will then be displayed.
The smart wayto do this instead with WinCC OA is to connect to the
config attribute _alert_hdl.._act_state_color
using the dpConnect() function. In the work
function the foreCol
and/or backCol
of the symbol
is set.
The attribute _alert_hdl.._act_state_color
already gives the current
alarm color of the DPE, so there is no need for redundant calculations.
How do I translate/change the text “CAME” and “WENT” in the AEScreen?
The texts for the alert direction are defined in the message catalogue sc.cat, the keywords are “entered” for the CAME text and “left” for the WENT text.
If you want to translate or change the texts which are shown in the AEScreen for the alert direction, you have to perform the following steps:
- Copy the file sc.cat into the language-dependent msg directory in your WinCC OA project. This file is available with the texts in German, English and Russian.
- Open the file with a text-editor
- Change the texts for the keywords “entered” and “left”
If you want to translate the texts in the message catalog, you can use the Translator tool. You can find detailed information on this in the online help:
How many bytes are needed on the hard disc to save a value or alarm?
This table shows the bytes necessary to store an alarm or a value in the different types of archiving in WinCC OA:
Type of archiving | Alarm | Value |
NGA InfluxDB | 114 | 15 |
NGA PostgreSQL | 366 | 84 |
NGA MS SQL | 196 | 104 |
HDB/RAIMA(Value Archives) | 400 | 57 |
RDB(Oracle) | 713 | 84 |
How do I open alarm and event screen (AEScreen) with a specific configuration
You can use the following example to open the AES in a specific configuration in which no further interaction is required on the part of the operator.
In this example, the AES is opened with the (predefined) configuration "myAEScreen".
- Create your own screen configuration (System management -> settings -> A&E - Row/Screen) e.g. myAEScreen with new alarm screen property myAlarmsand event screen property myEvents
- 2) Start the alarm screen with the following command. The list of parameters is
described in the WinCC OA Documentation.
In the example the parameters are:
Configuration = myAEScreen
Module name = WinCC_OA-AES
Action = AES_ACTION_AUTORUN
- Open AEScreen with the myAEScreen configuration in the
WinCC_OA-AES module and execute the queries of the two tables
openAES("myAEScreen", "WinCC_OA-AES", AES_ACTION_AUTORUN);
How to get an alert when a value archive is not running
Normally the connection state for a process is noticed at the elements for the _Conn-datapoints (DP-type _ManagerConnections). The configuration for these connections can be made in the SystemOverview panel.
For the connection between the data manager and the archive manager, this will not work properly when the complete project is restarted. During start-up, the archive managers are started before the event-manager, therefore the datapoint elements are not set correctly.
If you want to get an alert when the process for the value archive is not running, you
have to configure an alert handling for the element
_ValueArchive_X(_2).state
. X has to be substituted with the archive number,
the datapoints with the postfix “_2” are used for the second server in a redundant
system.
The datapoint element can have three different values
0 = archive is not running
1 = archive is running
3 = archive is not used