Wednesday, March 11, 2020

PLC: FactoryTalk View Machine Edition

FactoryTalk View Machine Edition is software for developing and running human-machine interface applications.

FactoryTalk View Studio is configuration software for developing machine-level applications.
FactoryTalk View ME Station is a stand-alone runtime environment for machine-level applications. Use FactoryTalk View ME Station to run the applications you develop in FactoryTalk View Studio.
FactoryTalk® Linx™ is a communication server built around FactoryTalk technology to assist in developing and running your FactoryTalk View ME applications.

You can run machine-level applications on the MobileView™, PanelView™ Plus 7, PanelView Plus 6, PanelView Plus, and PanelView Plus CE terminals, as well as on personal computers.

The FactoryTalk View Machine Edition software package also includes:
• FactoryTalk Services Platform
• FactoryTalk Administration Console
• FactoryTalk Live Data
• FactoryTalk Diagnostics
• FactoryTalk Activation Manager
• Communications software

These tools are installed with FactoryTalk View Studio:
• Application Documenter is a software that provides detailed information about FactoryTalk applications.
• FactoryTalk View ME Application Manager is a software for renaming, copying, deleting, backing up, and restoring applications.
• DeskLock is a software that prevents Windows operating system users from exiting the FactoryTalk View application at run time. You can use this tool to set up a customized desktop and to prevent access to Windows functions. You cannot use DeskLock if you are running your application on a PanelView Plus 7, PanelView Plus 6, PanelView Plus, PanelView Plus Compact, or PanelView Plus CE terminal.
• FactoryTalk View File Viewer is a software for viewing the following types of log files:
• SE datalog files
• ME datalog files
• ME alarm log files
• dBase files
• ME RecipePlus files
The log information can be shown in the form of list views or trend plots. You can save the files as CSV or dBase files so that it is easier to do more analysis.
• Legacy Tag Database Conversion is a software for converting your legacy tag database to a new format to work with Microsoft SQL database.
• ME Firmware Upgrade Wizard is a software for installing new firmware releases on PanelView Plus 7, PanelView Plus 6, PanelView Plus, PanelView Plus Compact, and PanelView Plus CE terminals.
• ME Transfer Utility is a software for transferring a runtime application file (.mer) between the development computer and a MobileView, PanelView Plus 7, PanelView Plus 6, PanelView Plus, PanelView Plus Compact, or PanelView Plus CE terminal, transferring Windows True Type font files (.ttf and .ttc) to a PanelView Plus 7, PanelView Plus 6, PanelView Plus, PanelView Plus Compact, or PanelView Plus CE terminal, and comparing a runtime application on a MobileView, PanelView Plus 7, PanelView Plus 6, PanelView Plus, PanelView Plus Compact, or PanelView Plus CE terminal with a runtime application on a desktop computer.
• Tag Import and Export Wizard is a software for importing or exporting the FactoryTalk View tag database.
• Rockwell Automation CSV Data Log Tamper Detection Utility is a software used to detect the integrity of a CSV data log file that contains tamper detection strings, generate a detection report, and save the report to a text file.

Diagnostics Viewer allows you to view FactoryTalk Diagnostics messages using the FactoryTalk Diagnostics Viewer.

Specifies the application type. The value is one of:
• sed – SE Network Distributed
• sen – SE Network Station
• sel – SE Local Station
• med – Machine Edition

Configure Power User settings
If the security designation for FactoryTalk View Studio users is Power Users, they may not have write access. To make sure that the settings for Power Users are correct, you need configure the Power User settings.

All editors use the Standard toolbar. The Graphic Displays, Graphic Libraries, Runtime Security, and Tags editors have additional toolbars.

The Explorer window has two tabs:
• The Application tab contains the editors for creating and editing your application, and the System folder for setting up FactoryTalk Security.
• The Communications tab contains the communications tree for the development computer. For more information about using the communications tree, see Help for FactoryTalk Linx.

Workbook tabs
If you select Workbook Mode from the View menu, the workspace shows tabs at the bottom for each open editor or component. Workbook Mode allows you to bring forward an open item more quickly than by using the Window menu.

Use the Explorer window
The Explorer window is the main tool for working with FactoryTalk View Studio. It lists the editors you use to develop your application, as well as the components, such as graphic displays, you created.
Use the Explorer window to set up security for your application. You can use the window to set up users and user groups, and to assign security access to FactoryTalk Directory to the application, and to networks and devices. For information about setting up security, see Set up security on page 183.
An application consists of one or more data servers and an HMI project (also known as an HMI server). The data servers provide communications for the project. The project consists of graphic displays, alarm information, user information, and other settings.


View an editor's components

