4/21/2009 4:53 PM | |
Joined: 9/27/2007 Last visit: 12/18/2020 Posts: 993 Rating: (102)
|
Hi What do you mean with dynamic linked tag value. Do you want to set the property with vbs as the configuration file is? Or do you want variable präfix? Pleasediscribe a little bit more. regards cumulus |
Learn more about visualization - visit the HMI courses of Siemens AG! |
|
4/23/2009 6:08 PM | |
Joined: 9/27/2007 Last visit: 12/18/2020 Posts: 993 Rating: (102)
|
Hi I do not understand what you want to do, sorry.Here some possibilities. text1.Text = Tag.Name 'Display the tag name in the text field Tag.Read text1.Text = Tag.Value 'Display the value of he tag in the text field What do you want with set_tag(Tag)? To write p.E 5 in the taguse this: Tag.Value = 5 Tag.Write regards cumulus |
Learn more about visualization - visit the HMI courses of Siemens AG! |
|
4/24/2009 11:25 AM | |
Posts: 14 Rating: (0) |
@cumulus Yes but in Your example the tag is readen once and then value is put to the message box. I want to link tag and message box so the message box show walue on tag change or after some time. |
Last edited by: kric at: 4/24/2009 11:25 AM |
|
4/29/2009 10:27 AM | |
Joined: 9/27/2007 Last visit: 12/18/2020 Posts: 993 Rating: (102)
|
Hi You can and should do this without scripts if possible. I do not understand what do you want with the configuration file? you can link the text of the static text (or every other property of an object) direct with a variable or you use the dynamic dialog. With the dynamic dialog you can manipulate the value befor it will shown at the static text. So it is possible that the variable is a nummer and in the static text you see a string. In that way value of the static text will be updated by the cycle time of the picture. regards cumulus |
Learn more about visualization - visit the HMI courses of Siemens AG! |
|
5/5/2009 10:07 AM | |
Posts: 14 Rating: (0) |
When User run program it should read configuration from file and build view upon this. I want to do that using script! |
5/8/2009 11:42 AM | |
Joined: 9/27/2007 Last visit: 12/18/2020 Posts: 993 Rating: (102)
|
Hi I im a little bit confused. I don´t understand what you are want to do.What i understood now: You want to readthe text for p.E. Textfieds form a file. Open a text-field Dim FSO, txtFile Set FSO = CreateObject("Scripting.FileSystemObject") Set txtFile = FSO.OpenTextFile(<Pfad>,1,False,-2) Read a line txtFile.ReadLine skipe a line txtFile.SkipLine Is True if end of file is reached txtFile.AtEndOfStream close the file txtFile.Close So you can read out the text-file(.txt or .csv) and set the properties. answer that your questions? regards cumulus |
Learn more about visualization - visit the HMI courses of Siemens AG! |
|
Follow us on