Work with tags inside scripts to modify them and obtain a final tag. WinCC V7 tutorial#28

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

КОМЕНТАРІ • 13

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

    Thank you for the video. It was helpful.

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

    hello Sir, Can you creat the structure tag with tag outside communication Through OPC server

  • @NasirMehmood-yt7nw
    @NasirMehmood-yt7nw 7 місяців тому

    Hi dear multiple tags how to sum in the one tag??

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

    Hello Sir, Wish you fine
    Excuse me how is it possible to add an offset to the reading measurement, for example, our reading is 212 and we want to decrease 2 automatically

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

      Just simple calculations with vb scripting👍 you can use also our training for vb it will help you with it

  • @ОленаСагайдак-ф5з
    @ОленаСагайдак-ф5з 2 роки тому

    Hi! I have a question about tags inside scripts. How can I refer to a tag in script with not entire tag name, but only with part of it? For inst., you have 10 tags named "tag_1_aaa"..."tag_10_aaa" and want to work with each of them one by one. You can specify if tag name contains "_aaa". The question is, what would be the correct syntax in this case? C-scripts preferred. Thnx =)

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

      I don't get what do you asking:)
      Do you mean that you want save/read values from created tags during the script is running? Or something else? Let me know
      Regards
      Luke

    • @ОленаСагайдак-ф5з
      @ОленаСагайдак-ф5з 2 роки тому

      @@SCADAWorld Exactly =) C-script for searching tags with specified text in name and getting value from these tags

    • @ОленаСагайдак-ф5з
      @ОленаСагайдак-ф5з 2 роки тому +1

      @@SCADAWorld I mean the same you did in this lesson but in C-script. Could it be the same syntax with declaring prefix and suffix? And in VBS we have HMIRuntime.tag. But for C it should be GetTag*** command?

    • @SCADAWorld
      @SCADAWorld  2 роки тому +1

      @@ОленаСагайдак-ф5з Yes, generally you need to take tags by GetTag and create for loop function by doing some SPRINTF to get correct tag name to work with:)

    • @ОленаСагайдак-ф5з
      @ОленаСагайдак-ф5з 2 роки тому

      ​@@SCADAWorld Thank you for quick reply! But some question still remains. If tags contain different text in prefix part and only suffix part is in common. How to write condition for getting tags containing this suffix?