![]() Usage : TagMaxValue = StatGetMax(TagName, TriggerTag) Įxample :TagMaxValue = StatGetMax(TIC101PV.Name, DummyTag) Note that if no samples have been taken, this function will return zero (0.0). This function will then return the accumulated average value of the tag as a floating point value (real-type tag value). Two approaches are to either use an integer variable of your choosing that is periodically changed at some time interval, or to keep track of the current sample count (for one or all of the tags being monitored) in an integer tag each time you take a sample for one or all tags and use this tag as the trigger (recommended). If using this function as an expression for a real-time trend link or an analog output link, the value will only be updated when the trigger tags value changes. ![]() Usage : TagAverageValue = StatGetAverage(TagName, TriggerTag) Įxample :TagAverageValue = StatGetAverage(TIC101PV.Name, DummyTag) This function will take a sample for each of the tags currently being monitored by reading the current values from the InTouch real-time database. name field of a specific tag (recommended). The tag name can be passed as a string value, as a message tag, or as the. This function will take a sample for the specified tag name by reading its current value from the InTouch real-time database. This function will reset the statistics for all tags being monitored. This function will reset the statistics for the specified tag name. Select Special/ Install Wizards from the WindowMaker Configurationįor more information on configuring the Stattags.csv file, see the online Statistical script functions’ Statfunc.dll file. To create this file is to use the wizard that is provided in the InTouch Stattags.csv file in the InTouch application directory. Online help file, Statfunc.hlp, which comes with the script functionīefore using the InTouch Statistical script functions, you must create a The Stat32.zip file from the Wonderware Knowledge Base.Ĭomplete documentation on the use of these script functions is provided in an Installing the InTouch Statistical Script Functions Here is the list of script functions provided: Note The InTouch Statistical script functions areĬompatible with InTouch 5.1 and later for Windows NT only. Sampling and resetting can be performed on individual tagnames or on The statistics which can be tracked are theĪverage, maximum, minimum, and standard deviation.Īdditional script functions are provided to trigger sampling and to reset the Statistical values for up to 512 InTouch tagnames. The InTouch Statistical script functions allow you to track a variety of
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |