Professional Documents
Culture Documents
Introduction
A faceplate can be opened in Runtime as pop-up window by means of a script.
Note
Only faceplate versions used in the HMI device are available in Runtime.
• Use the faceplate version in the HMI device as faceplate container or in a script as reference.
The reference is not resolved if you dynamically generate the name of the faceplate version to be
opened as a popup with a script.
You have the option of calling a pop-up window either inside or outside a faceplate type:
• Outside a faceplate type: You transfer all interface tags and interface properties in the script.
• Inside a faceplate type: The interface tags and interface properties of the pop-up are applied from
the faceplate type in which the pop-up window is triggered.
The "OpenFaceplateInPopup" and "Close" methods are available as a snippet. The available snippets are
displayed in the shortcut menu of the "Scripts" editor.
Requirement
• A screen is open.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all
liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
11/30/2023
WinCC Engineering V18 - WinCC Unified
Configure faceplate as pop-up
Note
Interface property of the "Multilingual text" data type
Interface properties of the "Multilingual text" data type cannot be passed to a faceplate that
is called as a popup window outside of a faceplate type.
Note
Note
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all
liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
11/30/2023
WinCC Engineering V18 - WinCC Unified
Configure faceplate as pop-up
Note
Note that you must replace spaces and dots in the faceplate name with underscores
when referencing faceplate versions.
Reference faceplate versions with full version numbers, such as:
Faceplate_1_V_0_0_3.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all
liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
11/30/2023
WinCC Engineering V18 - WinCC Unified
Configure faceplate as pop-up
Example code for calling the faceplate pop-up outside a faceplate type
//TagsRequired: "HMI_Tag_1"
po.Left = 100;
po.Top = 150;
Example code for closing the faceplate pop-up outside a faceplate type
if (po)
po.Close();
po = undefined;
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all
liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
11/30/2023
WinCC Engineering V18 - WinCC Unified
Configure faceplate as pop-up
Note
The name and data type of the interface tags and interface properties must match. The
order may be changed. Missing interface tags or interface properties are not transferred.
5. Configure a screen object that is to open the pop-up window, e.g. a button, in the "Visualization" tab
of "Faceplate_1".
6. Configure additional objects to visualize the two faceplate types.
7. Interconnect the tags and properties of both faceplate types.
8. Select the screen object which is to open the pop-up window.
9. Open the Inspector window under "Properties > Events".
10. Select an event.
11. Click on
― Define the type of the popup window with the desired version, for example,
"Popup_1_V_0_0_1".
The correctly detected reference to the faceplate type is highlighted in green.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all
liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
11/30/2023
WinCC Engineering V18 - WinCC Unified
Configure faceplate as pop-up
Example code for calling the faceplate pop-up within a faceplate type
//FPlateRequired: "Popup_1"
po.Left = 100;
po.Top = 150;
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all
liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
11/30/2023
WinCC Engineering V18 - WinCC Unified
Configure faceplate as pop-up
Example code for closing the faceplate pop-up within a faceplate type
//FPlateRequired: "Popup_1_V_0_0_1"
Faceplate.Close();
Result
When the configured event is triggered in Runtime, the pop-up window opens or closes.
This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims all
liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties.
11/30/2023