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:
Tags:
Programming / Scripting, User Interface, Alarming, PVSS, WinCC Open Architecture, HMI, Ultralight