Kkula
Browse Questions » WinCC Unified Systems: Is it possible Towards write the Automation Code "Close the screen"?

About User

Questions Asked: 24.4K

Answers Given: 0

0
  • Open

WinCC Unified Systems: Is it possible Towards write the Automation Code "Close the screen"?

Hi everyone,
For example my WinCC project contains 5 pumps with the same parameters. I created a screen with 4 faceplates (attachment #1). UDT already connected to these faceplates. 
To open this screen i use the function: OpenScreenInPopup and SetPropertyValue (attachment #2). 
So now a question:
What function i have to use by clicking "Close button" on my screen? Is it possible to write the script like "Close the screen"? I see that there is only option "close popup window" (attachment #3). So i cannot use it because there are 5 different popup window names.
------------------------------------------------------------------------------------------
Split from
WinCC Unified – TIP’s for Faceplate
.

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

Closing WinCC Faceplate Popups

You're right to question the "Close popup window" function. Since you're using OpenScreenInPopup and have multiple instances, directly closing by window name isn't ideal.

Instead of focusing on closing the *window*, focus on closing the *faceplate instance*. Use the SetPropertyValue function with the "Close" property of the UDT instance connected to the faceplate. This signals the faceplate to close itself.

Here’s how:

  1. In the "Close button" script, identify the UDT instance associated with *that specific* faceplate.
  2. Use SetPropertyValue("UDT_Instance_Name", "Close", True). Replace "UDT_Instance_Name" with the actual name of the UDT instance.

This approach cleanly handles each popup independently without needing to know or manage the popup window names.

For more details on UDT properties, refer to the SiePortal documentation.

0
Add a comment