How to display the current alarm color on a symbol?

For displaying the alarm color on a symbol, it is not required to connect to the value of a DPE and calculate a color, which will then be displayed.

The smart way 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" gives already the current alarm color of the DPE, so there is no need for a calculation of redundant information.

Date added:
Last revised:
Hits:
4.933
Version:
ALL Versions
Rating:
Rating: 0.0. 0 vote(s). No rating done at all.
Your vote was '' (0 of 5) You are an anonymous user.
You may log on to do personalized votings
Click the rating bar to rate this item Please log on to do ratings
  • Notification

    FE user cannot be identified! (1403201096)

  • Information

    Not already rated (1403203414)

Tags:
Programming / Scripting, User Interface, Alarming, PVSS, WinCC Open Architecture, HMI, Ultralight