Embedded DPE values in alert handle came and went text

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
BuckB
Posts:3
Joined: Tue Jul 12, 2016 11:44 pm

Embedded DPE values in alert handle came and went text

Post by BuckB »

Can I embed a DPE online value in a DPE's alert handler came and went text.

Example

"Fault code " & & "Active"

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Embedded DPE values in alert handle came and went text

Post by fmulder »

James,

I believe the anwer is yes and no.

No: I don't believe that you could change the came and went text 'live'. You'd have to de-activate the alarm before being able to change it. The value is of course one of the attributes of the alarm but you'd be unable to 'embed' this value directly in the alarm text

Yes : You would be able to display a column that has the exact text that you want. The WinCC OA API (C++) has a method to implement a DLl that adds additional columns to the AES table. You could implement a C++ function that formats a string (with or without a color) exactly to your wishes.

I've done the same. I've implemented such a DLL that combines two fields. Direction (came/went) and acked were combined to show 'came - unack' or 'came - ack' etc..

You'll find an example in : C:\\Siemens\\Automation\\WinCC_OA\\3.14\\api\\SampleTabUtil

Another can be to:
- make use of the alert comment and display that (not the very best idea)
- make use of the 32 possible additional columns (a little bit less worse)

Good luck

share the fun
Frenk Mulder

BuckB
Posts:3
Joined: Tue Jul 12, 2016 11:44 pm

Re: Embedded DPE values in alert handle came and went text

Post by BuckB »

Thank you Frank. I'll check into it. Sounds like more fun than I should be allowed to have.

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

Re: Embedded DPE values in alert handle came and went text

Post by leoknipp »

Hello,

how to add a user defined column to the AEScreen is described in the following chapter of the WinCC OA help:
System management --> Diagnostics --> Alert and event panel --> Example of how to add a user-defined column

Why do you want to include the value into the text?
What's the use case for it and where shall this information be displayed?

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1