How to populate custom made alarm list?

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
Hana
Posts:6
Joined: Tue May 29, 2012 11:13 am

How to populate custom made alarm list?

Post by Hana »

Hi,
please can anyone advice me how to define Click script which will be placed on the button ("Alarms") in alarm banner (infoPanel) with following functionality:
1) open the alarm screen AEScreen in the mainPanel_1 as root screen (not popup)
2) open the custom defined configuration (aes_custom) not aes_default
3) apply custom made filter "aes_propCustom"
4) and populate the alarm screen (Running mode)

all this need to be done on one single click without need of additional scrolling or selection of filters.

The final application will be running on touch panel without mouse & keyboard so we need to get rid of all tiny objects on the screen.

Thank you !

Hana

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

Re: How to populate custom made alarm list?

Post by leoknipp »

Hello,

with the CTRl-function openAES() you can open the AEScreen with a predefined configuration.
For details please have a look at the WinCC online help: CONTROL --> Control functions --> Functions O... --> openAES().
To get detailled information for the AESCreen please have a look at System Management --> Diagnostics --> Alert and Event panel

Best Regards
Leopold Knipp
Senior Support Specialist

Hana
Posts:6
Joined: Tue May 29, 2012 11:13 am

Re: How to populate custom made alarm list?

Post by Hana »

Thank you for response.
I tried to use the CTRl-function openAES(), but it always open the Alarm screen as popup.

I later sorted the problem using different solution:
(in case anyone is interested)

I saved the standard alarm screen AEScreen in my project (with the same name and same folder structure) and I defined the button (Alarms) in our customized alarm banner (infoPanel).
Than I defined following Click script on the "Alarms" button:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
main()
{
EP_childPanelOn();
}

EP_childPanelOn()
{
ModuleOnWithPanel("mainModule_1",
0, 0, 0, 0, 0, 0, "",
"vision/aes/AEScreen.pnl",
"AEScreen",
makeDynString("$ACTION:" + AES_ACTION_AUTORUN, "$FILENAME:" + $FILENAME, "$SCREENTYPE:" + "aes_MyConfig"));
}
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The Standard Alarm screen (AEScreen) is predefined with 3 parameters:

The $ACTION parameter - I used the AES_ACTION_AUTORUN to populate the alarms (found in Help example )
the $SCREENTYPE parameter - it took me while to work out that this parameter defines the custom made configuration !!!
and the $FILENAME parameter ... still don't know the use of it - may be will find out later

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

Re: How to populate custom made alarm list?

Post by leoknipp »

Hello,

at the function openAES() you can define which module shall be used for the AEScreen, it is defined with the second parameter at the function, see enclosed parameter list for openAES():
int openAES (string screenConfig, string module, int action, [string fileName], int xPos, int yPos);

If you define the modulename "mainModule_1" at the function openAES() the AEScreen will be opened in the main-area.
A new module is opened when a modulename is defined, at the given module is not existing at this time.

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1