_alert_class

Attributes of alert classes (_alert_class) are always attributes for configuration and are therefore always set using dpSet() or queried using dpGet() or dpConnect().

Constants for the ".._type" attribute

CTRL constant int value Description
DPCONFIG_NONE 0 no alert class
DPCONFIG_ALERT_CLASS 14 alert class

Alert Class "_alert_class.._ack_type"

WinCC OA has the following integer constants to specify the type of acknowledgement in more detail (dpSet()).

CTRL constant int value Description
DPATTR_ACK_DELETES 0 acknowledgement deletes
DPATTR_ACK_NONE 1 cannot be acknowledged
DPATTR_ACK_APP 2 CAME can be acknowledged
DPATTR_ACK_PAIR 3 alert pair must be acknowledged
DPATTR_ACK_APP_AND_DISAPP 4 CAME and WENT must be acknowledged

exampleExample

Applies an alert class for a DPE:

main()
{
  dpSetWait("TestDP_1.element:_alert_class.._type",
  DPCONFIG_ALERT_CLASS,
  "TestDP_1.element:_alert_class.._archive", TRUE,
  "TestDP_1.element:_alert_class.._ack_type",
  DPATTR_ACK_APP,
  "TestDP_1.element:_alert_class.._perm",
  5,
  "TestDP_1.element:_alert_class.._prior", 60,
  "TestDP_1.element:_alert_class.._color_c_ack", "Blue",
  "TestDP_1.element:_alert_class.._color_c_nack", "Red",
  "TestDP_1.element:_alert_class.._abbr",
  "A");
}

Further details to the config "_alert_class" you will find in the chapter Module PARA - _alert_class (alert class).