With some editors you enter information in a single window or a tabbed dialog box. Other editors allow you to create multiple components, such as graphic displays or message files. Each component is stored in a separate file, with its own name.
You can create components in these editors:

• Graphics (components include graphic displays, global object displays, and graphic libraries, each in their own folder)
• Alarms
• Parameters
• Local Messages
• Information Messages
• Data Log Models
• Macros
• RecipePlus

Use the Images editor to copy bitmap images into your application (but not to create new images). Each image you copy is listed as a component under the editor.

Tip:
If the editor can create multiple components, the shortcut menu contains New. If the editor can only open a single component, the menu contains Open.

Enter information in spreadsheets
These editors contain spreadsheets:
• Tags
• Runtime Security (formerly User Accounts)
• Global Connections
• Local Messages
• Alarm Setup
• Information Setup
• Information Messages
• Macros
• RecipePlus Editor

In the Graphics editor, many of the Properties dialog boxes for setting up graphic objects contain spreadsheets for assigning tags or expressions to the objects.


To enter information in a cell in a spreadsheet

• In the Property Panel, double-click the cell and then type the information. If the cell already contains text, double-clicking highlights the text and typing replaces the highlighted text.

Print at runtime
Print graphic displays at runtime using the display print button, or using a remote display print. You can also send diagnostics and alarm messages to a printer at runtime.

Plan applications

• Understand the machines and processes you’re automating
• Collect data
• Design an HMI tag database
• Plan graphic displays and navigating between them
• Plan languages
• Plan alarms
• Provide information for the operator
• Plan trends
• Plan recipes
• Design a secure system

Understand the process
• Break up each section of the process into its constituent parts.
• Determine what type of communications you’ll be using — which network types, data servers, and devices.
• Determine which process variables you need to have access to and identify their locations in the programmable controllers.

Collect data
When planning data collection, design your system so only essential data is collected. Limiting data collection is important because collection activities require substantial processing power and generate a lot of traffic on the network.

Keep data collection requirements in mind when designing the layout of the programmable controller data tables and the HMI tag database. Ideally, tag addresses reference contiguous blocks of programmable controller data tables to reduce highway traffic and optimize system response. If you’re going to use data from an OPC server, read the server documentation to find out how to optimize traffic.

Design an HMI tag database
Tip:
If you are going to use direct referencing for all your tags, you don’t need to create HMI tags in FactoryTalk View.
Data Server tags usually update faster than HMI tags. To obtain the best system performance for your application, use Data Server tags where possible.

Collect information
Before you begin creating the tag database, collect:
• Flowcharts of your processes (or process and instrument diagrams).
• A list of programmable controller data table or register addresses your application will have access to.
• Machinery systems documentation.
• Alarm requirements

Organize tags
Before creating tags:
• Develop naming conventions for tags, choosing names that are familiar and logical to everyone. This makes troubleshooting easier.
• Group related tags.
Group tags in the way that makes the most sense for your application. For example, group all similar devices or group related areas of the plant floor.
When creating tags, place related tags into folders. For greater organization, nest folders.

Plan graphic displays
When planning displays, determine the best way for users to navigate through your displays and develop a template to establish a common look and feel for your displays.

• If the application runs on a MobileView, PanelView Plus 7, PanelView Plus 6, PanelView Plus, PanelView Plus Compact, or PanelView Plus CE terminal, the maximum number of displays is based on the amount of memory used by the application. Applications running on the terminal can contain as many displays as can fit in the memory of the terminal.

• PanelView Plus 7 Standard applications have a limit of 100 displays (50 On Top displays and 50 Replace displays).
• Compact Machine Edition applications have a limit of 25 displays.

• Whether the operator will be using a keyboard, touch screen, mouse, or combination of navigation and data entry methods.

Develop a hierarchy of displays
A hierarchy of displays is a series of graphic displays that provide progressively more detail as users move through them. Design your display hierarchy to meet the needs of the various users, including managers, supervisors, and operators.

Well-organized graphic displays present information clearly and consistently and guide users through the system. Before designing individual graphic displays, plan an overall display hierarchy and plan how users will navigate through the hierarchy.

Create a template to ensure consistency

It is possible to keep a consistent appearance among all the displays in an application by presenting the same pieces of information in the same place on each graphic display. To ensure uniformity, develop a display with common elements that acts as a template. Each time you develop a new display, start with a duplicate of the template.
For example, the template could contain:
• Your company logo
• A title
• The date and time
• Navigational buttons
Use global object displays to create template objects. You can copy the objects into your graphic displays, and update all the objects at once by updating the original object in the global object display.

