WinCC Unified V16 Faceplate: Part 4/9 open a Faceplate as PopUp from each screen object

Поділитися
Вставка

КОМЕНТАРІ • 20

  • @NelsonAshade
    @NelsonAshade 7 місяців тому

    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?

  • @claudio1371
    @claudio1371 Рік тому

    I can't see how you configure the last pop up that open from clicking the valve.

  • @garrettcura
    @garrettcura 2 роки тому

    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!

    • @DerHecht40
      @DerHecht40  2 роки тому

      Hi,
      fo closing the popups automatic by a screenchange you can use this ua-cam.com/video/bVrPWJV_DdU/v-deo.html

    • @DerHecht40
      @DerHecht40  2 роки тому

      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();
      }

    • @garrettcura
      @garrettcura 2 роки тому

      @@DerHecht40 Thank you! The script worked for me!

  • @Con-ge2kl
    @Con-ge2kl 3 роки тому +1

    How do I edit the script if I have multiple tag interfaces? Thanks

    • @DerHecht40
      @DerHecht40  3 роки тому +1

      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};

    • @Con-ge2kl
      @Con-ge2kl 3 роки тому

      @@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;

      }

  • @andrei4311
    @andrei4311 Рік тому

    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?

    • @DerHecht40
      @DerHecht40  Рік тому +1

      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

    • @andrei4311
      @andrei4311 Рік тому

      @@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...

  • @wangwatson1121
    @wangwatson1121 5 років тому

    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?

    • @DerHecht40
      @DerHecht40  5 років тому

      Hi, I haven't heard anything about it

    • @wangwatson1121
      @wangwatson1121 5 років тому

      @@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.

  • @nisar8029
    @nisar8029 3 роки тому

    hello, Can I use buttons in faceplate which will be used as popup later?

    • @nisar8029
      @nisar8029 3 роки тому

      V17

    • @DerHecht40
      @DerHecht40  3 роки тому +1

      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

  • @matejpetras2016
    @matejpetras2016 3 роки тому

    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

    • @DerHecht40
      @DerHecht40  3 роки тому

      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