×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 8046761, Entry date: 10/05/2010
(0)
Rate

How can I speed up the first call of GetTag or SetTag functions?

  • Entry
  • Associated product(s)

Instructions
In your scripts you use the internal GetTag or SetTag functions. In the functions you access tags that are not used by any objects in the picture. The first access to the tag takes a lot longer than the subsequent accesses.

Cause
Before you can access a tag, the tag has to be logged onto the WinCC data manager for updating.
If objects are dynamized in the process display with tags, then the Graphics Runtime knows which tags a process display needs. In this way all the tags used can be logged on for updating as soon as the display opens.
If a tag is not used in the picture and you access the tag in a script, the tag is not yet available. It first has to be logged on for updating, which is why the first access takes longer.

Remedy

  • Create invisible objects in the picture.
  • Dynamize the Properties of these objects with a tag that you use in scripts.
    Example:
    Add a text field and dynamize the colors with a tag each.

The result is that as soon as the picture opens, all the tags required are available. This then makes the first calls of the GetTag and SetTag functions just as fast as the subsequent calls.

Keywords
Time reduction, Tag requesting

 

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.