Design displays
When designing displays, applying good visual design principles helps users and increases their efficiency.
Remember these important design principles:
Consistency
• Be consistent with your use of symbols and color.
• Be consistent with button labels and button placement.
When you design several displays, place the same kinds of buttons on the same positions. For example, if you have a Start button in a certain position in one display, don’t put a Stop button in the same position in the next display.
Clarity
• Use easily recognizable symbols. For example, use the conventional ISA symbols for tanks and valves.
• Don’t overload the screen with information.
• Use standard, clear terminology, and avoid abbreviations or acronyms that the user might not understand.
• Use colors with recognizable meanings. For example, in North America the colors red and green usually mean stop and start. Keep color meanings consistent by assigning red only to Stop buttons, and green only to Start buttons.
Some people are color blind to red and green so don’t rely on color alone to establish meaning.
• Use high contrast color combinations, such as yellow on blue.
Display types
• On Top display type is used to position the display in front of any other display that is already open at runtime.
• Replace display type is used to have the display close any open displays on the screen at runtime. Replace displays do not close displays of the type On Top that have the Cannot Be Replaced option selected. Only one Replace display can be open at a time.
Usability
• If you’re designing for a touch screen, don’t place important buttons where they’ll be blocked by an On Top display. The user can’t press a covered button. Also, ensure the button is large enough for users to touch easily.
• Ensure there is always a clear way to move between displays.
• Keep the intended user in mind and design displays so they are easy to understand and use. Ask the users to test the displays.

Plan alarms

Before setting up alarms, consider the following:
• What conditions will trigger alarms
• How operators will be notified of alarms
• What information you want alarm messages to contain
• How operators will respond to alarms
• The maximum number of alarm messages supported at runtime
• PanelView Plus 7 Standard applications have a limit of 500 alarms
• Compact Machine Edition applications have a limit of 200 alarms

Provide information for the operator

In addition to notifying the operator of alarm conditions, you can provide information and instructions about plant processes, and inform the operator about system activities.
Before setting up information notification, plan:
• What system activity the operator needs to be informed about
• What conditions will trigger information messages
• What information you want the messages to contain

Local and information messages

Use local messages to give the operator information in a specific graphic display while the display is open. Use information messages to give the operator information no matter which display is open.

Diagnostics messages

Set up diagnostics messages to notify the operator of system activity such as tag reads and writes, running macros, communication problems, or problems opening displays.

Plan trends

When planning trends, consider how they will be used. For example, will the trend be used to:
• Analyze process trends?
• Monitor production efficiency?
• Archive process variables to ensure compliance with government regulations?

Based on such considerations, you can determine:
• Which tags need to be plotted on the same trend.
• Which tags need to be logged by using a data log model.

Plan recipes

When planning recipes, consider how they will be used. For example, will recipes be used to:
• Compare tag values to pre-set data values?
• Upload tag values to existing or new data sets?
• Download values from data sets to tags?
• Archive tag values to ensure compliance with government regulations?
Based on such considerations, you can determine:
• Which tag sets and data sets to pair together in a recipe file.
• Which RecipePlus button actions to use with the RecipePlus selector and RecipePlus table.

Design a secure system

When deciding on your security requirements, consider whether to:
• Restrict access to every graphic display to prevent accidental changes.
• Restrict access to certain graphic displays.
• Have everyone log on.
• Use passwords, and if so, whether to have a minimum length, and whether to require that the passwords are changed periodically.
• Allow only authorized users to shut down the application.
• Use the DeskLock tool on Windows platforms to prevent users from switching to another application at runtime (for applications that will run on personal computers). You can use this tool to set up a customized desktop and to prevent access to Windows functions.
Based on these considerations, you can set up security for individual users or groups of users. For example, you might want to set up groups of users such as a manager group and an operator group.

Work with applications

An application consists of one or more data servers and an HMI project (also known as an HMI server). The data servers provide communications for the project. The project or HMI server consists of graphic displays, alarm information, user information, and other settings.

The HMI project file (.med) is in \Users\Public\Public Documents\RSView Enterprise\ME\HMI projects.The runtime application consists of a file with the extension .mer.

Component files

Component files are located in folders in the HMI project folder, as described in the following table. For example, graphic display component files (with the extension .gfx) are stored in the Gfx folder. You might need to navigate to the location of these files. For example, if you are adding a component from one application into another application.

External folders

The following table lists some FactoryTalk View folders that are external to the HMI project folder, and the types of files they contain.
The folders are in \Users\Public\PublicDocuments\RSView Enterprise

Default log file locations


Faceplate/Add-On Instruction Sets from Rockwell Automation
https://www.youtube.com/watch?v=dovrhBVXvfA

Create an application

