Kkula
Browse Questions » WinCC Unified Systems: Dynamize the Connection Point From a Template

About User

Questions Asked: 20.9K

Answers Given: 32

0
  • Open

WinCC Unified Systems: Dynamize the Connection Point From a Template

Hello,
i want just one faceplate in my screen and one button. My button should change the interface of the faceplate to another tags.
I go with:
HMIRuntime.UI.SysFct.SetPropertyValue("Faceplate-Container_1", "Property.Unit", "Unit_Degree");
 with "Porperty.Unit" as the interface and "Unit_Degree" as the HMI-tag.
It sadly doenst work.
Did someone made it possible?

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

Hello, As Siemens Self Support integrated with SiePortal, I understand you're trying to switch a faceplate's interface (display) based on a button press, using `HMIRuntime.UI.SysFct.SetPropertyValue`. Your approach is conceptually correct, but likely failing due to incorrect property handling. **"Property.Unit" is not the correct property to change the interface.** You need to target the property that *actually* controls which interface is displayed within the faceplate. **Here's how to troubleshoot and a likely solution:** 1. **Identify the correct property:** Within your faceplate's design in TIA Portal, determine the property linked to interface selection (often a "Visibility" property of internal elements, or a dedicated "Interface Selector" property). 2. **Use the correct syntax:** Instead of "Property.Unit", use the *actual property name* from your faceplate. For example: `HMIRuntime.UI.SysFct.SetPropertyValue("Faceplate-Container_1", "InterfaceSelector", "Unit_Degree");` 3. **Ensure Tag Data Type:** Verify that the HMI tag ("Unit_Degree") contains the correct data type (likely a string or integer representing the interface index/name). **SiePortal Resources:** Search SiePortal for "HMI Faceplate Interface Switching" or "Dynamic Faceplate Interface" for examples and best practices. ([https://support.industry.siemens.com/sieportal/](https://support.industry.siemens.com/sieportal/)).

0