45
Working with tags Chapter 10
Rockwell Automation Publication VIEWSE-UM006K-EN-E
193
1.
In FactoryTalk View Studio, in the Explorer window, if it doesn’t have
an HMI server, add one to the application. Each HMI server contains
one tag database.
2. In the Tags editor, create HMI device tags by mapping tag names to
data server or DDE addresses, or create HMI memory tags. For details,
see Creating, modifying, and deleting HMI tags on page 209.
3. Connect application components to the HMI tags, wherever the
application needs to use the tag values.
For example, in a FactoryTalk View SE graphic display, connect a
numeric input object to an HMI tag. At run time, tag values are passed
to the object and the operator can read from or write to the tag.
Specifying tag names where tag data is needed
Specify data server or HMI tag names in an application, wherever live tag
data is needed.
For example, you could create a graphic object that represents a vat on a
production line, and then set up the object to show the level of the vat at run
time.
To do this, attach Fill animation to the object using a tag that is updated by a
network device that monitors the vat level. At run time, the value of the tag
will determine the fill level of the graphic object.
In the Animation dialog box, to connect the tag to the fill level, you can:
Type the tag name.
Tip:
You can type the name of a tag that doesn’t exist. If you
do this, to avoid errors at run time, when you create the
tag, make sure you spell the tag
’s name consistently.
Use letters in the tag name in addition to numbers. Tag
names with over 30 numbers may not show properly in
the tag browser.
Find and select the tag in the Tag Browser.
You can browse while online and connected to a device, or you can
browse for tags from an offline file, such as a PLC program file. For
more information, see Parts of the Tag Browser on page 196.
Create the tag, if it does not exist.
Create new data server tags in the device or OPC server. For example,
in a Logix5000 device, create the tag using RSLogix 5000
programming software.
How to C#: Basic SDK Concept of XDoc.PDF for .NET You may add PDF document protection functionality into your C# program of PDF document, including editing PDF url links and quick navigation link in bookmark
add links to pdf online; add hyperlinks to pdf
40
Chapter 10 Working with tags
194
Rockwell Automation Publication VIEWSE-UM006K-EN-E
Create new HMI tags in the Tags editor, in FactoryTalk View Studio.
For details, see Creating, modifying, and deleting HMI tags on page
209.
Logging tag values
To log tag values, in FactoryTalk View Studio, create data log models that
specify which values to log, and when. For tags in a data log model to be
polled and their values logged, the data log model needs to be started at run
time.
For details about setting up data logging, see Setting up data logging on page
583.
Observing tag-related limits
A graphic display can contain up to a total of 3000 connections, whether they
originate from the expressions or the tags.
Each expression associated with an object is counted as one connection
regardless of the number of tags in the expression.
Each animation of an object (except the Touch animation) is counted
as one connection.
Each connection in the Connections property of an object that is linked
to a tag is counted as one connection.
Each pen configured in a Trend object is counted as one connection.
Duplicate references of the same expression or tag connection are
counted as the additional connections. For example, one display can
contain up to 3000 numeric inputs, even if all numeric input objects
refer to the same tag.
Tip: Tags associated with embedded variables do not count
towards the limit.
Each HMI server in an application can have up to 40,000 HMI tags set up
with alarms. Of these, 10,000 can be HMI analog tags.
Tip:
RSLinx Enterprise is the recommended data
communications software for FactoryTalk View
applications.
VB.NET PDF: Basic SDK Concept of XDoc.PDF You may add PDF document protection functionality into your VB.NET of PDF document, including editing PDF url links and quick navigation link in bookmark
add links pdf document; chrome pdf from link
36
Working with tags Chapter 10
Rockwell Automation Publication VIEWSE-UM006K-EN-E
195
When you type a tag name, you are creating a reference to the tag.
For example, to animate a graphical representation of a fan in a graphic
display, you might refer to a tag called FanRunning, to use its value for the
animation.
FactoryTalk View SE network distributed and station applications can use
absolute or relative references to tags. Local station applications can only use
relative references. For more information, see Absolute and relative
references on page 131.
Absolute references
Absolute references point directly at a specific tag, by referring to the tag’s
name and the area (or areas, in the case of nested areas), in which it is
located.
For example, an absolute reference to a tag called Extractor located in the
Fans subarea of the Cooling area is:
/Cooling/Fans::Extractor
Use absolute references to ensure that a specific tag in a specific location is
used, regardless of where it is referenced from.
Relative references
Relative references point at a tag relative to the current server or area. A
relative reference to a tag called Extractor is simply the tag’s name:
Extractor
When a relative reference is used, FactoryTalk View assumes that the tag is
located in the current area.
Use relative references, for example, to re-use component names in a
network distributed application for a plant that has identical production lines.
The application might contain different areas to represent each production
line; however, within each area, the same names would be used for
application components such as graphic displays.
The home area
In network distributed applications, the home area is the area, in which an
application component (for example, a tag or graphic display) is located.
About tag
references
39
Chapter 10 Working with tags
196
Rockwell Automation Publication VIEWSE-UM006K-EN-E
When you refer to an application component without specifying the area,
FactoryTalk View SE uses the home area to locate the component.
For example, if you create a graphic display in the Cooling area, and add a
relative reference to a tag (for example, FanStart), FactoryTalk View SE
looks for the tag in the home area of the graphic display (Cooling).
If the tag cannot be found in an HMI se
rver or a data server in the display’s
home area, an error is logged when the display is run.
Finding the home area in the Tag Browser
In the Tag Browser, the home area in a network distributed application is
shown in bold type, as shown in the following illustration.
The Tag Browser composes references to tags automatically, using correct
syntax.
If the tags you select are in the home area, the Tag Browser automatically
uses relative references. If the tags are not in the home area, the Tag Browser
uses absolute references.
To use a tag in a FactoryTalk View
SE application, you can type the tag’s
name and path, or you can use the Tag Browser to search for and select the
tag.
To open the Tag Browser:
How you open the Tag Browser depends on where you are in FactoryTalk
View SE:
In the Command Wizard, for commands that take tags as parameters,
click the Browse button beside the Tag field.
In the Tags editor, when creating an HMI device tag, click the Browse
button beside the Address field.
In the Graphics editor, in the Animation dialog box, click Tag.
In the Properties dialog box for a graphic object, in the Connections
tab, click the Browse button in the Tag column.
Parts of the Tag
Browser
17
Working with tags Chapter 10
Rockwell Automation Publication VIEWSE-UM006K-EN-E
197
In the Expression editor, position the cursor where you want to insert
the tag name, and then click Tags.
In the Tags in Model tab in the Data Log Models editor, click the
Browse button beside the Tag[s] to Add field.
Viewing tags in folders
In the Tag Browser, the Folders display on the left shows the application root
folder, plus all the
folders that contain tags, in the application’s HMI servers
and data servers. In a network distributed application, there is also a folder
representing each area in the application.
To view the tags in a folder, select the folder. In the previous illustration, the
InfluentPump folder is open, and contains the tags shown on the right.
29
Chapter 10 Working with tags
198
Rockwell Automation Publication VIEWSE-UM006K-EN-E
Showing server names
By default, the Tag Browser shows folders, but not the HMI servers or data
servers the folders belong to. To show server names, right-click a blank area
of the Folders pane, and then select Show Server Names.
Finding tags in the home area
To locate the tags in the home area, right-click a blank area of the folder
pane, and then select Go To Home Area. The home area is selected
automatically.
For more information about the home area, see The home area on page 195.
Use Find to search for every occurrence of a specific tag or text string
throughout many different components within FactoryTalk View SE
applications. Find also locates all the text strings within each component that
refer to the tag. Cross Reference shows a list of all the tags and all the
components that refer to those tags.
You can also use the tag browser.
Finding a tag or text string
1. From the tool bar, click
or from the Tools Menu, select Find.
2. Type the text string in Find what, or identify the tag to search for:
a. Click the browse button (
) next to Find what.
b. From the Tag Browser, navigate to the correct folder in the left
pane, select the tag in the right pane, and then click OK to save the
selection and close the browser.
Searching for and
selecting tags
36
Working with tags Chapter 10
Rockwell Automation Publication VIEWSE-UM006K-EN-E
199
3. If needed, identify the type of product components to search in Find
within (all components are selected by default):
a. Click the browse button (
) next to Find within.
b. From the Find within dialog box, select the product component
types to be searched, and then click OK to save the selection and
close the dialog box.
4. If you are using a network distributed application, identify the HMI
servers of the search in Find where (all servers are selected by
default):
a. Click the browse button (
) next to Find where.
b. From the Find where dialog box, select the specific HMI servers
to be searched then click OK to close the Find where dialog box.
5. Identify the word search limitations in Search Options.
6. Select the Direction, in which to search:
a. Select Up to search for the tag or text string in all components
before the shown one.
b. Select Down to search for the tag or text string in all components
after the shown one.
7. Click Find Next. The location of the found tag or text string is shown
in Found item. Click Find Next again to find each item in the search
order. You can click the found item to open it in the appropriate editor.
8. If needed, click Find All to view a spreadsheet of all items that match
your search criteria. Double click the found item in the spreadsheet to
open it.
Finding a list of all tags or text strings
1. From the tool bar, click
or from the Tools Menu, select Cross
Reference.
2. Type the text string in Find what, or identify the tag to search for:
a. Click the browse button (
) next to Find what.
35
Chapter 10 Working with tags
200
Rockwell Automation Publication VIEWSE-UM006K-EN-E
b. From the Tag Browser, navigate to the correct folder in the left
pane, select the tag in the right pane, and then click OK to save the
selection and close the browser.
3. If needed, identify the type of product components to search in Find
within (all components are selected by default):
a. Click the browse button next to Find within.
b. From the Find within dialog box, select the product component
types to be searched, and then click OK to save the selection and
close the dialog box.
4. If you are using a network distributed application, identify the HMI
servers of the search in Find Where (all servers are selected by
default):
a. Click the browse button (
) next to Find where.
b. From the Find where dialog box, select the specific HMI servers to
be searched, and then click OK to close the Find where dialog box.
5. Click Search to show all the found items in a spreadsheet form.
6. You can double click any of the found items to open it with the
appropriate editor.
To find tags with Tag Browser
In the Tag Browser, select the folder where you want to search for tags, and
then select the tags you need. You can select a single tag or multiple tags,
depending on where you opened the Tag Browser.
For example, you can select multiple tags when you open the browser from
the Data Log Models editor.
The tag or tags you select can be from a data server or an HMI server. The
currently selected tag is shown under Selected Tag, in the lower part of the
Tag Browser. If multiple servers use the same tag name, the server name is
shown with the tag name
Tip:
If you are able to select multiple tags, their names are
shown under the label Selected Tags.
Documents you may be interested
Documents you may be interested