Access to the Object Properties
You can also access the parameters of the above-mentioned functions directly in VBA by
means of the following object properties:
Object property Description Read/Write
ObjectStateSingleAlarm Returns the object state via the enumeration
HMIGO_OBJECT_STATE. Further information on this enumeration
can be found in this documentation under "VBA in other WinCC
Editors".
Yes/no
SingleAlarmMessageNumber Number of the message Yes/no
SingleAlarmAGNumber AS Number Yes/yes
SingleAlarmCPUNumber CPU number of the AGs. Yes/yes
SingleAlarmClassID Message class of the message. Possible values of the Enum
SINGLE_ALARM_CLASS_IDS:
● SINGLE_ALARM_ERROR (1)
● SINGLE_ALARM_CLASS_2 (2)
● SINGLE_ALARM_CLASS_3 (3)
● SINGLE_ALARM_CLASS_4 (4)
● SINGLE_ALARM_CLASS_5 (5)
● SINGLE_ALARM_CLASS_6 (6)
● SINGLE_ALARM_CLASS_7 (7)
● SINGLE_ALARM_CLASS_8 (8)
● SINGLE_ALARM_CLASS_9 (9)
● SINGLE_ALARM_CLASS_10 (10)
● SINGLE_ALARM_CLASS_11 (11)
● SINGLE_ALARM_CLASS_12 (12)
● SINGLE_ALARM_CLASS_13 (13)
● SINGLE_ALARM_CLASS_14 (14)
● SINGLE_ALARM_CLASS_15 (15)
● SINGLE_ALARM_CLASS_16 (16)
● SINGLE_ALARM_CLASS_SYSTEM_REQUIRE_ACKNOWLEDG
EMENT (17)
● SINGLE_ALARM_CLASS_SYSTEM_WITHOUT_ACKNOWLEDG
EMENT (18)
Yes/yes
SingleAlarmMessageTypeID Type ID of the message. The permissible values depend on the
message class:
● Class 1: Values from 1 to 16
● Class 2: Values from 17 to 32
● Class 3: Values from 33 to 48
● ...
● Class 18: Values from 263 to 288
Yes/yes
SingleAlarmTextXXID
XX = 1...10
The properties SingleAlarmText1ID to SingleAlarmText10ID exist for
the user texts 1 to 10.
Yes/yes
VBA for Automated Configuration
4.6 VBA in Other WinCC Editors
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
2479