FactoryTalk View Studio creates the application’s folders and files and then shows the new application in the Explorer window. The system automatically creates a display called MAIN and sets the initial graphic to Main.

Import an application

You can import the following application files to FactoryTalk View Studio and convert them to current version FactoryTalk View Machine Edition application files using Machine Edition Import Wizard:
• PanelBuilder® application (.pba or .pva)
• PanelBuilder32 application (.pba or .pva)
• PanelBuilder 1400e application (.pvc)
• RSView® Machine Edition application (.med)
• FactoryTalk View Machine Edition application (.med)

Configure Power User settings

If the security designation for FactoryTalk View Studio users is Power Users, they may not have write access. To make sure that the settings for Power Users are correct, you need configure the Power User settings.
To configure Power User settings
1. Navigate to \Users\Public\Public Documents\RSView Enterprise\ME\HMI projects, right-click the application folder, and select Properties.
2. On the Security tab of the Properties dialog box, select Power Users from the list of groups and user names.
3. In the Permissions box below the list, select Full Control and select the Allow check box.
4. Click OK.

Rename, copy, delete, back up, and restore applications

Use FactoryTalk View ME Application Manager.

About project settings

Tip:
Project settings affect how your graphic displays look. Specify project settings before you create graphic displays.

Usually, an application is designed to completely fill the runtime terminal or computer screen. If you want your application to do this, set the project window size to the resolution of the screen in pixels.


How the project window size affects the default message displays
These are the sizes of the default displays:
If your project window size is smaller than the default message display sizes, you can resize the default displays, or use your own displays instead.

PanelView Plus 7 Standard applications and Compact Machine Edition applications

Title bar

If you select this option, a title bar is used for all Replace graphic displays.
If you plan to set up security for your application and want to prevent unauthorized users from stopping the application, do not use a title bar.

Enable auto logout
Use the Project Settings Runtime tab to log the current user out automatically if the terminal is inactive for a specified period of time. You can set up the terminal to open a particular graphic display after the automatic logout, and you can apply a parameter file or parameter list to the display you select.
If no display is selected, whatever display was open at logout will remain open.

Set up communications

• Data servers
• OLE for Process Control (OPC) communications
• How to create data servers and set up communications

Data servers provide access to devices on the network, making it possible to browse, read, and write values from FactoryTalk View applications.

FactoryTalk View ME supports the following types of data servers:
Rockwell Automation Device Servers FactoryTalk Linx is the recommended data server for all Rockwell Automation devices and networks. FactoryTalk Linx does not require activation or licensing and can be installed as often as needed in any application.
OPC Data Servers are any data server that supports the OPC-DataAccess Standard v2.05a.
The OPC Foundation is a non-profit organization that provides standards and technology that enables software from different vendors to work together. The following OPC Data Access v2.05a servers are available with FactoryTalk View ME.
KepServer Enterprise is used to communicate with non-Rockwell Automation devices like Siemens or Modicon controllers. KepServer Enterprise does not require activation or licensing for FactoryTalk View ME.
RSLinx Classic can only be used with FactoryTalk View ME Station and should only be considered in the following situations:
    • CIP to non-CIP routing is required to reach the device.
    • Unsolicited messages are used to send data from controllers.
    • Alias topics (multiple paths to the same device) are required.

Create data servers

A FactoryTalk Linx data server is created automatically with a new application. It is located under the application’s HMI server in the Explorer window, just above the FactoryTalk System folder.

Set up FactoryTalk Linx data servers

You can use the Communication Setup editor to add drivers, add devices, set up driver and device properties, and set up device shortcuts.
In an existing application, double-clicking Communication Setup opens the Communication Setup editor, with its two tabs.

The Design (Local) tab is for establishing the location of the tags/addresses for editing. The tags/addresses can be online with a controller or other data server, or an offline controller file. This will enable the Tag Browser to find the tags/addresses.
The Runtime (Target) tab is for identifying the connection from the runtime computer or terminal to the controller or other data server. If the paths are the same, use the Copy button to copy the Design configuration to the Runtime tab.

Set up an OPC data server

If you need to connect third party devices, use a KEPServer Enterprise data server.
If you have one of the situations described above and you are using a personal computer or a MobileView terminal in your application, use RSLinx Classic data server.

If you need to view or use tag names when you are not connected to a device, you can set up a cache that will read in tag names from the device and enable them to be used when the device is offline.

Update data server caches
If tags are added, modified, or deleted on the data server, you must update (synchronize) the cache manually.

Set up communications

