Documente Academic
Documente Profesional
Documente Cultură
SE Programming
Student Manual
Important User Information
This documentation, whether, illustrative, printed, “online” or electronic (hereinafter “Documentation”) is intended for
use only as a learning aid when using Rockwell Automation approved demonstration hardware, software and firmware.
The Documentation should only be used as a learning tool by qualified professionals.
The variety of uses for the hardware, software and firmware (hereinafter “Products”) described in this Documentation,
mandates that those responsible for the application and use of those Products must satisfy themselves that all necessary
steps have been taken to ensure that each application and actual use meets all performance and safety requirements,
including any applicable laws, regulations, codes and standards in addition to any applicable technical documents.
In no event will Rockwell Automation, Inc., or any of its affiliate or subsidiary companies (hereinafter “Rockwell
Automation”) be responsible or liable for any indirect or consequential damages resulting from the use or application of
the Products described in this Documentation. Rockwell Automation does not assume responsibility or liability for
damages of any kind based on the alleged use of, or reliance on, this Documentation.
No patent liability is assumed by Rockwell Automation with respect to use of information, circuits, equipment, or
software described in the Documentation.
Except as specifically agreed in writing as part of a maintenance or support contract, equipment users are responsible for:
x properly using, calibrating, operating, monitoring and maintaining all Products consistent with all Rockwell
Automation or third--party provided instructions, warnings, recommendations and documentation;
x ensuring that only properly trained personnel use, operate and maintain the Products at all times;
x staying informed of all Product updates and alerts and implementing all updates and fixes; and
x all other factors affecting the Products that are outside of the direct control of Rockwell Automation.
Reproduction of the contents of the Documentation, in whole or in part, without written permission of Rockwell
Automation is prohibited.
Throughout this manual we use the following notes to make you aware of safety considerations:
Email: ratps@ra.rockwell.com
or Fax: 440.646.4425
Page 1 of
Date:
Contact Information:
Name:
Company and Location:
Phone: Email:
Introduction
Course Overview
Course Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I
Who Should Attend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I
Agenda . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . II
Meeting Course Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . III
Student Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . III
Hands-On Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . III
Lessons
Enabling FactoryTalk Alarms and Events on an RSLinx Enterprise Device Server . . . . . . . . . . . . 12--11
Creating or Modifying a FactoryTalk Alarms and Events Summary . . . . . . . . . . . . . . . . . . . . . . . 12--12
Here’s How . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--15
Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
Exercise A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13--9
How Did You Do? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13--10
Exercise B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13--11
Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13--14
Exercise A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13--14
Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13--16
Exercise B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13--16
Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
What You Will Learn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--1
Why These Skills Are Important . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--1
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--1
Key Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--1
Creating a Derived Tag File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--2
Creating a Derived Tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--2
Starting and Stopping a Derived Tag File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--3
Creating an Event File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--4
Creating an Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--4
Starting and Stopping Event Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--5
Here’s How . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--6
Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE
Application
Exercise A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--7
How Did You Do? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--10
Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--12
Exercise A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15--12
Course Overview
Course Purpose This course is a skill-building course that will aid you in developing
FactoryTalk View Supervisory Edition (SE) applications.
Who Should Attend Individuals who need to develop FactoryTalk View SE local or
network applications should attend this course.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
ovrsb9701SE
II Course Overview
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
ovrsb9701SE
Course Overview III
Meeting Course Objectives The following course structure is generally used to help you
understand the content and activities:
One lesson is devoted to each task.
Typical lesson includes most or all of these sections:
-- “What You Will Learn” -- lesson objectives
-- “Before You Begin” -- preparatory material
-- “Here’s How” -- demonstration of procedures
-- “Exercise” -- opportunity to perform new skills, often in a
hands-on lab environment
-- “How Did You Do?” -- where to go for feedback on
performance
-- “Answers” -- answers to exercises
x Integrated practices provide an opportunity to perform tasks using
the skills obtained during the training.
Student Materials To enhance and facilitate your learning experience, the following
materials are provided as part of the course package:
Student Manual, which contains the topical outlines and
exercises. Use this manual to follow presentations, take notes, and
work through your exercises.
x FactoryTalk View SE Procedures Guide, which provides all the
steps required to complete common FactoryTalk View SE
application development tasks, including the tasks in the
exercises. By following the procedures in this job aid, you can
immediately apply what is learned in the course to your own job.
Hands-On Exercises Throughout the course, you will have the opportunity to practice the
skills you have learned through a variety of hands-on exercises.
These exercises focus on the skills introduced in each lesson.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
ovrsb9701SE
IV Course Overview
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
ovrsb9701SE
Lesson 1
Introducing FactoryTalk View SE
Software
What You Will Learn After completing this lesson, you should be able to understand
FactoryTalk View SE software capabilities.
If students ask, mention that the version FactoryTalk View SE software is a part of the FactoryTalk View
of FactoryTalk View Studio that installs Enterprise Series family of products which provide a common HMI
with FactoryTalk View SE can create
both FactoryTalk View SE and solution for machine-level and supervisory-level applications:
FactoryTalk View ME applications. The
FactoryTalk View Studio that installs with
FactoryTalk View ME software can only
create FactoryTalk View ME
applications.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
ISEsb9701SE
1--2 Introducing FactoryTalk View SE Software
Optional Data
Server Local Application,
HMI Client, HMI Server,
and Data Server
Mention that the majority of the skills x Network (Distributed) Applications: FactoryTalk View SE
practiced in this class will be performed software components are spread out among multiple servers and
in a local environment. Students who are
working with network applications should client computers:
be encouraged to attend the FactoryTalk
View SE Architecture class (Course no. FactoryTalk View SE FactoryTalk View FactoryTalk View Studio
CCV205). Clients SE Servers Software
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
ISEsb9701SE
Introducing FactoryTalk View SE Software 1--3
Remind students that local applications Network applications include the following software components
can only have one HMI server. that do not apply to local applications:
x Additional HMI Servers: For improved application
performance, network applications can contain multiple HMI
servers. Each HMI server in the application requires a separate
software license.
x Areas: Areas are logical divisions of a FactoryTalk View SE
application created by a developer that help organize the HMI
projects. For example, a bakery might be divided into the
following areas:
-- Ingredients
-- Mixing
-- Baking
-- Packaging
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
ISEsb9701SE
1--4 Introducing FactoryTalk View SE Software
Open the InstaCorp.txt for setup InstaCorp produces soap dispensers and refills. This example will
instructions in order to demonstrate the show you some screens that have been developed for their
Ssoap_Local.apa application to
students. application.
Show students features of SE that relate
to their needs.
Note: This application was originally a
distributed (network) application and
may now have limited features and
functionality.
For your convenience and the students, InstaCorp home screen:
some screen shots have been provided.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
ISEsb9701SE
Introducing FactoryTalk View SE Software 1--5
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
ISEsb9701SE
1--6 Introducing FactoryTalk View SE Software
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
ISEsb9701SE
Introducing FactoryTalk View SE Software 1--7
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
ISEsb9701SE
1--8 Introducing FactoryTalk View SE Software
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
ISEsb9701SE
Exercise: Introducing FactoryTalk View SE Software 1--9
Exercise A In this exercise, you will familiarize yourself with FactoryTalk View
SE software.
Context:
Directions:
3. What is an area?
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
ISEe9701SE
1--10 Exercise: Introducing FactoryTalk View SE Software
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
ISEe9701SE
Lesson 2
Configuring FactoryTalk Services
For FactoryTalk View Applications
What You Will Learn After completing this lesson, you should be able to:
x Set up the FactoryTalk Directory
x Create user and user group accounts in FactoryTalk Security
x Create applications and add areas and servers
x Monitor FactoryTalk Live Data using the Rockwell Software
Data Client
Shortcut: A name that stands for the device you want to connect to
and the data that device contains.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--2 Configuring FactoryTalk Services For FactoryTalk View Applications
FactoryTalk Overview
For example, to access graphic displays FactoryTalk Directory is software that allows the parts of an
on an HMI server in the application, HMI application to find each other on a computer, or on the network.
clients use FactoryTalk Directory
software to find out which computer on
the network is hosting the HMI server. FactoryTalk Directory software also stores the information about
which users and computers are allowed access to the various parts of
a control system if you have used FactoryTalk Security, to secure
access to the resources that FactoryTalk Directory manages.
Tip " The FactoryTalk Directory server must not be installed on the same
computer as the domain controller for the network.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMsb9701SE
Configuring FactoryTalk Services For FactoryTalk View Applications 2--3
This course will use a similar For example, the following software could be communicating with a
configuration, except RSLogix 5 will be single programmable logic controller and participating in the same
replaced with RSLogix 5000.
Local Application held in a Local Directory:
x FactoryTalk Services Platform
x FactoryTalk View
x RSLinx Classic
x RSLogix 5
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--4 Configuring FactoryTalk Services For FactoryTalk View Applications
Installing FactoryTalk
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--6 Configuring FactoryTalk Services For FactoryTalk View Applications
If this is part of a standard course, more If you are using FactoryTalk Security to secure the FactoryTalk
information on how to create users and Directory, the application and its areas, users, computers, and
groups will be presented in another
lesson. devices, you should set up group accounts before creating individual
user accounts.
Select your
Windows-linked user
account
Double Click
Administrators
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMsb9701SE
Configuring FactoryTalk Services For FactoryTalk View Applications 2--7
Security permissions and policies for user and user group accounts
are set up in FactoryTalk Security and managed by FactoryTalk
Directory.
Tip " You can add individual Windows-linked user accounts to a user
group that was created in FactoryTalk Security.
Tip " You can also add a Windows-linked user group to a user group that
was created in FactoryTalk Security.
Tip " You cannot add a user account that was created in FactoryTalk
Security, to a Windows-linked user group.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--8 Configuring FactoryTalk Services For FactoryTalk View Applications
Applications
If this is part of a standard course, more A FactoryTalk application organizes elements such as data servers,
information on how to create alarm and event servers, HMI servers, and project information.
applications, areas, and servers will be
presented in another lesson.
It makes all of that information available to all software products and
computers participating in the same application:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMsb9701SE
Configuring FactoryTalk Services For FactoryTalk View Applications 2--9
Areas
Areas organize and subdivide applications that use a Network
Directory into logical or physical divisions.
The root of an application can contain only one HMI server. To add
additional HMI servers to an application, create a separate area for
each server.
Servers
For example, some of the values that A data server provides a route to the physical devices on a network
data servers provide access to are so you can access the values in those devices.
programmable controller values, OPC
tags and their value or status
information, and tags in a Logix5000
processor.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--10 Configuring FactoryTalk Services For FactoryTalk View Applications
Right-Click on
your Application
to add a sever.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMsb9701SE
Configuring FactoryTalk Services For FactoryTalk View Applications 2--11
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--12 Configuring FactoryTalk Services For FactoryTalk View Applications
Tip " If you restore a FactoryTalk Directory, you must manually review
and verify the configuration to ensure that shortcuts contained in that
directory or application file point to the intended physical devices.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMsb9701SE
Configuring FactoryTalk Services For FactoryTalk View Applications 2--13
Tip " When connecting to RSLinx Classic, select RSLinx Remote OPC
Server because this provides the most reliable connection.
After you open your application, create a group to which you can
then add data items:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--14 Configuring FactoryTalk Services For FactoryTalk View Applications
Add Items
Data
Points
View the current quality and current value of the data point to ensure
good health:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMsb9701SE
Configuring FactoryTalk Services For FactoryTalk View Applications 2--15
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMsb9701SE
2--16 Configuring FactoryTalk Services For FactoryTalk View Applications
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMsb9701SE
Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications 2--17
Context:
Directions:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMe9701SE
2--18 Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMe9701SE
Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications 2--19
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMe9701SE
2--20 Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMe9701SE
Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications 2--21
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMe9701SE
2--22 Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications
10. When you create your new area, you should see the following
graphic:
11. When you add your new data server, you should see the
following graphic:
Data Server
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMe9701SE
Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications 2--23
13. When you create your new device shortcut, you should see the
following graphic:
Shortcut
Path to
Controller
Add items
Your shortcut
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
COMe9701SE
2--24 Exercise: Configuring FactoryTalk Services For FactoryTalk View Applications
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
COMe9701SE
Lesson 3
Creating a FactoryTalk View SE
Application and Configuring
Communications
Using an RSLinx Enterprise Device
Server
What You Will Learn After completing this lesson, you should be able to:
x Create a FactoryTalk View SE application
x Configure communications using an RSLinx Enterprise Device
Server by performing the following tasks:
-- Add an RSLinx Enterprise driver
-- Add device shortcuts for RSLinx Enterprise communications
Tell students that the Product Type The FactoryTalk View Studio development environment is used to
Selection screen includes an option for create, open, build, and modify FactoryTalk View SE applications.
creating a machine-level application
using FactoryTalk View ME software. If
they are interested in learning more When you first open FactoryTalk View Studio, you are prompted to
about that particular software, refer them choose the type of application you are working with:
to the FactoryTalk View ME and
PanelView Plus Programming course
(Course No. CCV204) or the three-part
RSTrainer for FactoryTalk View ME
computer-based training course.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
APPsb9701SE
3--2 Creating a FactoryTalk View SE Application and Configuring Communications
Tip " Once FactoryTalk View Studio software is open, you can switch
between product types (Network, Local, or FactoryTalk View ME)
from the File menu, by selecting Select Product Type...
Standard Graphics
Toolbar Toolbar
Object Toolbar
Application
Explorer
Window
Graphic
Display
Display
Window
Status Diagnostics
Bar List
Explain that the placement of the The main software screen can display the following components:
toolbars, the Application Explorer, and
other components can be configured by x Application Explorer Window: Provides access to the
the user. components of the open application.
x Diagnostics List: Displays information gathered by the
FactoryTalk Diagnostics module of the software.
x Display Window: Presents a work space for components selected
from the Application Explorer window.
x Graphic Display: Provides space for users to design application
screens.
x Status Bar: Displays information about selected items.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
APPsb9701SE
Creating a FactoryTalk View SE Application and Configuring Communications 3--3
2. After your RSLinx Enterprise Server has been created, you can
configure your communication setup:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
APPsb9701SE
3--4 Creating a FactoryTalk View SE Application and Configuring Communications
Device Shortcut
Target Device
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
APPsb9701SE
Creating a FactoryTalk View SE Application and Configuring Communications 3--5
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
APPsb9701SE
3--6 Creating a FactoryTalk View SE Application and Configuring Communications
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
APPsb9701SE
Exercise: Creating a FactoryTalk View SE Application and Configuring Communications 3--7
Exercise A In this exercise, you will practice creating a local FactoryTalk View
SE (Site Edition) application and configuring communications using
RSLinx Enterprise.
Context:
Before you can create graphic objects that display data from a
processor or controller, you need to establish communications using
an RSLinx Enterprise data server.
Directions:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
APPe9701SE
Exercise: Creating a FactoryTalk View SE Application and Configuring Communications 3--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
APPe9701SE
3--10 Exercise: Creating a FactoryTalk View SE Application and Configuring Communications
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
APPe9701SE
Lesson 4
Configuring OPC Communications
in a FactoryTalk View SE
Application
What You Will Learn After completing this lesson, you should be able to:
x Configure communications using an RSLinx OPC data server by
performing the following tasks:
-- Configure a communications driver
-- Create an OPC topic
x Locate HMI project files
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
OPCsb9701SE
4--2 Configuring OPC Communications in a FactoryTalk View SE Application
Explain to students that there are seven RSLinx software serves OPC data to the Rockwell Automation line
different versions of RSLinx Classic of programmable controllers. Unlike RSLinx Enterprise software, it
software to meet different cost and
functionality requirements. For more provides a download path for the various RSLogix software
information, students can refer to the packages to the matching controller.
RSLinx Classic Getting Results Guide.
Use RSLinx Classic software when:
x The information being served to FactoryTalk View SE Servers or
FactoryTalk View SE Clients is local.
x The RSLinx data server is installed on the same computer as the
FactoryTalk View SE Server.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
OPCsb9701SE
Configuring OPC Communications in a FactoryTalk View SE Application 4--3
If students ask, remind them that driver Once the necessary drivers have been configured, the RSWho
configuration will be covered later in this window can be used to view configured drivers:
lesson.
Backplane Modules
Autobrowse Feature
Configured Networks
Selected Backplane
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
OPCsb9701SE
4--4 Configuring OPC Communications in a FactoryTalk View SE Application
Context:
Before you can create graphic objects that display data from a
processor or controller, you need to establish communications using
an OPC data server.
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the OPC_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
OPCe9701SE
4--6 Exercise: Configuring OPC Communications in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
OPCe9701SE
Exercise: Configuring OPC Communications in a FactoryTalk View SE Application 4--7
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
OPCe9701SE
4--8 Exercise: Configuring OPC Communications in a FactoryTalk View SE Application
Answers Exercise A
2. The OPC Data Server Properties window should look like the
following:
OPC Topic
Controller
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
OPCe9701SE
Exercise: Configuring OPC Communications in a FactoryTalk View SE Application 4--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
OPCe9701SE
4--10 Exercise: Configuring OPC Communications in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
OPCe9701SE
Lesson 5
Creating an HMI Tag Database in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to:
x Create an HMI tag folder
x Create HMI tags
x Import and export an HMI tag database
x Create and modify HMI tags and folders using Microsoft Excel
software
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CTDsb9701SE
5--2 Creating an HMI Tag Database in a FactoryTalk View SE Application
Tip " If your application contains multiple machines that reference the
same tags, you can duplicate an existing HMI folder and rename the
tags within the folder.
Form View
Spreadsheet View
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CTDsb9701SE
Creating an HMI Tag Database in a FactoryTalk View SE Application 5--3
Data Source
Starting Tag Value
Tag Value Retention
Open the Tags editor and show students System tags are specialized read-only memory tags that are created
the available system tags. automatically along with a new application.
Important: Don’t demo the tasks here;
they will be covered in the Here’s How These tags reference information such as recent alarm values, current
section. system time and date, communication status and errors, or other
system-level data.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CTDsb9701SE
5--4 Creating an HMI Tag Database in a FactoryTalk View SE Application
You can select the data source for a device tag using the Tag
Browser:
Tag Address
If you are using HMI tags from a previously created application, use
the Tag Import and Export Wizard to manipulate tag database files:
Potential Learning Problem: The Use the Tag Import and Export wizard for the following tasks:
terms “HMI tag database” and
“FactoryTalk View tag database” are x Export the HMI tag database to a .csv file
interchangeable. x Import a .csv file to the HMI tag database
Explain that merging HMI tag database x Merge HMI tag databases
files combines the export of tags from
one file with the import of the tags to x Import A.I. Series or Logic 5 database (.csv) files
another file. x Import RSLogix 5 or RSLogix 500 address and symbol files
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CTDsb9701SE
Creating an HMI Tag Database in a FactoryTalk View SE Application 5--5
Mention to students that more tag Creating and Modifying HMI Tags and Folders Using Microsoft
database fields exist than what are Excel Software
shown in the following example. The
other fields can be accessed using the
scroll bar. Certain tag properties can be modified using the Tags editor;
however some properties (e.g., tag name) can be modified by
exporting the HMI tag file and opening the corresponding .csv file
using Microsoft Excel software:
Folders Section
Tag Section
Tip " If you need to change the name of a previously created tag, another
option is to duplicate the tag, change the tag name, and delete the
original tag.
Tip " Exported files are saved using the .csv extension. Therefore you
should browse for all files when opening the file using Microsoft
Excel software.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CTDsb9701SE
5--6 Creating an HMI Tag Database in a FactoryTalk View SE Application
If this course is part of a standard When you import and export HMI tags, FactoryTalk View SE
school, mention that alarms will be software also provides an option to import and export alarm
covered in a later lesson.
information associated with the tags. This data is saved in a separate
.csv file:
Analog Alarms
Digital Alarms
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CTDsb9701SE
Exercise: Creating an HMI Tag Database in a FactoryTalk View SE Application 5--7
Exercise A In this exercise, you will practice creating HMI tags and folders. You
will also practice importing and exporting the tag database and
modifying the database using Microsoft Excel software.
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the CTD_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CTDe9701SE
5--8 Exercise: Creating an HMI Tag Database in a FactoryTalk View SE Application
Tip " You may also go access the wizard from the Windows Start Menu by
selecting StartoProgramsoRockwell Softwareo
FactoryTalk ViewoToolsoTag Import and Export Wizard.
12. Create and modify HMI tags and folders using Microsoft Excel
software by performing Steps 13. through 20.:
13. Copy Row 5.
14. Insert Copied Cells into Row 7.
15. Rename the folder in Row 7, Column B to Comments.
16. Copy Row 12.
17. Insert Copied Cells into Row 14.
18. Rename the tag in Row 14, Column B to Comments\Repair1.
19. Add the following tag descriptions to the appropriate column in
the CSV file:
Tip " Click Yes to any warnings about keeping the .CSV format.
21. Within FactoryTalk View SE, open the Tag Import and Export
Wizard.
22. Import the FactoryTalk View tags from the .CSV file you just
edited into the AppliSE application.
Tip " Make sure to select Update existing (slower) as you modified the
descriptions of several tags.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CTDe9701SE
Exercise: Creating an HMI Tag Database in a FactoryTalk View SE Application 5--9
23. Open the Tag Database editor and then confirm your edits are
correctly displayed.
Tip " If the Tag Database was open while the .CSV file was edited,
Refresh the Tag Database.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CTDe9701SE
5--10 Exercise: Creating an HMI Tag Database in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CTDe9701SE
Exercise: Creating an HMI Tag Database in a FactoryTalk View SE Application 5--11
11. The tag address of all the tags in the CSV file. In this file only
the Scaling\Timer tag has an address listed.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CTDe9701SE
5--12 Exercise: Creating an HMI Tag Database in a FactoryTalk View SE Application
22. Select Import FactoryTalk View tag CSV files as shown below:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CTDe9701SE
Lesson 6
Creating a Graphic Display in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to:
x Add a graphic display
x Create and manipulate graphic objects
x Add images to an application
If this lesson is part of a standard From the Application Explorer, you can access the Graphics folder,
school, mention that several of these which contains a variety of editors used to create and build graphic
editors will be discussed in more detail
in the following lessons. displays:
Graphics Folder
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDsb9701SE
6--2 Creating a Graphic Display in a FactoryTalk View SE Application
New Display
If students ask, tell them more details The Display Settings dialog box is used to configure individual
about the display settings features can graphic displays.
be found in the online FactoryTalk View
SE User’s Guide.
Properties Tab
The Display Settings dialog box opens by default to the Properties
tab, which is used to define the following graphic display
characteristics such as:
x Display types
x Update rates
x Security codes
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDsb9701SE
Creating a Graphic Display in a FactoryTalk View SE Application 6--3
Display Type
Security Code
Tag Update
Rates
Behavior Tab
The Behavior tab provides additional display and object settings such
as:
x Commands that run with the graphic display is opened or closed
x On--screen keyboard visibility
x Input field colors when the field is selected or not selected
Keyboard Visibility
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDsb9701SE
6--4 Creating a Graphic Display in a FactoryTalk View SE Application
Grid Configuration
Tell students that decreasing the space Enabling a grid for FactoryTalk View SE graphic displays provides a
between horizontal and vertical lines reliable method for lining up graphic objects on the display:
provides better control of object
placement.
Grid Lines
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDsb9701SE
Creating a Graphic Display in a FactoryTalk View SE Application 6--5
Tip " Users can modify items in the Graphics Library or create new library
files.
Drawing Objects
Submenu
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDsb9701SE
6--6 Creating a Graphic Display in a FactoryTalk View SE Application
The Properties dialog box for other drawing objects (the ellipse, in
the following graphic) provides graphics configuration tools:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDsb9701SE
Creating a Graphic Display in a FactoryTalk View SE Application 6--7
If students ask, show them the The Graphics toolbar provides shortcuts to performing the following
drop-down menu selections that graphic manipulations:
correspond to the icons.
Flip
Duplicate Space Vertical
Cut Copy Paste Space Horizontal Flip
Vertical Horizontal
Send To Show/Hide
Group Back Zoom In Undo Redo Object Explorer
Ungroup Bring To Zoom Out Show/Hide
Front Property Panel
Tip " It is not necessary to ungroup a grouped graphic object to modify the
properties of a single component of the group.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDsb9701SE
6--8 Creating a Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDsb9701SE
Creating a Graphic Display in a FactoryTalk View SE Application 6--9
The Image Browser window will appear with all images from the
Image folder available:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDsb9701SE
6--10 Creating a Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDsb9701SE
Exercise: Creating a Graphic Display in a FactoryTalk View SE Application 6--11
Exercise A In this exercise, you will practice adding graphic displays, drawing
and arranging objects, and adding images in a FactoryTalk View SE
(Site Edition) application.
Context:
Before you can view data from a processor through an HMI (Human
Machine Interface), you must create a display.
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the CGD_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDe9701SE
6--12 Exercise: Creating a Graphic Display in a FactoryTalk View SE Application
Tip " When creating graphic displays, save your work often.
8. Select all three rounded rectangles and access the Property Panel
to change their color to blue.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDe9701SE
Exercise: Creating a Graphic Display in a FactoryTalk View SE Application 6--13
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDe9701SE
6--14 Exercise: Creating a Graphic Display in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDe9701SE
Exercise: Creating a Graphic Display in a FactoryTalk View SE Application 6--15
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGDe9701SE
6--16 Exercise: Creating a Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGDe9701SE
Lesson 7
Building an Interactive Graphic
Display in a FactoryTalk View SE
Application
What You Will Learn After completing this lesson, you should be able to perform the
following tasks:
x Add objects from a Graphics Library
x Add interactive objects
x Create a local message file and display object
x Test a FactoryTalk View SE graphic display
Tip " Users can modify items in the Graphics Library or create new library
files.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDsb9701SE
7--2 Building an Interactive Graphic Display in a FactoryTalk View SE Application
Tip " Objects from an open library file can then be dragged (or copied and
pasted) to another graphic display.
Many objects interact with the FactoryTalk View Tag Database. This
allows for control and display configuration.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDsb9701SE
Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--3
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDsb9701SE
7--4 Building an Interactive Graphic Display in a FactoryTalk View SE Application
Button Object
Tell students that a list of commands can The Button object provides a method of running a FactoryTalk View
be found in the FactoryTalk View SE command. Running a command allows you to:
User’s Guide.
x Navigate to other graphic screens
x Set the value of tags
x Control data logging
x Control login and logout
General Tab: Configure how the button will look. Choose a style
for the button’s appearance.
Styles
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDsb9701SE
Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--5
Up Appearance Tab: Specify what the button will look like when it
is not in its pressed position.
Tell students that it is good practice to Down Appearance Tab: Specify what the button will look like
issue a single command from the when it is in its pressed position. By default, it will have the same
Release position rather than the Press
position. This allows an operator to properties as the Up Appearance.
move off a pressed button without
running the command if he had pressed
it by mistake.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDsb9701SE
7--6 Building an Interactive Graphic Display in a FactoryTalk View SE Application
x Run Command
x Set tag to 1
x Set tag to 0
x Toggle tag value
x Set tag to 1 on press and to 0 on release
x Set tag to 0 on press and to 1 on release
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDsb9701SE
Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--7
The action of the multistate push button depends on how the “Next
state based on” field is set:
x Current State: The application switches the button from the
current state to the next state and writes out the next state value.
x Value Control: The application reads the value of the Value
control and if the value matches one of the button’s state values,
changes the button to the next state and writes out the next state
value.
x Select this option if you want the button to base its state on
external changes to the Value control.
x If the value does not match one of the button’s state values,
the application changes the button to State 0 and writes out the
State 0 value.
x If you use the auto-repeat function for this button, the application
uses the last value written out to determine the next value to write
out, regardless of the “Next state based on” setting.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDsb9701SE
7--8 Building an Interactive Graphic Display in a FactoryTalk View SE Application
For example, an interlocked push button Interlocked: An interlocked push button is one of a group of buttons
may be used to control position of the that have the same control tag.
guide that directs the bottles from the
main conveyor to one of the three x The buttons function together in much the same way as Microsoft
secondary conveyors. Only one Windows option buttons: pressing one cancels the others and
secondary conveyor can be operational
at any moment. makes a new selection.
x Although interlocked push button function as a group, you can
add them to the screen one at a time.
x When the operator presses an interlocked push button, it changes
from State 0 to State 1 and sends the Button Value to the data
source.
x When the operator presses another interlocked push button, it
changes from State 0 to State 1, sends its button value to the data
source and the first button is set back to State 0.
For example, two ramp push buttons Ramp: A ramp changes a tag’s value by a given increment.
may be used to create a control to raise
or lower a value. x When the operator presses the ramp button, the application reads
the Value connection value, stores a local copy of the value, adds
or subtracts the ramp amount from the local value, and writes the
result to the Value control at the data source.
x Configure the auto repeat function under the Timing tab to allow
an operator to hold down the button and have it increment
continuously. Use ramp buttons in pairs to create a raise and
lower control.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDsb9701SE
Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--9
For example, you might use a numeric x Use the numeric display object to show the operator numeric
display to show the current temperature information from the data source.
of an oven in a bakery.
For example, you might set up strings x Use the string display object to show the operator messages from
displays that report on the state of a the data source.
process or operation, or that provide
instructions about what the operator
should do next. Gauge and Graph Objects
FactoryTalk View Studio contains objects to represent data in both
gauge and bar graph format.
Gauge: The gauge control will display tag or expression values with
as sweeping line. Options include the ability to set two thresholds
with unique fill colors:
For example, a bar graph push button Bar Graph and Scale: These objects are used to display data in a
may be used to monitor the speed of a bar chart format. Two thresholds with unique fill colors may be
conveyor.
configured. Typically a scale object is used in conjunction with a bar
graph to show tick marks.
Bar Scale
Object
Bar Graph
Text Objects
Object
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDsb9701SE
7--10 Building an Interactive Graphic Display in a FactoryTalk View SE Application
Scale Setup
For example, a scale push button may The scale can be used as a ruler or measuring guide. The scale can be
be used to help visually determine the setup to have the tick marks configured in the up, down, left, or right
speed of a conveyor as depicted by the
bar graph. positions. You can also configure the number of major and minor
ticks:
You can place the scale next to a bar
graph, with text labels at the top and
bottom, to illustrate the range of the bar
graph.
Tick
Direction
Tell students that some buttons have General Tab: Assign general appearance settings (color, highlight,
touch margins which are useful when border, etc.) here. Each button type will have its own unique settings
buttons are positioned close together.
on this tab.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDsb9701SE
Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--11
States Tab: Depending on the push button type, many states may be
assigned to it. Configure each state, including caption, colors and
images, if any. State settings may be copied and pasted onto other or
all states.
Explain to students that you can assign Connections Tab: Define the connections to the Tag Database on
controls to specific tags or to this tab. Each push button will have a Value field.
expressions.
Opens Tag
Browser
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDsb9701SE
7--12 Building an Interactive Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDsb9701SE
Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--13
Trigger Value
Trigger values are used to signify when to prompt a message. They
have the following constraints:
x Must be positive or negative integers.
x Zero (0), is not an acceptable trigger value.
x Trigger values do not need to be consecutive, but they must be
unique for each message.
For example, you could use trigger x The trigger value cannot be blank.
values of 1, 2, and 3, or values of 10, 20,
and 30.
Messages
Messages will prompt the operator when signalled by the trigger and
have the following properties:
x Messages can be up to 256 characters long.
x The new line character, \n, may be used to specify that the
message continues onto the next line after the character.
x Strings may be added to the message by right-clicking the
Message column and then clicking Edit String to open the String
Edit dialog box.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDsb9701SE
7--14 Building an Interactive Graphic Display in a FactoryTalk View SE Application
Test and
Edit Display
Buttons
Exercise A In this exercise, you will practice adding objects from a Graphics
Library file, adding interactive objects, and creating a local message
file and display.
Context:
Motor
Mixing
Vat
Outflow
Pipe
Pump
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the BGD_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDe9701SE
7--16 Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application
5. Above the mixing vent, add a motor from the Graphics Library.
6. Use the Graphics Library to add pipes (with and without liquid
visible) that empty into the top of the mixing vat.
7. Add a short outflow pipe from the Graphics Library that will
drain the mixing vat from the bottom.
8. Add a pump graphic from the Graphics Library that connects an
outflow pipe to the top of the pump.
9. Add a pipe (with liquid visible) from the Graphics Library that
connects to the side of the pump.
Objects in the display have been labelled to aid you in this lab:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDe9701SE
Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--17
B. Duplicate the Water Line text object and replace the text
“Water Line” with Syrup Line.
C. Why is duplicating better than copying and pasting?
D. Duplicate the Syrup Line text object and replace the text
“Syrup Line” with Mixer Control.
E. Arrange the objects according to the example given at the
beginning of the exercise.
11. Objects “B” should be configured as follows:
A. Create a Panel (basic graphic object).
B. Create a Text Object and insert the text Start Water.
C. Create a momentary pushbutton with the following
configuration:
State 0:
-- Caption: OFF.
-- Font: Arial, 12 pt, bold.
State 1:
-- Caption: ON.
-- Font: Arial, 12 pt, bold.
Connections Tab:
-- Tag Value:
{::LinxE_Shortcut]Program:Mixing.H20_on_off}
-- Tag Indicator:
{::LinxE_Shortcut]Program:Mixing.H20_hold}
D. Arrange the objects according to the example given at the
beginning of the exercise.
12. Objects “C” should be configured as follows:
A. Duplicate the group created in Step 11.
B. Replace the “Start Water” text with Start Syrup.
C. Tag Value:
{::LinxE_Shortcut]Program:Mixing.Syrup_on_off}
D. Tag Indicator to:
{::LinxE_Shortcut]Program:Mixing.Syrup_hold}
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDe9701SE
7--18 Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDe9701SE
Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--19
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDe9701SE
7--20 Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application
State 1:
-- Caption: Mixer ON
-- Font: Arial, 12 pt, bold
Connections:
-- Tag Value:
{::LinxE_Shortcut]Program:Mixing.Mixer_on_off}
B. Arrange the objects according to the example given at the
beginning of the exercise.
20. Object “J” should be configured as follows:
A. Create a Text Object and insert the text Actual.
B. Insert a Numeric Variable referencing the tag:
{::LinxE_Shortcut]Program:Mixing.Mixer_rpm_actual}
C. Font: Arial, 14pt, bold
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDe9701SE
Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--21
Button Settings:
-- Select Ramp Down
-- Lower limit: 0
-- Ramp value: 10
Label:
-- Image: Arrow Down
Timing:
-- Auto Repeat Rate: 10
Connections:
-- Tag Value to: {::LinxE_Shortcut]Program:Mixing.
Mixer_rpm_setpoint}
B. Arrange the object according to the example given at the
beginning of the page.
23. Object “M” should be configured as follows:
A. Create a Ramp Button.
Button Settings:
-- Select Ramp Up
-- Upper limit: 1740
-- Ramp value: 10
Label:
-- Image to Arrow Up
Timing:
-- Auto Repeat Rate: 10
Connections:
-- Tag Value to: {::LinxE_Shortcut]Program:Mixing.
Mixer_rpm_setpoint}
B. Arrange the object according to the example given at the
beginning of the page.
24. Object “N” should be configured as follows:
A. Create a Text Object and insert the text Setpoint
B. Font: Arial, 14pt, bold.
C. Arrange the object according to the example given at the
beginning of the exercise.
25. Add a panel to the display and place it behind the mixer controls.
26. Save your display.
27. Test your FactoryTalk View SE graphic display.
Make sure to test all buttons.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDe9701SE
7--22 Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDe9701SE
Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application 7--23
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
BGDe9701SE
7--24 Exercise: Building an Interactive Graphic Display in a FactoryTalk View SE Application
Answers Exercise A
4. You should have found the mixing vat in the Tanks file.
10.
C. Answers may vary slightly but should include at least one of
the following:
-- Duplicate works until you deselect the object.
-- If you duplicate an object, move it, and then select
Duplicate again, the object will be duplicated and moved in
one step. This is useful for creating a series of objects with
an equal distance between them.
-- Duplicating does not use the clipboard, so its contents are
not changed when you use this command.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
BGDe9701SE
Lesson 8
Animating a Graphic Display in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to:
x Add an existing graphic display
x Animate graphic objects
x Creating an expression within an animation
Add Existing
Display
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDsb9701SE
8--2 Animating a Graphic Display in a FactoryTalk View SE Application
Available Animations
Foreground
Color/Blink
Background
Number of Color/Blink
Thresholds
Blink Rate
Threshold Value
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDsb9701SE
Animating a Graphic Display in a FactoryTalk View SE Application 8--3
For example, you could have a tank that x Fill: Objects can appear to fill in different directions and to a
fills or empties. specified percent or range.
Fill Percentage
Minimum and
Maximum Values
Fill Direction
Change
Percentage
Minimum and
Maximum Values Anchor Point
For example, you could have an x Rotation: The degrees of rotation and the center of rotation may
animated fan that spins when it is turned be configured.
on.
x Touch: Commands may be configured for press, repeat and
release actions.
x Horizontal and Vertical Slider: The tag value can change as the
position of the slider changes.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDsb9701SE
8--4 Animating a Graphic Display in a FactoryTalk View SE Application
Refer students to the FactoryTalk View Use the Expression editor to create:
ME online Help system for more
information about expressions. x “If-Then-Else” statements
x Logical statements (i.e., AND, OR, NOT)
x Relational statements (i.e., greater than, less, than, etc.)
Tip " You can also access the Tag Browser from the Expression editor.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDsb9701SE
Animating a Graphic Display in a FactoryTalk View SE Application 8--5
The syntax validation feature will check to see if the expression you
created is valid. If an expression is not valid, the software indicates
the location(s) of the invalid information.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDsb9701SE
8--6 Animating a Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDsb9701SE
Exercise: Animating a Graphic Display in a FactoryTalk View SE Application 8--7
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the AGD_9701SE_A1.APA file.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDe9701SE
Exercise: Animating a Graphic Display in a FactoryTalk View SE Application 8--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDe9701SE
8--10 Exercise: Animating a Graphic Display in a FactoryTalk View SE Application
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDe9701SE
8--12 Exercise: Animating a Graphic Display in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDe9701SE
Exercise: Animating a Graphic Display in a FactoryTalk View SE Application 8--13
8.
A. Your Visibility animation should look similar to the
following:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDe9701SE
8--14 Exercise: Animating a Graphic Display in a FactoryTalk View SE Application
9.
A. CappedBottle is found within the Object Explorer:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDe9701SE
Exercise: Animating a Graphic Display in a FactoryTalk View SE Application 8--15
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDe9701SE
8--16 Exercise: Animating a Graphic Display in a FactoryTalk View SE Application
14.
A. Your Visibility animation should look similar to the
following:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDe9701SE
Exercise: Animating a Graphic Display in a FactoryTalk View SE Application 8--17
15.
A. Your Visibility animation should look similar to the
following:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AGDe9701SE
8--18 Exercise: Animating a Graphic Display in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AGDe9701SE
Lesson 9
Using Tag Placeholders and
Creating a FactoryTalk View SE
Client
What You Will Learn After completing this lesson, you should be able to:
x Add tag placeholders to a graphic display
x Create a FactoryTalk View SE Client configuration file
x Run a FactoryTalk View SE Client Session
Use tag placeholders to mark where you want to insert a tag name at
runtime.
At runtime you supply the tag names associated with the particular
operation and these are used in place of the tag placeholders.
Tip " Use the Tag Substitution menu option to replace tag placeholders.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CLIsb9701SE
9--2 Using Tag Placeholders and Creating a FactoryTalk View SE Client
Parameter Files
When you create a graphic display that uses tag placeholders, you
can specify a parameter file that will supply tag names for the tag
placeholders.
This allows you to use different sets of tags with a single graphic
display:
Tag Substitution
Instead of creating parameter files to replace a tag name, you can
replace only what is unique about each tag.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CLIsb9701SE
Using Tag Placeholders and Creating a FactoryTalk View SE Client 9--3
Display
Parameter
Tags
For example, John Hancock would If the file name has a space in it, enclose the name in double quotes.
become “John Hancock”.
The configuration file defines the run time client. The information in
it includes:
x The name of the FactoryTalk View SE application file that it
connects to at run time
x Run time properties and behavior of the client
x The components that will be started when the connection is made:
Initial Display
Display Parameters
Initial Client Key File
Startup Macro
Shutdown Macro
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CLIsb9701SE
9--4 Using Tag Placeholders and Creating a FactoryTalk View SE Client
Launch SE Client
It can also be launched from the Windows Start Menu and then going
to ProgramsoRockwell SoftwareoFactoryTalk ViewoFactoryTalk
View Site Edition Client.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CLIsb9701SE
Exercise: Using Tag Placeholders and Creating a FactoryTalk View SE Client 9--5
Exercise A In this exercise, you will practice substituting reference tags with tag
placeholders in a FactoryTalk View SE application. You will then
create a FactoryTalk View SE Client to run and test your application.
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the CLI_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CLIe9701SE
9--6 Exercise: Using Tag Placeholders and Creating a FactoryTalk View SE Client
Tip " Display commands are ignored when issued from FactoryTalk View
Studio design environment.
Tip " If you are prompted to log in, use the user name administrator
and a password administrator.
12. Click the buttons at the top of the display and verify that you see
the different tanks’ data.
13. Review the Diagnostic Bar to see if any errors were generated.
14. Minimize or close your FactoryTalk View SE application.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CLIe9701SE
Exercise: Using Tag Placeholders and Creating a FactoryTalk View SE Client 9--7
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CLIe9701SE
9--8 Exercise: Using Tag Placeholders and Creating a FactoryTalk View SE Client
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CLIe9701SE
Exercise: Using Tag Placeholders and Creating a FactoryTalk View SE Client 9--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CLIe9701SE
9--10 Exercise: Using Tag Placeholders and Creating a FactoryTalk View SE Client
12. You should see the the corresponding tank data for the tank
button you press at the top of the screen:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CLIe9701SE
Lesson 10
Configuring Global Objects in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to configure global
objects in a FactoryTalk View SE Application.
Global Objects
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGOsb9701SE
10--2 Configuring Global Objects in a FactoryTalk View SE Application
Global Object
Display
Standard
Display
Tip " Global object displays have the file extension .ggfx while standard
graphic displays have the file extension .gfx
Tip " Global Object displays will support Test Display mode, but they
cannot be displayed at runtime.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGOsb9701SE
Configuring Global Objects in a FactoryTalk View SE Application 10--3
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGOsb9701SE
10--4 Configuring Global Objects in a FactoryTalk View SE Application
The Link properties are given default values when the reference
object is created. You can change the default values that are assigned
to a new reference object by setting the global object defaults:
Updating Information
Changes made to the base object will be reflected in the reference
objects linked to it the next time the displays containing the
reference objects are opened, or refreshed by closing and reopening.
Broken Links
When a reference object has a LinkBaseObject property referring to
a base object that no longer exists or is the wrong type of object, it
becomes a broken link object.
A broken link object can be moved and A broken link object is displayed as a rectangle with a red cross and
deleted but no other editing is allowed. a white background:
Tip " If a broken link object refers to a base object that has been restored,
it will become a reference object.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGOsb9701SE
10--6 Configuring Global Objects in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGOsb9701SE
Exercise: Configuring Global Objects in a FactoryTalk View SE Application 10--7
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the CGO_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGOe9701SE
10--8 Exercise: Configuring Global Objects in a FactoryTalk View SE Application
Tip " If the cooling blower is yellow or has a fault, turn the SSL off and
stop the feedback. Next, reset faults on the SSL and the cooling
blower.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGOe9701SE
10--10 Exercise: Configuring Global Objects in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGOe9701SE
Exercise: Configuring Global Objects in a FactoryTalk View SE Application 10--11
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
CGOe9701SE
10--12 Exercise: Configuring Global Objects in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
CGOe9701SE
Lesson 11
Switching Languages in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to:
x Add languages to an applicaiton
x Import and export text strings
x Modify application languages
x Use language commands
Application Languages
When you create a new FactoryTalk View application, you must
select a language for the application. The language you select
becomes the default application language:
Windows-supported
languages
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAsb9701SE
11--2 Switching Languages in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAsb9701SE
Switching Languages in a FactoryTalk View SE Application 11--3
Refer students to FactoryTalk View SE Undefined text strings in an application display as question
User’s Manual for more information marks (?), unless the application is set up to display undefined
about modifying Unicode text files in
Microsoft Excel and in Notepad. strings in the default language.
If you are importing text into a network application, you can import
text for multiple HMI servers at the same time.
If you are importing strings from a Before importing translated or modified text strings, it
Unicode text file, before you click Import, Guideline is recommended to export the current text strings in
in the list of application languages,
select the language of the strings you order to create a backup.
are about to import.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAsb9701SE
11--4 Switching Languages in a FactoryTalk View SE Application
Text strings that exist in an application, but do not exist in the import
file, are not deleted or modified during the import operation. This
allows you to import only text strings that have been modified.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAsb9701SE
Switching Languages in a FactoryTalk View SE Application 11--5
Refer students to FactoryTalk View SE Optimizing duplicate strings allows any string that occurs multiple
User’s Manual for more information on time in the application to be displayed only once in the Excel
working with duplicate text strings.
spreadsheet.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAsb9701SE
11--6 Switching Languages in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAsb9701SE
Switching Languages in a FactoryTalk View SE Application 11--7
In the translated text file, the only text that needs to be modified is
the text inside the quotation marks in the string definition column:
Modifying the component type or string FactoryTalk View SE software requires that parts of the Unicode text
reference number prevents FactoryTalk file remain as they were when exported:
View SE software from identifying the
object correctly when you import the x Do not change the entries in the component name column, unless
text. the component was renamed in the application after the text was
exported.
x Do not modify the component type or string reference number.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAsb9701SE
11--8 Switching Languages in a FactoryTalk View SE Application
Refer students to FactoryTalk View SE Use the Language command to switch languages at run time.
User’s Manual for more information
about supporting multiple languages by The Language command uses the following syntax:
setting up individual libraries.
Language <RFC1766 name>
Where <RFC1766 name> is a code name for the language you
want to switch to.
To allow language switching at run time, provide the operator with a
way to run the Language command for each language the application
supports.
Tip " If you create buttons to allow language switching at run time, be
If students ask, explain that the flag aware that button captions will be translated when a language switch
graphics were imported into the occurs. To avoid confusion, use graphics instead of text to represent
application.
the different languages.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAsb9701SE
Switching Languages in a FactoryTalk View SE Application 11--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAsb9701SE
11--10 Switching Languages in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAsb9701SE
Exercise: Switching Languages in a FactoryTalk View SE Application 11--11
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the SLA_9701SE_A1.APA file.
2. Export text strings into a Unicode text file located in the root
directory of C:\.
3. Open the C:\AppliSE_AppliSE_en--US.txt file that was just
created.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAe9701SE
11--12 Exercise: Switching Languages in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAe9701SE
Exercise: Switching Languages in a FactoryTalk View SE Application 11--13
10. Use the language command and configure the button to have a
release action of English (United States), en--US.
11. Type EN in the Caption field of the Up Appearance tab and select
any color.
12. Duplicate the EN button and move it above the first EN button.
13. Use the language command and configure the button to have a
release action of French (France), fr--FR.
14. Change the Up Appearance caption to FR and select any color.
15. Save your changes to the display.
16. Launch your FactoryTalk View SE Client named AirCoolers.
17. Click the FR button.
18. What do you show on the language buttons? Why?
19. Export French text strings into a Unicode text file located in the
root directory of C:\.
Tip " Select the French language in the Language Configuration dialog
box.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAe9701SE
11--14 Exercise: Switching Languages in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAe9701SE
Exercise: Switching Languages in a FactoryTalk View SE Application 11--15
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAe9701SE
11--16 Exercise: Switching Languages in a FactoryTalk View SE Application
Answers Exercise A
10. In the Release action field of the Button Properties dialog box,
click the ellipsisoAll Commands and
MacrosoLanguageoNextoEnglish (United States), en--US.
18. A question mark appears on the buttons. The French language
was not recorded for the button caption. The buttons were
created after the import of the French language.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAe9701SE
Exercise: Switching Languages in a FactoryTalk View SE Application 11--17
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SLAe9701SE
11--18 Exercise: Switching Languages in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SLAe9701SE
Lesson 12
Configuring Alarms in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to:
x Create HMI tags in a FactoryTalk View SE application
x Configuring Alarms for HMI tags
x Configure the HMI tag alarm setup editor
x Create or modify an HMI tag alarm summary
x Enable FactoryTalk Alarms and Events on an RSLinx Enterprise
Device Server
x Create or modify a FactoryTalk Alarms and Events summary
Data Source: Specifies where the data for a tag will come from.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--2 Configuring Alarms in a FactoryTalk View SE Application
In addition to the tags you create, When you create an HMI tag you assign it a type and data source.
FactoryTalk View SE software provides a
set of system tags. There are analog,
digital, and string system tags.
Data Source
Tag Type
The three types of tags that you can create are:
Analog:
Analog tags store 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:
Digital tags will accept 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:
String tags store ASCII strings that can be a string of characters or
whole words. The maximum size allowed for a string is 82
characters.
Data Source
The data source specifies where an HMI tag’s data comes from. The
data source for analog, digital, or string HMI tags can be device or
memory.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Configuring Alarms in a FactoryTalk View SE Application 12--3
Device:
An HMI tag with device as its data source receives data from a
source external to FactoryTalk View SE software. The data can come
from a programmable controller or other device via RSLinx, or from
another OPC server.
Memory:
You can specify that a memory tag’s An HMI tag with memory as its data source receives data from
value be retained even if the HMI server FactoryTalk View SE software internally. A memory tag can be used
is shut down.
to store values internally. Its value at start up is defined by the Initial
Value setting.
System:
For system tags, which can be analog, digital, or string types, the
data source is a special type called System.
Alarm set up for HMI analog and digital Alarms are an important part of most plant control applications
tags are detected at the HMI server. because they alert operators when something goes wrong.
Tag Editor
Alarm Editor
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--4 Configuring Alarms in a FactoryTalk View SE Application
Point out to students that configurations In the Alarm Setup editor you specify the general features of all
in the Alarm Setup editor will effect all alarms for the HMI server where your application is running.
alarms. If students want to configure an
individual alarm they will do that in the
HMI tags editor. Alarm Setup Editor
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Configuring Alarms in a FactoryTalk View SE Application 12--5
This editor has three tabs in which you specify the following:
x Setup: Whether or not an alarm will be generated when a tag
value is approaching normal range.
x Severities: Logging destinations and annunciation for alarm
severities and events.
x User Messages: User default messages for the alarm log file and
printer.
A single HMI tag alarm summary can display alarms from multiple
HMI servers located on different computers. Each HMI server
maintains a list of up to 2,000 alarms.
As new alarms occur, they are displayed at the top of the list in the
alarm summary. When the list is full and a new alarm is generated,
the alarm at the bottom of the list (the oldest alarm) is acknowledged
automatically by the system, and then dropped from the list.
Refer students to the FactoryTalk View Alarms are also dropped from the alarm summary when they are out
SE User’s Guide for more information of alarm, and acknowledged manually. When alarms are dropped,
regarding alarm commands.
they are removed from memory. When the AlarmOff command is
run, the entire contents of the alarm summary are erased.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--6 Configuring Alarms in a FactoryTalk View SE Application
For a more advanced alarm summary, When setting up an HMI tag alarm summary, you can specify which
FactoryTalk Alarms and Events alarm information to display, and how the information will appear in
summary will be discussed later in this
lesson. the alarm summary:
Alarm information
objects
Acknowledging Alarms
An operator can acknowledge HMI tag alarms displayed in an alarm
summary or some other HMI tag alarm display. Acknowledging an
alarm does not correct the condition causing the alarm, but indicates
that the operator is aware of the alarm.
For example, a tag representing A tag, not an alarm, is acknowledged: a single tag might cause
temperature might trigger Warm, Hot, several alarms.
and Overheat alarms by the time it is
acknowledged.
One acknowledgement is all that is required for all previous and
The tag could also go in and out of current alarms for a tag, so alarm log files often show fewer
alarm several times before being
acknowledged. acknowledgements than alarms.
Acknowledge and
Silence Buttons
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Configuring Alarms in a FactoryTalk View SE Application 12--7
To acknowledge HMI tag alarms, you can use any of these methods:
x Click Acknowledge or Acknowledge All in the HMI tag alarm
summary
x Use the FactoryTalk View command Acknowledge by itself, or
with parameters to name a tag or group of tags
x Use the FactoryTalk View command AcknowledgeAll
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--8 Configuring Alarms in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Configuring Alarms in a FactoryTalk View SE Application 12--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--10 Configuring Alarms in a FactoryTalk View SE Application
For example, the number of alarms that You can also use FactoryTalk alarm and event expression functions
are in alarm and unacknowledged. to animate objects and display alarm count information.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Configuring Alarms in a FactoryTalk View SE Application 12--11
By default, Enable alarm and event Check Enable alarm and event support to enable alarm and event
support is always unchecked (disabled). support and to activate the options on the properties dialog.
Enable History
Tip " Uncheck Enable history if you are not logging historical data.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--12 Configuring Alarms in a FactoryTalk View SE Application
You must also enable FactoryTalk Alarms and Events for each
shortcut you want supported:
Shortcut
Enable Alarms
and Events
For more information on buffering, refer Buffer Timeout (min.): Enter the length of time you want RSLinx
to the FactoryTalk View Site Edition Enterprise to buffer alarms in the event it becomes disconnected
Help.
from the selected Logix5000 controller. To disable the buffer, enter 0
(zero).
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Configuring Alarms in a FactoryTalk View SE Application 12--13
For information on adding an object to a The Alarm and Event Summary is hosted on a FactoryTalk View SE
graphic display in FactoryTalk View display as an object:
Studio, refer to the FactoryTalk View Site
Edition Help.
Toolbar
Event List
Details Pane
Status Bar
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--14 Configuring Alarms in a FactoryTalk View SE Application
Show Details
Pane
Toolbar
Column
Headings
Row
Text
Status
Grid Bar
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Configuring Alarms in a FactoryTalk View SE Application 12--15
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSsb9701SE
12--16 Configuring Alarms in a FactoryTalk View SE Application
Here’s How To perform the following tasks for FactoryTalk Alarms and Events:
Demonstrate the following tasks: x Enable FactoryTalk Alarms and Events on an RSLinx Enterprise
1. Enable RSLinx Enterprise to support Device Server
FactoryTalk Alarms and Events.
x Create or modify a FactoryTalk Alarms and Events summary
2. Modify the LinxE_Shortcut data
server to enable alarm and event As your instructor demonstrates these procedures, follow along in
support. the associated job aid(s).
3. Open the Alarm and Event
Summary display.
4. Add an Alarm and Events
Summary object to the display.
5. Show students some of the object
features they can configure.
6. Save and test your display using the
Test Display button.
7. Enter a value of 100 in the numeric
input at the bottom of the display.
8. Show students how to view alarm
details and acknowledge the alarm.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSsb9701SE
Exercise: Configuring Alarms in a FactoryTalk View SE Application 12--17
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the AMS_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSe9701SE
12--18 Exercise: Configuring Alarms in a FactoryTalk View SE Application
7. Configure the HMI tag alarm setup editor with the following
properties:
x Severity 1 Annunciation: External Bell (Alarms\horn)
x Severity 2 Annunciation: External Bell (Alarms\horn)
x User Msgs In Alarm File and Printer Messages:
My User message on \11d \8t InAlm Tag \40n \15v \10u \10l
8. Add an existing graphic display to your FactoryTalk View SE
application using the following path:
C:\SE Class Files\Components to import for labs\Alarms.gfx
9. Open the Alarms graphic display.
10. Create an HMI tag alarm summary object on your display.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSe9701SE
Exercise: Configuring Alarms in a FactoryTalk View SE Application 12--19
11. Modify the HMI tag alarm summary by inserting the following
items into your HMI tag alarm summary object:
x Alarm Time
x Tag Name
x Tag Value
x Alarm Label
x Alarm Severity
x Operator Name
12. Modify the HMI tag alarm summary by showing only the
following buttons in the HMI tag alarm summary:
x Ack Current
x Ack All
x Silence Current
x Identify
x Filter
x Sort
13. Save the changes to your display.
14. From the Tools menu, select Launch SE Client.
15. Configure a FactoryTalk View SE Client to have the following
properties:
x Name: Alarms
x Type of Application: Local
x Application to connect to: AppliSE (or
AMS_9701SE_A1.APA)
x Initial display: Alarms
16. Test the Alarm System by performing the following;
A. Click the Enable Alarms button to activate the alarm
system.
B. Generate alarms by changing the values of the digital and
analog tags at the bottom of the screen.
C. Acknowledge and Silence the alarms.
D. What happens to the entries in the HMI tag alarm summary
object when you press the acknowledge button?
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSe9701SE
12--20 Exercise: Configuring Alarms in a FactoryTalk View SE Application
Context:
Tip " The alarms have been configured in your RSLogix 5000 application.
The steps in this lab will show you how to display these alarms in
your FactoryTalk View SE application.
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the AMS_9701SE_B1.APA file.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSe9701SE
Exercise: Configuring Alarms in a FactoryTalk View SE Application 12--21
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSe9701SE
12--22 Exercise: Configuring Alarms in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSe9701SE
Exercise: Configuring Alarms in a FactoryTalk View SE Application 12--23
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSe9701SE
12--24 Exercise: Configuring Alarms in a FactoryTalk View SE Application
11. Your HMI tag alarm summary object should now look similar
to the following:
16.
D. When you acknowledge the alarms, the alarm is no longer
flashing and changes text color. The Alarms\ack bit goes
high and the Alarms\horn bit changes to 0.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSe9701SE
Exercise: Configuring Alarms in a FactoryTalk View SE Application 12--25
Answers Exercise B
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSe9701SE
12--26 Exercise: Configuring Alarms in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSe9701SE
Exercise: Configuring Alarms in a FactoryTalk View SE Application 12--27
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
AMSe9701SE
12--28 Exercise: Configuring Alarms in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
AMSe9701SE
Lesson 13
Creating and Viewing a Data Log
Model in a FactoryTalk View SE
Application
What You Will Learn After completing this lesson, you should be able to:
x Create or modify a data log model
x View a data log
Data Log Model: Defines which tags to log data for, when to log the
data, and where to log the data.
File Set: A type of storage format used to log data to proprietary file
sets with the extension .DAT.
If you choose the ODBC storage format, Log File Identifier String: A user-defined string, up to 20
long file names apply only to the backup characters long, which becomes part of the log file’s name if long
files.
file names are supported.
ODBC backup files are stored as binary ODBC Database: A type of storage format used to log data to tables
files which you cannot view. in an ODBC database using an ODBC data source such as Microsoft
SQL Server or Oracle.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMsb9701SE
13--2 Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
Use the Data Log Models editor to configure the Setup tab to:
x Specify a log file identifier string
x Specify a storage format
x Create a description for the data log model
Tip " If FactoryTalk View cannot create the tables automatically, you will
have to open the database using its editing tool, and create the tables
manually.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMsb9701SE
Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--3
Storage Format
Create Tables
ODBC backup files are stored as binary ODBC storage format will log data to tables in an ODBC data source
files which you cannot view. such as Microsoft SQL Server or Oracle. If you log to an
ODBC-compliant database, you can view the data in trends and use
third-party, ODBC-compliant tools to analyze and create reports
from the data.
Delete old records from the ODBC database using standard relational
database tools or SQL queries:
Purge ODBC
Database
You can also set up FactoryTalk View to delete (purge) records in the
ODBC database after a specified time.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMsb9701SE
13--4 Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
You can also set up the file management to delete file sets after a
specified period or once a specified number of file sets has been
created. Clear the check boxes under Delete Oldest Files to never
delete file sets:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMsb9701SE
Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--5
Add or Remove
Tags in Model
The total number of characters and spaces allowed for the path and
name of a tag in a data log model is 255.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMsb9701SE
13--6 Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
Default Naming
Convention
In the Data Log Models editor, you can modify these names before
creating the tables, or you can specify the names of different tables.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMsb9701SE
Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--7
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMsb9701SE
13--8 Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMsb9701SE
Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--9
Exercise A In this exercise, you will be creating a flat file data log model.
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the DLM_9701SE_A1.APA file.
Tip " Use the Command Wizard to automatically build the command.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMe9701SE
13--10 Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMe9701SE
Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--11
Exercise B In this exercise, you will practice creating and viewing an ODBC
data log model.
Context:
You need to create an ODBC data log model in order to view logged
data using an ODBC compliant data source.
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the DLM_9701SE_B1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMe9701SE
13--12 Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
11. Duplicate the Trending Data data log model and name it My
Data Log.
12. Modify the data log settings by opening the My Data Log data
log and performing the following:
x Change the Description to ODBC Data Log.
x Change the Storage Format to ODBC database.
x In the ODBC Data Source field, type My Data Source.
13. Click Create Tables.
A window appears verifying ODBC tables were created
successfully.
14. Click OK.
15. Using Microsoft Explorer, browse to C:\SE Class Files and then
open the My Data Source.mdb Microsoft Access file.
16. Verify that the following tables have been created:
x FloatTable
x StringTable
x TagTable
17. Open a table and view the rows and columns that were
automatically generated.
18. Return to FactoryTalk View SE software and test the data log
model by performing the following:
A. Issue the DataLogOn command for the data log model My
Data Log.
Tip " Use the Command Wizard to automatically build the command.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMe9701SE
Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--13
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMe9701SE
13--14 Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
Answers Exercise A
2. Your Data Log Model Setup tab should look similar to the
following:
Your Data Log Model Log Triggers tab should look similar to
the following:
4.
B. If you correctly configured the DataLogOn and DataLogOff
commands, your Diagnostic List should look similar to the
following:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMe9701SE
Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--15
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMe9701SE
13--16 Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
Answers Exercise B
Data Source
Name (DSN)
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMe9701SE
Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application 13--17
Database Name
11. Duplicate the Trending Data data log model and save as My
Data Log:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
DLMe9701SE
13--18 Exercise: Creating and Viewing a Data Log Model in a FactoryTalk View SE Application
Data Log
Description
ODBC database
DSN
Default Tables
Created
Tables
18.
C. Data has been logged:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
DLMe9701SE
Lesson 14
Creating and Configuring a Trend
in a FactoryTalk View SE
Application
What You Will Learn After completing this lesson, you should be able to:
x Create a trend
x Configure a trend
x Overlay data snapshots on a trend by performing the following:
-- Create a snapshot
-- Create an overlay
The values can be tags you are Pens: The lines or symbols used to represent values on a trend chart.
monitoring, expressions that manipulate
tag values, or constant values. X-axis: The bottom edge of the chart. It is also known as the
horizontal axis, or the time axis.
Y-axis: The left edge of the chart. It is also known as the vertical
axis.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
TNDsb9701SE
14--2 Creating and Configuring a Trend in a FactoryTalk View SE Application
Creating a Trend
Advanced
Object
Create a Trend
Configuring a Trend
In the Trend Properties dialog box, you can set up the trend’s data,
appearance, and behavior:
x General Tab: Set up the trend’s data server (real-time or
historical polling), chart title, chart style, and update mode.
x Display Tab: Set up the appearance of the trend display.
x Pens Tab: Set up pen tags and expressions, and the appearance of
pens in the trend.
x X-Axis Tab: Set up the trend’s horizontal axis.
x Y-Axis Tab: Set up the trend’s vertical axis.
x Overlays Tab: Add or remove snapshots of historical data.
x Template Tab: Set up properties for trend templates.
x Runtime Tab: Set up ways to interact with the trend at run time.
x Common Tab: Set up the trend’s size and position in the graphic
display.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
TNDsb9701SE
Creating and Configuring a Trend in a FactoryTalk View SE Application 14--3
Chart Style
Update
Mode
Explain to students that in order to Use overlays to compare current charted data to a historical snapshot.
create an overlay, they need to create For example, you might set up overlays to compare data for a
the data snapshot first, and then add the
snapshot as an overlay to the trend particular shift or batch process.
charting the current data.
Creating a Snapshot
Create a snapshot when you want to capture or record real-time data:
Create Snapshot
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
TNDsb9701SE
14--4 Creating and Configuring a Trend in a FactoryTalk View SE Application
Creating an Overlay
An operator can show or hide overlays When you add a snapshot to a trend as an overlay, the pens from the
on the trend chart at runtime, using the snapshot are added automatically to the Pens tab in the Trend
trend’s shortcut menu.
Properties dialog box. You can change the attributes of pens used in
overlays, just as you can change the attributes of regular pens.
Use the Overlays tab of the Trend Properties dialog box to configure
overlay attributes:
Overlay
Attributes
Add a Snapshot
Overlay time
Overlay pen
Currently
plotting pen
Currently
plotting pen
Overlay pen
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
TNDsb9701SE
Creating and Configuring a Trend in a FactoryTalk View SE Application 14--5
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
TNDsb9701SE
14--6 Creating and Configuring a Trend in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
TNDsb9701SE
Exercise: Creating and Configuring a Trend in a FactoryTalk View SE Application 14--7
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the TND_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
TNDe9701SE
14--8 Exercise: Creating and Configuring a Trend in a FactoryTalk View SE Application
7. Test the FactoryTalk View SE graphic display and verify that data
is trending.
8. Stop the graphic display test.
9. Create and configure a maintained pushbutton on the Trend
display to control the pump from Tank 1.
x State 0 Caption: Tank 1 Pump OFF
x State 1 Caption: Tank 1 Pump ON
x Use the same tag for the value and indicator connection:
10. Repeat Step 9. for the pumps from Tank 2 and Tank 3.
11. Create a button to clear the chart using the invoke command and
the following command wizard fields:
x Display: Trend
x Object: Trend1
x Property or Method: ClearChart
x Method parameters: “ “ (Empty)
Tip " Make sure the name of the object is correct in your command. The
trend object will be Trend1 if it is the first trend created for this
application. To see the name of the object, right-click the object and
select Property Panel.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
TNDe9701SE
Exercise: Creating and Configuring a Trend in a FactoryTalk View SE Application 14--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
TNDe9701SE
14--10 Exercise: Creating and Configuring a Trend in a FactoryTalk View SE Application
Answers Exercise A
11. The Press Action for the button should be configured similar to
the following:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
TNDe9701SE
Exercise: Creating and Configuring a Trend in a FactoryTalk View SE Application 14--11
The Press Action for the button should have the following
syntax:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
TNDe9701SE
14--12 Exercise: Creating and Configuring a Trend in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
TNDe9701SE
Lesson 15
Creating a Derived Tag File and an
Event File in a FactoryTalk View SE
Application
What You Will Learn After completing this lesson, you should be able to:
x Create a derived tag file
x Create an event file
Actions could initiate a snapshot of tag Actions: FactoryTalk view commands, symbols, or macros.
values using the DataLogSnapshot
command, or change a tag value using Derived Tag: An analog, digital, or string tag whose value is
the Set command.
determined through the evaluation of an expression.
Maximum Update Rate: The fastest rate at which the value of any
derived tag in a derived tag component can be updated.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
EVTsb9701SE
15--2 Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
Explain to students that you could create You can create multiple derived tag components.
multiple derived tag components to
group derived tags that have different Each HMI server in a network application can run up to 20 derived
evaluation rates.
tag components, with up to 1,000 tags in each component.
You can modify derived tags during development or when you run
the application.
If you change a derived tags component at run time, the changes will
not take effect until you stop and then restart derived tags processing.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
EVTsb9701SE
Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application 15--3
Derived
Tags Editor
Tag Name
Description
Form Expression
Spreadsheet Accepted
derived tags
You can use any tag to store the result of a derived tag calculation.
The tag must already exist, for example, as an HMI tag (memory or
device) or in a data server, before you can use it as a derived tag.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
EVTsb9701SE
15--4 Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
Explain to students that you could create You can create multiple events components.
multiple events components to group
events that have different evaluation Each HMI server in a network application can run up to 20 event
rates.
files, each containing up to 1,000 events.
You can modify events during development or when you run the
application.
If you change an event component at run time, the changes will not
take effect until you stop and then restart events processing.
Creating an Event
An event consists of two parts: an expression and an action.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
EVTsb9701SE
Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application 15--5
Event Editor
Action
Description
Form Expression
Accepted
Spreadsheet
event actions
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
EVTsb9701SE
15--6 Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
EVTsb9701SE
Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application 15--7
Exercise A In this exercise, you will practice creating a derived tag file and an
event file.
Context:
You must be able to populate the Diagnostic List with custom event
information. You must be also able to configure the HMI to do basic
arithmetic to display the total level of all three tanks in your
application by configuring derived and event files.
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the EVT_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
EVTe9701SE
15--8 Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
9. Launch the Tag Browser and and create a new HMI tag in the
mem folder named PumpsString with the following properties:
x Type: String
x Data Source Type: Memory
10. Add the tag PumpsString to the derived tag file and create the
following expression:
Tip " If you need to create space, remove the overlay Levels.
15. Create a text object to show Tank Total in the Trend graphic
display.
16. Create numeric display object mem\TotalTankLevel close to the
text object.
17. Create a string display to show the value of the
mem\PumpsString tag in the Trand graphic display.
18. Test the display by performing the following:
A. Open the Command Line and enter DerivedOn Tanks.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
EVTe9701SE
Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application 15--9
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
EVTe9701SE
15--10 Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
EVTe9701SE
Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application 15--11
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
EVTe9701SE
15--12 Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
EVTe9701SE
Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application 15--13
18. Your Trend display should now look similar to the following:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
EVTe9701SE
15--14 Exercise: Creating a Derived Tag File and an Event File in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
EVTe9701SE
Lesson 16
Creating Symbols, Macros, and
Keys in a FactoryTalk View SE
Application
What You Will Learn After completing this lesson, you should be able to:
x Create symbols
x Create macros
x Create keys assignments
This type of key can only be used with control list selectors, piloted
control list selectors, display list selectors, and trends.
Creating Symbols
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SMKsb9701SE
16--2 Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application
Clearing a Symbol
To clear a symbol, at the command line or in a macros or box, type:
Undefine <symbol>
Where: <symbol> is the name of the symbol you want to delete.
Creating Macros
Tell students they can use macros to You can use a macro component like a command, anywhere a
close and open graphic displays, set tag command can be used. When the component name is issued, the
values, and define temporary key
definitions. macro runs, carrying out all the commands in the component.
Macro Syntax
When typing commands in macros, follow these guidelines:
x Separate each identifier, specification, or string with a space or a
tab.
x Start each command on a new line, or separate commands on the
same line with a semicolon (;).
x To insert a comment, type an exclamation mark (!) at the
beginning of a new line or immediately after a semicolon (;).
Tip " Everything between the exclamation mark and the end of the line, or
the next semicolon, is treated as a comment.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SMKsb9701SE
Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application 16--3
Running Macros
At run time, an operator can run a macro anywhere they can run a
FactoryTalk View command. Ensure you include a way for the
operator to run commands or macros, for example, by specifying
them as press actions for buttons.
Tell students that in order to make a If you have created an HMI server with components that must start
macro run when the HMI server starts, in a particular order, create a Startup macro.
select it as the startup macro in the
Components tab of the HMI Server
Properties dialog box.
Creating Key Assignments
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SMKsb9701SE
16--4 Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application
Object Keys
You may assign a key to be active only when a particular graphical
object has focus. This type of key will not be in effect otherwise.
Display Keys
Use display keys to connect a graphic display with one or more keys.
Display keys are similar to object keys, except you don’t have to
select an object in the display, for a display key to respond.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SMKsb9701SE
Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application 16--5
For example, you could connect a display to the F5 key. At run time,
when the display is open, the operator can press F5 to perform the
key’s press, repeat, or release action:
Assigned Keys
Release Action
Client Keys
Tell students that is it a best practice to Client keys allow the operator to interact with the system at run time
have a client key that will open the main to do things like change displays or set tag values. Client keys are
display. This way, if display navigation is
not completely set up and the defined for an application using the Client Keys editor. They are
FactoryTalk View SE Client is empty, you enabled whenever the application is running on an SE Client, unlike
can use the client key to open the main object and display keys which are active only when their associated
display instead of restarting the SE
Client. object or display is.
Precedence
The order of precedence for key animation is:
x Non-native embedded OLE object
x Object Keys
x Display Keys
x Client Keys
This means that if a key has both object and client key definitions,
when the object has focus at run time and the key is pressed, the
object key action will be carried out and the client key action will
not.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SMKsb9701SE
16--6 Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application
Client Key files are saved in the Logic and Control section of the
HMI project:
Client Key
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SMKsb9701SE
Exercise: Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application 16--7
Exercise A In this exercise, you will practice creating symbols, macros and keys
assignments.
Context:
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the SMK_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SMKe9701SE
16--8 Exercise: Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SMKe9701SE
Exercise: Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application 16--9
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SMKe9701SE
Exercise: Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application 16--11
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SMKe9701SE
16--12 Exercise: Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SMKe9701SE
Exercise: Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application 16--13
15. You should now have two Display Keys configured similar to
the following:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SMKe9701SE
16--14 Exercise: Creating Symbols, Macros, and Keys in a FactoryTalk View SE Application
18. Your client key file should look similar to the following:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SMKe9701SE
Lesson 17
Configuring Security in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to:
x Create a user account
x Create a user group account
x Specify user security codes
x Assigning security codes to graphic displays
The All Users account is visible in the When you create a local or a network application, an All Users
Runtime Security editor, but not in the account is also added automatically to the Runtime Security list for
user Groups folder that contains other
FactoryTalk group accounts. the application. By default, the account is allowed all run-time
security codes:
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYsb9701SE
17--2 Configuring Security in a FactoryTalk View SE Application
Security permissions is discussed in To restrict access to FactoryTalk system resources for selected users
more detail later. and computers, you need to remove the All Users account, create
accounts for the users and computers you want to secure, and then
give the accounts the appropriate security permissions.
Add User to
a Group
User Name
Password
Configuration
Create
Password
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYsb9701SE
Configuring Security in a FactoryTalk View SE Application 17--3
Tell students they cannot convert an This means that Windows users with administrative privileges on the
original FactoryTalk account to a local computer have full access to local and network applications,
Windows-linked account, nor can you
add a FactoryTalk account to a including the ability to set up security for the FactoryTalk system.
Windows-linked user group.
Whichever type of FactoryTalk Security account you decide to use,
when setting up security for a FactoryTalk View SE application, it is
recommended that you create group accounts and set up access
permissions for them first.
Tell students they are able to add Later, if you want to change an individual user’s permissions, you
Windows-linked groups to FactoryTalk can move the user’s account to a different group. You can also
groups.
change permissions for several individual users at once, by
modifying the group that the users belong to.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYsb9701SE
17--4 Configuring Security in a FactoryTalk View SE Application
Group Name
Add Members
to the Group
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYsb9701SE
Configuring Security in a FactoryTalk View SE Application 17--5
Use the Security Settings dialog box to add the users or groups of
users that are to have access to the resource, and then allow or deny
permission to perform the actions that define levels of access:
Explain to students that this means you When setting up permissions for a network application, you can
can determine not only who has access associate users and groups of users with specific computers or
to system resources, but from which
computers. groups of computers.
In the Graphics editor, you can set up security for graphic displays.
You can assign a security code while you are creating a graphic
display, or you can assign it later.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYsb9701SE
17--6 Configuring Security in a FactoryTalk View SE Application
Security Codes
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYsb9701SE
Exercise: Configuring Security in a FactoryTalk View SE Application 17--7
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the SCY_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYe9701SE
17--8 Exercise: Configuring Security in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYe9701SE
Exercise: Configuring Security in a FactoryTalk View SE Application 17--9
10. Create a button on the Trend graphic display, that displays the
Main display when pressed.
11. Assign a security code to the TankData graphic display so that
Operators may not access it, but all others, including Tim can.
12. Assign security code A to the Conveyor graphic display.
13. Open the Runtime Secured Commands editor form the Settings
menu.
14. Configure the ALLUSERS runtime security account to only
allow security code P.
15. Specify a user security code that prevents Maintenance from
accessing the AppStart and Invoke commands.
16. Select Launch SE Client from the Tools menu.
17. Configure a FactoryTalk View SE Client with the following
properties:
x Name: Final Client
x Type of application: Local
x Application to connect to: AppliSE.APA (or
SCY_9701SE_A1.APA)
x Initial Display: Main
18. Launch the Final Client client configuration.
19. Test your security configurations by performing the following:
A. Login as John.
B. Test your access to the TankData display.
C. Logout and login as Tim.
D. Test your access to the TankData display.
E. Return to the Main display.
F. Login as Susan.
G. Open the Conveyor display.
H. What happens when you attempt to open the calculator by
pressing Ctrl-C while the Filler object is in focus?
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYe9701SE
17--10 Exercise: Configuring Security in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYe9701SE
Exercise: Configuring Security in a FactoryTalk View SE Application 17--11
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYe9701SE
17--12 Exercise: Configuring Security in a FactoryTalk View SE Application
Answers Exercise A
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYe9701SE
Exercise: Configuring Security in a FactoryTalk View SE Application 17--13
Display
Caption
Security Code B
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYe9701SE
17--14 Exercise: Configuring Security in a FactoryTalk View SE Application
Security Code
E or H
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYe9701SE
Exercise: Configuring Security in a FactoryTalk View SE Application 17--15
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
SCYe9701SE
17--16 Exercise: Configuring Security in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
SCYe9701SE
Lesson 18
Adding VBA Display Code in a
FactoryTalk View SE Application
What You Will Learn After completing this lesson, you should be able to add VBA code.
For example, you can use the object model and display code to do
the following:
x Use data with other applications
x Create custom forms for operators
x Design intuitive graphic displays
x Manipulate the FactoryTalk View SE Client window
x Send custom messages to the Diagnostics log
x Secure the system
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
VBAsb9701SE
18--2 Adding VBA Display Code in a FactoryTalk View SE Application
There are two basic tasks involved in working with the FactoryTalk
View SE Client object model and VBA:
Display code is saved with a graphic x Create the graphic display and the graphic objects that require
display. Before you can write VBA code VBA code written to them.
that manipulates graphic objects, you
must create the graphic display and the x In the VBA Integrated Development Environment (VBA IDE),
graphic objects in FactoryTalk View using the Visual Basic programming language, write procedures
Studio.
in the code window for the module called ThisDisplay.
The integrated development environment for VBA IDE is available
from the FactoryTalk View Graphics editor.
Use the VBA IDE to create, test, and debug VBA procedures. VBA
procedures can be designed to run in response to events that occur in
FactoryTalk View graphic displays at run time.
Project Explorer
Window
Properties
Window
Procedure or
Code Window
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
VBAsb9701SE
Adding VBA Display Code in a FactoryTalk View SE Application 18--3
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
VBAsb9701SE
18--4 Adding VBA Display Code in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
VBAsb9701SE
Exercise: Creating VBA Display Code in a FactoryTalk View SE Application 18--5
Context:
You must limit the valid entries for a Numeric Input object and
disable certain buttons based on which user is logged in to your
application using VBA code.
Directions:
Tip " If you have not completed the previous FactoryTalk View SE
Programming exercises, open the VBA_9701SE_A1.APA file.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
VBAe9701SE
18--6 Exercise: Creating VBA Display Code in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
VBAe9701SE
Exercise: Creating VBA Display Code in a FactoryTalk View SE Application 18--7
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
VBAe9701SE
18--8 Exercise: Creating VBA Display Code in a FactoryTalk View SE Application
21. Test the display and confirm the ComboBox enables the
appropriate buttons.
22. Open the Main display.
23. Create a button and apply a caption as shown:
24. Open the Property Panel for the OPERATOR may NOT press
this button and configure the following:
x Name: btnNoOp
x ExposeToVBA: VBA Control
25. Add VBA code to create a variable, oDCApp, to represent the
Display Client Application:
A. Press F7 to open the VBA editor.
B. Select General from the objects drop-down list.
C. Enter the following code:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
VBAe9701SE
Exercise: Creating VBA Display Code in a FactoryTalk View SE Application 18--9
Tip " The code you entered above will only check the security codes when
the display first starts up.
27. Add VBA code that will check the security codes whenever
someone logs in by performing the following:
A. Select oDCApp from the Object drop-down list within the
VBA editor.
B. Select Login from the Event drop-down list.
C. Copy and paste the line of code from the earlier subroutine:
Tip " It is a good practice to destroy an object that has been created in
code.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
VBAe9701SE
18--10 Exercise: Creating VBA Display Code in a FactoryTalk View SE Application
Tip " If you have not completed the previous labs, create a new client
configuration that displays Main as the initial graphic.
31. Log in as John and Tim and verify that the appropriate buttons
are available. John will not have access, Tim will have access.
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
VBAe9701SE
Exercise: Creating VBA Display Code in a FactoryTalk View SE Application 18--11
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
VBAe9701SE
18--12 Exercise: Creating VBA Display Code in a FactoryTalk View SE Application
Answers Exercise A
21. Your VBA display should now look similar to the following:
24. The Panel Panel for the OPERATOR may NOT press this
button should look similar to the following:
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
VBAe9701SE
Exercise: Creating VBA Display Code in a FactoryTalk View SE Application 18--13
31. John will not have access to the OPERATOR may NOT press
this button or the Tank Data display.
Tim will have access to the OPERATOR may NOT press this
button and the Tank Data display.
Rev. May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
VBAe9701SE
18--14 Exercise: Creating VBA Display Code in a FactoryTalk View SE Application
E 2008 Rockwell Automation, Inc. All rights reserved. Rev. May 2008
VBAe9701SE
The following are trademarks of Rockwell Automation, Inc.:
1336 FORCE 1336 IMPACT
1336 PLUS CompactLogix
ControlBus ControlLogix
Data Highway Plus DH+
DriveTools FactoryTalk
Flex FlexLogix
Logix5000 Logix5550
PanelBuilder PanelView
PLC-5 PHOTOSWITCH
PowerFlex RediSTATION
RSLinx RSLogix
RSView RSNetWorx
SCANPort SLC
SoftLogix Ultra
All other trademarks are the property of their respective holders and are hereby acknowledged.
Catalog Number ABT-CCV207-TSM -- May 2008 E 2008 Rockwell Automation, Inc. All rights reserved.
Supersedes Catalog Number ABT--CCV207--TSM -- October 2007 Printed in USA