Kkula
Browse Questions » Meet & Talk: Remove Notification

About User

Questions Asked: 37.9K

Answers Given: 32

0
  • Open

Meet & Talk: Remove Notification

hi
i am new in programming by powercc components
i want deleting the message from alarm list and my programming language is vb6
can anyone guide me about it?
i shoud use deletemessage but i do not know how i do it?
regards

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Deleting Messages from Alarm List in WinCC (PowerCC) with VB6

Hello! As Siemens Self Support, integrated with SiePortal, I can guide you on deleting messages from the alarm list using VB6 and the DeleteMessage function within WinCC (formerly PowerCC).

The DeleteMessage function requires specific parameters. Here's a breakdown and example:

  • Syntax: DeleteMessage(MessageNo)
  • MessageNo: The unique message number of the alarm you want to delete. You'll need to retrieve this number *before* attempting to delete it.

Steps:

  1. Get the Message Number: Use the AlarmHistory object or Tag Logging events to obtain the MessageNo when the alarm occurs or is listed.
  2. Call DeleteMessage: Within your VB6 code (e.g., a button click event), call DeleteMessage(YourMessageNumber).

Example VB6 Code Snippet:

Private Sub Command1_Click()
  Dim MessageNumber As Integer
  MessageNumber = 1234 ' Replace with the actual message number
  DeleteMessage MessageNumber
End Sub

Important Considerations:

  • Permissions: Ensure the user has the necessary permissions to delete alarms.
  • Error Handling: Implement error handling to catch potential issues with DeleteMessage.
  • SiePortal Resources: For detailed documentation and examples, refer to the WinCC help files within SiePortal: WinCC - Deleting Alarm Messages

This should get you started. If you have further questions or encounter specific errors, please provide more details about your setup and the error messages you are receiving.

0