To set up communications
1. Gather information about your network and the devices that are connected to it. You will need this information to set up FactoryTalk Linx, KEPServer Enterprise, RSLinx Classic, or another OPC server. Do one of the following:
•If you want to use KEPServer Enterprise as the OPC server that enables communications on your network, set up KEPServer Enterprise on the development computer. For details, see KEPServer Enterprise Help.
•If you want to use RSLinx Classic as the OPC server that enables communications on your network, set up RSLinx Classic on the development computer. For details, see Getting Results with RSLinx, or see Help for RSLinx.
RSLinx Classic is available for FactoryTalk View ME Station on personal computers only.
•If you want to use an OPC server other than RSLinx Classic for communications on your network, set up the OPC server on the development computer. For details, see the documentation supplied with your OPC server.
2.In FactoryTalk View Studio, create a data server that points to the OPCserver you have installed.
If you are using FactoryTalk Linx for communications, you don’t need to create a data server because it is created automatically when you create your FactoryTalk View Machine Edition application.
3.If you want to use HMI tags in your application, open the Tags editor, and then create device tags that point to addresses in devices. For details about creating HMI tags, see Use HMI tags on page 103.
If you do not want to use HMI tags, but instead want to reference addresses in devices directly, skip this step.
Best practice is to use direct reference tags. 
4.In objects in graphic displays, or anywhere else you want access to values in tags, type the tag name using the syntax for your OPC server, or use the Tag Browser to select tags. For details about using tags, see Work with tags on page 87.
5.Create the runtime application file. For details, see Create runtime applications on page 227.
All the necessary tag information is compiled with the runtime application file.
6. If you are using an OPC server other than FactoryTalk Linx or RSLinx Classic, install the OPC server software on the runtime computer.
For applications that will run on a personal computer, the OPC server can be on a different (remote) computer than the runtime computer, but the remote computer must be on the same network as the runtime computer.

Work with tags

• Types of tags
• When to use data server tags
• Steps for using data server tags
• When to use HMI tags
• Steps for using HMI tags
• How to browse for tags and offline tags
• How to use the Tag Browser
• How to use tags and expressions in your application
• How to log tag values
• How to use macros to assign values to tags

A tag is a logical name for a variable in a device or in local memory (RAM). For example, a tag can represent a process variable in a programmable controller.

Data server tags
FactoryTalk View conforms to the OPC DA (Data Access) 2.05a specification for information exchange among automation or control applications, field systems or devices, and business or office applications.
In FactoryTalk View, data servers such as FactoryTalk Linx, RSLinx Classic, and KEPServer Enterprise provide access to OPC-DA-compliant tags. In the FactoryTalk View documentation, the tags you use through a data server are called data server tags.

Data server tags include tags found in Logix 5000 processors and tags from other OPC-compliant devices. You use data server tags by providing a direct reference to the tag’s location, wherever you want your application to use the data.

Starting from version 21, Logix controllers support the extended tag properties that are configurable in Studio 5000 Logix Designer®.

Starting from FactoryTalk View version 9.00.00, you can use the following extended tag properties when a controller tag type can be referenced:
• .@Description: Description of the tag
• .@EngineeringUnit: A system of measurements of physical quantities
• .@Min: The minimum numeric value for the non-Boolean tag being measured
• .@Max: The maximum numeric value for the non-Boolean tag being measured
• .@State0: The false Boolean state of the tag
• .@State1: The true Boolean state of the tag
To read the values, use the format TagName.@ExtendedProperty where TagName is the controller tag and ExtendedProperty is the extended tag property, for example, [Shortcut]SodaCIPTanks.Water.Value.@Min.

HMI tags

In addition to direct referencing tags from data servers, FactoryTalk View allows you to create tags with additional properties such as minimum and maximum values, scale, and offset. These tags can reference values at an external data source, or store values in the runtime computer’s memory. Tags you create in FactoryTalk View are called HMI tags.

The data source

The FactoryTalk View documentation uses the term data source as a generic term that includes all possible sources of tag data, for both data server tags and HMI tags.
The data source can be memory or a device such as a programmable logic controller or OPC server. The application writes values to and reads values from the data source.
The data source is configured to exchange information (in the form of numeric or string values) between the application and the physical machine that your project is controlling.

Basic steps for using tags

To use tags
1. If the tag does not exist, create the tag.
• To use a data server tag, you can use an existing tag in the processor (for example, a programmable controller), or you can create a new one in the processor or OPC server. For example, in a Logix 5000 processor, you could create the tag using your RSLogix 5000® or Studio 5000 Logix Designer® programming software.
• To use an HMI tag, you must first create it in the Tags editor. For details, see Use HMI tags on page 103.
2. Browse for or type the name of the tag anywhere you want to connect an object to data at runtime.
For example, to make a push button change a tag value when it is pressed, connect the push button to a tag by typing the tag name on the Connections tab of the push button’s Properties dialog box.
If you don’t know the names of tags, you can browse for them. You can browse while online and connected to a device, or you can browse for tags from an offline file, for example a Logix 5000 program file. To browse for tags, use the Tag Browser. For details, see Browse for tags.

