When creating a tag group

Join Date
Mar 2016
Location
Everett, WA
Posts
3
When creating a tag group, what is (Me.AreaName, 250) defining in the code snippet below?

Code:
If rpOneTagGroup Is Nothing Then
         Set rpOneTagGroup = Application.CreateTagGroup(Me.AreaName, 250)
         Call LoadSiloTagGroup(rpOneTagGroup)
End If

:site:
 
Last edited:
Welcome to the forum!

It's been a little while, but I believe that 250 is referring to the poll rate (in milliseconds) of the tag group (how often it checks to see if they've changed).
 
Here's the reply I got from another forum:

"Under "Me" as a controller tag should be a sub-group called "AreaName" with 250 bytes in it. "

There has to be documentation somewhere on this. Does anyone know where? I've Googled it and I've downloaded a bunch of manuals from AB's website and can't find anything.o_O
 
CreateTagGroup method
Example code

Creates a new instance of the TagGroup collection and passes it back to the caller.

Syntax

Application.CreateTagGroup ([HomeAreaName], [UpdateRate])

where

Application – is the name of a FactoryTalk View SE Client Application object or an expression that evaluates to a FactoryTalk View SE Client Application object.

HomeAreaName – is the name of the home area of the display in which the TagGroup is to be created.

UpdateRate – is an optional parameter that specifies the update rate in milliseconds at which the change events for Value, Timestamp, or Quality are returned. Updates for the group will be no faster than this value but may be slower if the server cannot provide the data at the requested rate. The default update rate is 1000.

Remarks

If the tag group cannot be created, the method returns Nothing, and the error tagErrorUnabletoCreateGroup is raised. The Description property of the Error object might contain additional information about the cause of the failure.
The minimum value of the UpdateRate property is 250. If an attempt is made to write a value less than this to the property, a run-time error is raised and this message is displayed: Unable to set UpdateRate. Value is invalid.
If a negative value is written to the UpdateRate property, the error tagErrorUpdateRate is raised.
 

Similar Topics

struggling with aoi's today i guess I have a tag in my program tags that is an integer I want to feed that tag into my aoi. The tag is an int...
Replies
2
Views
1,233
I have a small project running on a S7-1500. In the program is a bit %MD66 which is a value input from an HMI. I want to make this value retentive...
Replies
4
Views
3,193
I want to create a time stamp within my PLC when an event occurs and then read and display it as a string tag in my HMIs. I figured that someone...
Replies
3
Views
1,656
Good Evening , I have 2 CompactLogix PLC's , that I am going to use Produced / Consumed Tags . I would like to tell if both are...
Replies
11
Views
4,069
I'm having a problem creating variable tag array in Citect SCADA V7.40. I looked every possible help, user guide... but no matter how i set...
Replies
2
Views
4,752
Back
Top Bottom