Thanks for the video. I want to use a faceplate as a popup for 10 valves, such that when the faceplate for a valve pops up, its corresponding name is displayed. This means the unique name of any valve faceplate opened will correspondingly be displayed. Any idea on how to do this please?
Thanks for all the videos! Sure has helped me out a lot! I do have one question for you. Is there a way to close a faceplate shown as a popup externally. For instance if there is a faceplate shown as a popup and the user changes screens on the HMI, the popups remain, I would like to automatically close the popup as the function of changing screens if the user forgets to close the popup internally first. Thanks!
or use this script on the clear event of your screen let ui = UI; // workaround until PopupScreenWindows is part of UI script model let count = ui.PopupScreenWindows.Count; for (let i = 0; i < count; i++) { ui.PopupScreenWindows(0).Close(); }
Hi, you can add a additional tag by seperate it with a ",". let data = {YourFaceplateTag1:{Tag:"HMI_Tag_1"}, YourFaceplateTag2:{Tag:"HMI_Tag_2"}, ColorProperty:0xff00ff00};
@@DerHecht40 Thanks, I've tried adding them. For some reason it never pops up. I'm trying on a physical panel too. Any idea's? In the Siemens scripting tips it says to add the @Default if using textlists. export function DynamicSVG_8_OnKeyDown(item, keyCode, modifiers) { let data = {Valve_Data_Unified:{Tag:"Valves_Data_Unified_Silo1_Isolation"}, Valve_FP_Selecton_Index:{Tag:"Valve_FP_Selecton_Index"}, ThemeColour1:{Tag:"ThemeColour1"}, ThemeColour2:{Tag:"ThemeColour2"}, ThemeColour3:{Tag:"ThemeColour3"}, Valve_FP_Selection_Index_RL:{Tag:"@Default.VFD_FP_Selection_Index"}, ColorProperty:0xff00ff00}; let po = UI.OpenFaceplateInPopup("Valve Main", "Silo 1 Iso", data); po.Left = item.Left; po.Top = item.Top; po.Visible = true;
Moin, Ich möchte Bild in Pop-Up (oder auch Faceplate in PopUp) aufrufen je nach Trigger variable.(ist kein Problem) Aber ich möchte unabhängig von aktuelle Bild oder Bild Objekt es machen! Wie geht es? Habe versucht über Aufgabe Planner (in Unified ein Option "Variable" dazu gekommen), dort aber beim Script nicht möglich Objekt "UI" aufrufen, auch HMIRuntime hat kein "UI" Objekt mehr...Kannst hier helfen?
Moin Andrei, Wie du richtig festgestellt hast, kannst du vom Aufgabenplaner nicht auf Bilder zugreifen. Du musst mit Bildfenstern arbeiten, so dass du im Hintergrund immer ein festes Bild hast und du tauschst nur den Inhalt der Bildfenster aus. An diese Statische Bild im Hintergrund kannst du die Skripte hängen um die globalen PopUps zu triggern
@@DerHecht40 Genau, über Bild Tamplate habe dann gelöst...musste leider missbrauchen property Alternative hintergrund aber hat geklappt...schade dass man globale Pop-Up nicht über Aufgabe Planner lösen kann, wäre viel schöner gewesen...
@@DerHecht40 Hi,my controls maybe very useful but it's hard to understand. Path:Help-Visualize processess-Configuring screens-Configuring objects -My Controls. You can use My Controls in WinCC that have been created externally. My Controls are freely programmable and serve as a specific solution that goes beyond the functionalities of the toolbox provided. Like all other tools, My Controls are used within screens and displayed in runtime. Procedure To use My Controls, proceed as follows: Open the directory of your project. Open the "UserFiles" subfolder. Create a folder with the name "CustomControls". Store the created program as *.zip archive in the "CustomControls" folder.
Hi, if you want to click on Buttons you can use the systemfunction to call a second faceplate as popup ua-cam.com/video/tMGhV05FtlU/v-deo.html In V17 I would use the parent property to set the position of the faceplate ua-cam.com/video/NDErP-zmGvA/v-deo.html
Hello Sir. Is it possible to open faceplate on a bit change from 0 to 1? I tried it via task scheduler but snippet doesnt offer this option there. Thanks
Hello, It is not possible to have access from the task scheduler to screen objects. But you can add your function to a screenobject in you screen which is triggerd by a value change of your bit. If you have you bit connectetd to an IO field you can use the Property-->ProcessValue-->change and add the popup call here
Thanks for the video. I want to use a faceplate as a popup for 10 valves, such that when the faceplate for a valve pops up, its corresponding name is displayed. This means the unique name of any valve faceplate opened will correspondingly be displayed. Any idea on how to do this please?
I can't see how you configure the last pop up that open from clicking the valve.
Thanks for all the videos! Sure has helped me out a lot! I do have one question for you. Is there a way to close a faceplate shown as a popup externally. For instance if there is a faceplate shown as a popup and the user changes screens on the HMI, the popups remain, I would like to automatically close the popup as the function of changing screens if the user forgets to close the popup internally first. Thanks!
Hi,
fo closing the popups automatic by a screenchange you can use this ua-cam.com/video/bVrPWJV_DdU/v-deo.html
or use this script on the clear event of your screen
let ui = UI; // workaround until PopupScreenWindows is part of UI script model
let count = ui.PopupScreenWindows.Count;
for (let i = 0; i < count; i++) {
ui.PopupScreenWindows(0).Close();
}
@@DerHecht40 Thank you! The script worked for me!
How do I edit the script if I have multiple tag interfaces? Thanks
Hi, you can add a additional tag by seperate it with a ",".
let data = {YourFaceplateTag1:{Tag:"HMI_Tag_1"}, YourFaceplateTag2:{Tag:"HMI_Tag_2"}, ColorProperty:0xff00ff00};
@@DerHecht40 Thanks, I've tried adding them. For some reason it never pops up. I'm trying on a physical panel too. Any idea's?
In the Siemens scripting tips it says to add the @Default if using textlists.
export function DynamicSVG_8_OnKeyDown(item, keyCode, modifiers) {
let data = {Valve_Data_Unified:{Tag:"Valves_Data_Unified_Silo1_Isolation"},
Valve_FP_Selecton_Index:{Tag:"Valve_FP_Selecton_Index"},
ThemeColour1:{Tag:"ThemeColour1"},
ThemeColour2:{Tag:"ThemeColour2"},
ThemeColour3:{Tag:"ThemeColour3"},
Valve_FP_Selection_Index_RL:{Tag:"@Default.VFD_FP_Selection_Index"},
ColorProperty:0xff00ff00};
let po = UI.OpenFaceplateInPopup("Valve Main", "Silo 1 Iso", data);
po.Left = item.Left;
po.Top = item.Top;
po.Visible = true;
}
Moin, Ich möchte Bild in Pop-Up (oder auch Faceplate in PopUp) aufrufen je nach Trigger variable.(ist kein Problem) Aber ich möchte unabhängig von aktuelle Bild oder Bild Objekt es machen! Wie geht es? Habe versucht über Aufgabe Planner (in Unified ein Option "Variable" dazu gekommen), dort aber beim Script nicht möglich Objekt "UI" aufrufen, auch HMIRuntime hat kein "UI" Objekt mehr...Kannst hier helfen?
Moin Andrei,
Wie du richtig festgestellt hast, kannst du vom Aufgabenplaner nicht auf Bilder zugreifen.
Du musst mit Bildfenstern arbeiten, so dass du im Hintergrund immer ein festes Bild hast und du tauschst nur den Inhalt der Bildfenster aus. An diese Statische Bild im Hintergrund kannst du die Skripte hängen um die globalen PopUps zu triggern
@@DerHecht40 Genau, über Bild Tamplate habe dann gelöst...musste leider missbrauchen property Alternative hintergrund aber hat geklappt...schade dass man globale Pop-Up nicht über Aufgabe Planner lösen kann, wäre viel schöner gewesen...
Hello,you made so many good videos.Do you have a plan to make videos about how to add my own controls into My Controls in WINCC?
Hi, I haven't heard anything about it
@@DerHecht40
Hi,my controls maybe very useful but it's hard to understand.
Path:Help-Visualize processess-Configuring screens-Configuring objects -My Controls.
You can use My Controls in WinCC that have been created externally. My Controls are freely programmable and serve as a specific solution that goes beyond the functionalities of the toolbox provided. Like all other tools, My Controls are used within screens and displayed in runtime.
Procedure
To use My Controls, proceed as follows:
Open the directory of your project.
Open the "UserFiles" subfolder.
Create a folder with the name "CustomControls".
Store the created program as *.zip archive in the "CustomControls" folder.
hello, Can I use buttons in faceplate which will be used as popup later?
V17
Hi, if you want to click on Buttons you can use the systemfunction to call a second faceplate as popup ua-cam.com/video/tMGhV05FtlU/v-deo.html
In V17 I would use the parent property to set the position of the faceplate ua-cam.com/video/NDErP-zmGvA/v-deo.html
Hello Sir. Is it possible to open faceplate on a bit change from 0 to 1? I tried it via task scheduler but snippet doesnt offer this option there. Thanks
Hello,
It is not possible to have access from the task scheduler to screen objects. But you can add your function to a screenobject in you screen which is triggerd by a value change of your bit. If you have you bit connectetd to an IO field you can use the Property-->ProcessValue-->change and add the popup call here