Use tag names that don’t exist

You can type the name of a tag that does not exist. If you do this, ensure that you spell every instance of the tag name consistently, and that when you create the tag, you spell it the same way you did when you referred to it.

Performance considerations when using extended tag properties

Extended tag properties are integrated into the ControlLogix application program. On a controller, the metadata is stored in FLASH memory.
When loading a display that uses extended tag properties, all objects (for example, numeric display, button captions, and the like) will be wire-framed before all data and extended tag property data is read from the controller.

When to use data server tags

For some of the things you want to do in your application, you might not need to create HMI tags. Use direct references to tags located in devices instead, for example, tags located in an OPC server’s database.

Eliminate duplication

Using data server tags allows you to add, modify, or delete tags in a device without having to duplicate the changes in the FactoryTalk View HMI tag database.

Use complex data

Some devices, for example, Logix 5000 processors, support complex data types, such as arrays and structures. Your controller might have structures that contain hundreds of member elements.
Referencing tag values directly eliminates the need for creating an HMI tag for each member.
Direct reference tags usually update faster than HMI tags. To obtain the best system performance for your application, use direct reference tags where possible.

Use data server tags

To use data server tags
1. Create the tag in the OPC server or processor, or use an existing tag in the processor.
The server must understand the syntax of the device it is connected to. You need only create a tag if you want to browse the server.
Examples of OPC servers include RSLinx Classic and KEPServer Enterprise. For information about creating tags in OPC servers that have their own tag database, see the documentation provided with the server.
For information about creating tags in a Logix 5000 processor, see the documentation for your device programming software.
2. Create a data server in FactoryTalk View, if your application does not already have one. Every new FactoryTalk View Machine application includes a FactoryTalk Linx data server automatically.
For more information, see Set up communications on page 81.
3. In graphic displays, data log models, or anywhere else you want to use a tag’s value, create a direct reference to the tag. At runtime, the tag’s value is passed to the graphic display or data log model.

When to use HMI tags

Use HMI tags to manipulate tag data and to store tag values in the runtime computer’s memory.

Scale, offset, or provide a range for data

Use HMI tags if the data server you are using does not provide for:
• Scale or offset a value.
• Set minimum or maximum limits on a value (that is, providing a range of values).

Scale and offset

The scale and offset modify the raw data that comes from and goes to the programmable controller before the data is saved in the computer’s memory (called the value table). The scale and offset also modify the value specified in FactoryTalk View before it is written to the programmable controller.
The scale is a multiplication factor — the value from the programmable controller is multiplied by the scale.
The offset is a fixed value — after the value from the programmable controller is multiplied by the scale, the offset amount is added.

Minimum and maximum

HMI tags allow you to set a minimum value and a maximum value that can be written to the programmable controller or server.
These values do not affect what is read from the programmable controller or server.
For example, if you specify a minimum of 0 and a maximum of 100, FactoryTalk View would be able to read a value of 200 from a programmable controller and store it in the value table, but would not be able to write this value to the programmable controller.

Store values in FactoryTalk View memory

A memory tag can be used to store values without the need for an attached or accessible device.
For example, you might need to store a value in memory:
• To store the result of a calculation.
• Temporarily, for example, a counter or index.
• To maintain information about the system’s current state, for example which graphic display was last opened.

Use HMI tags

To use HMI tags
1. In the Tags editor in FactoryTalk View, create a tag. HMI tags can be used as an internal storage location. Optionally you can map the tag name to an OPC tag or device address.
2. For more information, see Use HMI tags on page 103.
3. In graphic displays, alarm triggers, or anywhere else you want to use a tag’s value, assign the tag. At runtime, the tag’s value is passed to the graphic display or alarm system.

Use the Tag Browser

In FactoryTalk View, when you need to use a tag, you can type its name and path, or you can browse for it.
Use the Tag Browser to:
• Browse the tag database and select a tag or folder from the editor you are working in
• Edit or add an HMI tag
• Add a folder
• Import tags from PLC databases into the project’s tag database
• Create a backing tag or structure tag for use with controller instruction faceplates
The Tag Browser is divided into two sections. The left side shows the hierarchy of the folders for the HMI tag database. Each device shortcut (in FactoryTalk Linx) or OPC topic (in RSLinx Classic) is represented by a folder.
Tip:
• In addition to toggling the display of data server names, the context menu for the left-hand pane also lets you refresh the folder display, add new HMI folders, and move the cursor to the home area in the folder hierarchy.

