WinCC Unified V17 # 22: Create Faceplates & UDTs 🧑🍽️

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 8

  • @alejandrogregoret5557
    @alejandrogregoret5557 29 днів тому

    i'm trying to modify the size in the screen, but the elements dont resize, only disapear... is there any property to modify in order to resize all elements inside the faceplate?, Thanks in advance

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

    Thanks.👌

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

      No problem 👍 thanks for watching my videos!!

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

    Thanks for giving a new tutorial with the WinCC Unified that is up to date. There has been so many updates and changes that the old ones out here are outdated. So thank you very much for creating a new detailed video. Quick question: there is no way to use HMI tags in faceplate? you must make the tags in "Tag interface" or "property interface" and then after link them up to HMI tags?

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

      Thanks for your comments! I appreciate the question. You are correct, you cannot use the HMI tags in the faceplate itself, you have to use the faceplate tags in the tag interface, then link to a property. WinCC SCADA is the same way, its a little confusing. :D

  • @luciddream2033
    @luciddream2033 3 місяці тому

    I have a question. I am trying to change the text of button in a faceplate based on a tag.
    I wrote this script to make it work with a screen item.
    export function Button_1_Text_Trigger(item) {
    var value;
    let tag1 = Tags("HMI_Tag_2").Read();
    if (tag1) {Screen.Items("Button_1").Text = 'Enabled';}
    else {Screen.Items("Button_1").Text = 'Disabled';}
    return value;
    }
    I tried to adapt that to the faceplate since I can't seem to assign a resource list to the text in a button in a faceplate.
    I simply modified the above code to this.
    export function Button_1_Text_Trigger(item) {
    var value;
    let tag1 = Tags("HMI_Data.Enable From HMI").Read();
    if (tag1) {(Faceplate.Items("Button_1").Text) = 'Enabled';}
    else {(Faceplate.Items("Button_1").Text) = 'Disabled';}
    return value;
    }
    However this script does not work in the faceplate.
    I'm not sure what is wrong here.
    Any suggestions?

    • @WinCCGURU
      @WinCCGURU  3 місяці тому

      This function is on the text property, correct? When you return a value in a property script, that value sets the property, so in this case, you are returning the var "value", which is blank, so the text becomes blank. I assume you want it to say "enabled" or "disabled" based on the tag value. So in your script, set the var value to "enabled" or "disabled", then return value, versus setting the text, which is being overwritten by the blank value variable. .

    • @luciddream2033
      @luciddream2033 3 місяці тому

      @@WinCCGURU okay, thanks for the feedback. I got annoyed and wrote code in the PLC and passed a string into the UDT for the faceplate to change the text. I will try this. I am rather new to java and unified.