To open the Tag Browser
Use one of the following methods:
• In the editors that uses tag assignments, click the Browse button in the Tags column.
• In the Expression editor, position the cursor where you want to insert a tag name, and then click Tags.
• In the Parameters editor, double-click where you want to insert a tag name.

Show server names

By default, the Folders pane in the Tag Browser shows folders, but not the servers they belong to. You can show the names of servers that have been set up in the application.
Folders of data server tags are listed under the data server, to which they belong. Below the data servers, the application is listed as an HMI server, with folders of HMI tags under the application name.

Browse for off-line tags

For each FactoryTalk Linx device shortcut or each RSLinx Classic OPC topic in your application, an Offline folder and an Online folder are shown in the Tag Browser.
In FactoryTalk Linx, you can use the Offline folder to browse tags in an RSLogix.acd file. For details about making the .acd file available to browse offline, see FactoryTalk Linx Help.
In RSLinx Classic, you can use the Offline folder to browse tags in a PLC program stored on disk. If the OPC topic in RSLinx Classic has access to symbols, you can browse for them in the Offline folder.

Use tags and expressions in your application

Once you have created tags (either in data servers or in FactoryTalk View), assign them to connections in your application to allow the application to interact with the data source and perform actions based on the tag values.
You can assign tags in these editors:
• Expressions
• Global Connections
• Graphic Displays
• Global Object Displays
• Graphic Libraries
• Parameters
• Alarm Setup
• Information Setup
• Macros
• Data Log Models
• RecipePlus Editor

Assign tags
This example shows the Trigger dialog box that opens when you click the Add button on the Triggers tab of the Alarm Setup editor:
Assign tags to graphic objects
Use expressions to manipulate tag values
Substitute tag names used in graphic objects
Log tag values
Use macros to assign values to tags

Use HMI tags

• HMI tag types
• How to use the Tags editor
• Data sources
• Address syntax for device tags
• How to organize HMI tags
• How to view tag statistics
• Other methods for creating HMI tags
• How to import HMI tags

HMI tag types

• Analog tag stores a numeric value from a range of values defined for the tag. Use them to represent devices that can have a range of values such as temperature, pressure, flow, or the position of a rotary control.
• Digital tag accepts any numeric value. Zero will be written as False (0) and any non-zero number will be written as True (1). Use them to represent devices that have two states: on or off, such as switches, contacts and relays.
• String tag stores ASCII strings that can be a string of characters or whole words. The maximum size string allowed is 82 characters. Use string tags to represent devices that use text, such as a bar code scanner that uses an alphanumeric product code.
In addition to the tags you create, the application provides a set of system tags. System tags store information generated while the system is running, such as the name of the logged-in user, system time and date, and the like.

Analog tags that use floating-point values

You can assign analog tags to most of the connections in FactoryTalk View, including both HMI and data server tags. If the analog tag uses a floating-point data type but an integer value is required, the floating-point value is rounded.

• Floating point values are rounded to a maximum of six digits. Therefore, using a floating-point data type and adding to it a value that exceeds the six significant digits will result in a rounding error. For example, adding any number to 999,999 will result in a rounding error.
Tip:
Floating point values (the default values for numeric input objects) are rounded to six digits. Therefore, using a floating point data type and adding to it a value that exceeds the six significant digits will result in a loss of precision.
This rounding method is also used for Numeric Input Enable buttons that use the implicit decimal position if an integer tag is assigned to the button’s Value connection. For more information about the Numeric Input Enable button, see Help.

Use the Tags editor


You can create tags:
• by importing them from an existing tag database

When you do searches, remember that the backslash in a folder name counts as a character in the tag name.

Data sources

When creating an HMI tag, you must specify a data source. The data source determines whether the tag receives its values externally or internally.

Device

A tag with device as its data source receives its data from a source external to FactoryTalk View. The data can come from a programmable controller or other device via FactoryTalk Linx, or from another OPC server. You can use up to 5,000 device tags.
For analog tags with Device as the data source, the data type determines the format used when reading and writing tag data to the data server.
Do not create HMI Tags that are pointing to a System Tag. When a project contains an HMI tag pointing to a System Tag, users may fail in creating an MER or have runtime performance issues.

Memory

A tag with memory as its data source receives its data from (and stores values in) the FactoryTalk View internal value table. Tags with memory as the data source do not count toward the total tag limit.
For analog tags with Memory as the data source, select the data type that matches the format of the data you will store in the tag. Choosing Default is the same as choosing Floating Point.

Address syntax for device tags

For device tags, you must provide the address and path to the OPC server that is connected to the data source. For example, the OPC server could be connected to a device such as a programmable controller.
The syntax for OPC tag addresses is:
[AccessPath]Address
or
::[AccessPath]Address
where :: indicates that the address resides in a data server in the application. The two colons are necessary when the address contains a colon, for example, N7:0.
The square brackets are part of the syntax. They do not indicate optional parameters.
The access path is one of the following:
• For communications with a FactoryTalk Linx data server, the access path is the name of the device shortcut in FactoryTalk Linx.
• For communications with an RSLinx Classic OPC server, the access path is the name of an OPC topic in RSLinx Classic.
• For communications with other OPC servers, the access path might be optional. For information about the syntax for the access path, see your OPC server documentation.

Example: Logix 5000 addressing

We recommend that you use the Tag Browser or Find and Replace to select OPC items. When you use the Tag Browser the correct syntax and data types are selected automatically.

OPC topic and item addressing

Logix 5000 uses this addressing syntax:
[Device shortcut]item name for FactoryTalk Linx.
[OPC topic name]item name for RSLinx Classic.
In this example, the FactoryTalk Linx device shortcut name for the Logix 5000 processor is CLGX. To connect to an OPC item called Motor, type this address:
[CLGX]Motor
Bit level addressing
You can gain access to the bit level of an item that uses the integer data type by appending .# to the end of the tag address, where # is the number of the bit you want access to.
For example, to gain access to the first bit of the integer item Motor, type this address:
[CLGX]Motor.0

Organize HMI tags

Organized tags make finding and using tags faster and simpler. To organize your tags, try these tips:
• Establish naming conventions.
Naming conventions enable you to use wildcard characters most effectively when searching for and showing tags during development.
• Use folders to group related tags.

Name tags

A tag name can be up to 255 characters long including folder name. If you create a folder, the folder name becomes part of the tag name. The backslash (\) after a folder name counts as a character.
A tag name can contain these characters:
• A to Z
• 0 to 9
• underscore (_) and dash (-)
A tag name cannot contain spaces.
A tag name can be mixed case. A tag name preserves upper and lower cases for readability but is not case sensitive. For example, the tag name MixerValve1 is the same as mixervalve1.
When a tag name starts with a number or contains a dash, enclose the name in curly brackets { } when you use it in an expression, for example, {N33-0}.

Use folders to group tags

To organize tags, create a folder to store tags that are related to one another. To separate the folder name from the rest of the tag name, use a backslash (\). For example, tags in the folder called Pump would start with Pump\.
For greater organization, you can nest folders. For example, you can organize the HMI tag database first by area, then by machines in the area, and finally by devices in each machine. The result might be Area1\Machine1\Pump.
To create similar groups of tags quickly, create one folder with its tags and then duplicate the folder.

View tag statistics

The Tag Statistics dialog box provides the following information for the current database:
• HMI tag database path
• The ODBC data source
• The date the tag database was last modified
• The number of analog, digital, and string tags
• The total number of HMI tags
• The number of folders in the database

To view tag statistics
• With the Tags editor open, from the View menu, select Tag Statistics.

Create tags as needed in the Data Log Models editor


Import tags from a PLC database
Use the Import PLC Tags dialog box to selectively import tags from a PLC or other database into your application’s HMI tag database. Tags imported in this way are copied into the database. They are not shared with the source database. This means changes to tags in your application do not affect the database from which they have been imported, and vice versa.
You can import tags from any of these databases:
• RSLogix 500® internal database, with file extension .rss
• RSLogix 5 internal database, with file extension .rsp
• RSLogix 5 or RSLogix 500, saved as an external database, with file extension .ctd (before importing, explicitly export to the .ctd format to be sure of including the latest changes)
For PLC and SLC addresses, the Import PLC Tags dialog box shows only addresses that are used in the symbol or address list of the PLC programming software.

Use the Tag Import and Export Wizard

You can also import PLC or SLC databases into FactoryTalk View using the Tag Import and Export Wizard.
You can use the wizard to:
• Export your application’s tags to a .csv file.
• Import tags from another FactoryTalk View application’s tag .csv file.
• Merge tags from another FactoryTalk View application (that is, import them directly from the application, without first creating a tag .csv file).
• Import tags from RSLogix 5 or RSLogix 500, saved as an external database, with file extension .ctd (before importing, explicitly export to the .ctd format to be sure of including the latest changes).

Start the Tag Import and Export Wizard

• In FactoryTalk View Studio, from the Tools menu, select Tag Import and
Export Wizard.
• From Windows Start menu:
• (Windows 10 and Windows Server 2016) Select All apps > Rockwell Software > Tag Import and Export Wizard


















No comments:

Post a Comment