1. Trang chủ
  2. » Ngoại Ngữ

RSVIEW SUPERVISORY EDITION USER’S GUIDE 2

348 935 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 348
Dung lượng 5,22 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

About global object displays and global objects RSView global objects allow you to link the appearance and behavior of one graphic object to multiple copies of that object in the same ap

Trang 1

User’s Guide Volume 2

Publication VIEWSE-UM005D-EN-E - July 2005 Supersedes Publication VIEWSE-UM005C-EN-E

Trang 2

Printed in the United States of America.

Portions copyrighted by the Allen-Bradley Company, LLC, a Rockwell Automation Company.

This manual and any accompanying Rockwell Software products are copyrighted by Rockwell Software Inc Any reproduction and/or distribution without prior written consent from Rockwell Software Inc is strictly prohibited Please refer to the license agreement for details.

VBA and DCOM, Copyright 1996, 1997 Microsoft Corporation All rights reserved This software is based in part on the work of the Independent JPEG Group.

Trademark Notices Allen-Bradley, ControlLogix, RSLinx, RSView, and VersaView are registered trademarks,

and the Rockwell Software logo, RSLogix, RSTools, RSView Machine Edition, RSView

ME Station, RSView Studio, RSView Supervisory Edition, RSView32, A.I Series, Advanced Interface (A.I.) Series, ControlNet, Data Highway Plus, DH+, FactoryTalk, MobileView, Object Smart Path, PanelBuilder, PanelView, SLC, and WINtelligent are trademarks of Rockwell Automation, Inc.

Adobe, Acrobat, and Reader are registered trademarks of Adobe Systems Incorporated TrueType is a trademark of Apple Computer, Inc AutoCAD is a registered trademark of Autodesk, Inc Ethernet is a registered trademark of Digital Equipment Corporation, Intel Corporation, and Xerox Corporation Modicon is a registered trademark of Groupe Schneider Zip is a trademark of Iomega Corporation KEPServerEnterprise is a trademark

of Kepware Technologies ActiveX, Microsoft, OpenType, Visual Basic, Windows, and Windows NT are registered trademarks of Microsoft Corporation in the United States and/or other countries OPC is a registered trademark of the OPC Foundation.

All other trademarks are the property of their respective holders and are hereby acknowledged.

Warranty This Rockwell Software product is warranted in accord with the product license The

product’s performance will be affected by system configuration, the application being performed, operator control, and other related factors

The product’s implementation may vary among users

This manual is as up-to-date as possible at the time of printing; however, the accompanying software may have changed since that time Rockwell Software reserves the right to change any information contained in this manual or the software at any time without prior notice.

The instructions in this manual do not claim to cover all the details or variations in the equipment, procedure, or process described, nor to provide directions for meeting every possible contingency during installation, operation, or maintenance

Doc ID VIEWSE-UM005D-EN-E September 2005

Trang 3

About the documentation P-1Finding the information you need P-1Try the User’s Guide and Help first P-1Information on the Internet P-2Contacting Rockwell Software Technical Support P-2

1 • Getting started

The RSView Supervisory Edition software 1-1The RSView tools and utilities 1-2RSView Enterprise tools 1-2Rockwell Software® utilities 1-3FactoryTalk tools 1-3Features in brief 1-4Setting up the software you need 1-5Planning the layout of the network 1-6Installing the FactoryTalk Automation Platform 1-6Installing RSView Supervisory Edition 1-7Installing the communications software 1-7Installing the necessary activation keys 1-8Setting up the FactoryTalk Directory 1-8About security in FactoryTalk-enabled system 1-9Logging on to FactoryTalk 1-9Running in RSView demo mode 1-10Exploring the Water Samples application 1-10Running Water Samples in the RSView SE client 1-12Creating and testing a new application 1-12Create the application 1-12Create a graphic display in the Graphics editor 1-13Test run the application in RSView SE client 1-14

2 • Exploring RSView Studio

Starting RSView Studio 2-1Logging on to FactoryTalk® 2-2Opening an application 2-2Opening the Samples Water application 2-3

Trang 4

Exploring the RSView Studio main window 2-4The menu bar 2-4The toolbar 2-4The Explorer 2-5The workspace 2-5The Application tab 2-5The Communications tab 2-5The Diagnostics List 2-5The status bar 2-7Workbook mode 2-7Showing and hiding items in the main window 2-7Working in the Explorer window 2-8Undocking the Explorer 2-8The parts of the Explorer 2-9Folders 2-9Editors 2-9Components 2-11Working with application components 2-12Adding components to an application 2-12Deleting, removing, and renaming components 2-13Naming components 2-14Techniques for working in editors 2-14Using the context menus 2-14Using the Browse button 2-15Using tag names 2-15Using RSView commands 2-15Using expressions 2-16Printing 2-16Selecting a printer 2-17Setting up the printer 2-17Selecting a network printer 2-17Printing at run time 2-17

3 • Planning an application

Understanding the process you are automating 3-1Planning the layout of the network 3-2The Windows® domain or workgroup 3-2The computers you’ll need 3-2System requirements and installation 3-3Planning a redundant system 3-4Planning communications 3-4

Trang 5

Plan how to access data 3-5Plan how to collect data 3-5When to use HMI tags 3-5Designing an HMI tag database 3-6Collect information 3-6Organize HMI tags 3-6Planning alarms 3-6Designing graphic displays 3-7Develop a hierarchy of displays 3-7Create templates to ensure consistency 3-7Apply visual design principles 3-7Planning run-time language switching 3-8Planning how to use trends 3-9Designing a secure system 3-9Designing a system for multiple users 3-9Designing a system that is easy to deploy and maintain 3-10Integrating with other applications, and customizing the system 3-10

4 • Setting up FactoryTalk Directory

About FactoryTalk Directory 4-1Using FactoryTalk Directory in a networked system 4-3Specifying the location of FactoryTalk Directory 4-4Local Directory setup for stand-alone applications 4-4Network Directory setup for distributed applications 4-4Restoring FactoryTalk Directory when deploying an application 4-7What happens if FactoryTalk Directory is unavailable at run time 4-7

5 • Working with distributed applications

About distributed applications 5-1Key concepts 5-3FactoryTalk Directory 5-3RSAssetSecurity™ 5-3 HMI server, HMI project, HMI client 5-4Areas 5-4Using absolute and relative references 5-5Redundancy 5-6Language switching 5-8Creating distributed applications 5-8Adding and deleting areas 5-9Adding an HMI server 5-9Adding a data server 5-11

Trang 6

When to use additional HMI or data servers 5-11HMI server restrictions 5-12Setting up HMI server properties 5-12Specifying how the server starts up 5-13Setting up HMI server redundancy 5-14Selecting the HMI server’s startup and shutdown components 5-15Changing the name of the host computer 5-16Starting and stopping HMI servers and components manually 5-17Starting and stopping an HMI server’s components 5-17Starting and stopping HMI services 5-17Deleting HMI servers 5-17Deleting HMI server project files 5-17Renaming and deleting distributed applications 5-18Backing up and restoring distributed applications 5-19

6 • Working with stand-alone applications

About stand-alone applications 6-1Key concepts 6-2FactoryTalk Directory 6-2RSAssetSecurity™ 6-3HMI server, HMI project, HMI client 6-3Using references in stand-alone applications 6-3Language switching 6-3Creating stand-alone applications 6-4Importing a project into a new application 6-4Adding a data server 6-4Setting up HMI server properties 6-5Specifying HMI server startup components 6-5Starting and stopping an HMI server’s components manually 6-6Renaming and deleting stand-alone applications 6-7Copying, backing up, and restoring stand-alone applications 6-7

7 • Setting up communications

About data servers 7-1Types of data servers 7-1Overview of data server communications 7-2Using multiple data servers 7-3Setting up communications 7-4Adding RSLinx Enterprise data servers 7-5Setting up general properties 7-6Setting up RSLinx Enterprise data server redundancy 7-7

Trang 7

Setting up communications in RSLinx Enterprise 7-8Primary and Secondary tabs 7-8Adding OPC data servers 7-9Setting up general properties 7-9Setting up OPC data server redundancy 7-11Setting up advanced properties 7-12Deleting data servers 7-13

8 • Working with tags

Tags and the HMI tag database 8-1Data server tags, HMI tags, and their attributes 8-1When to use HMI tags 8-2Basic steps for using tags 8-2Using data server tags 8-3Eliminating duplication 8-3Providing access to complex data 8-3Setting up data server tags 8-3Using HMI tags 8-4Triggering alarms 8-4Securing tag or device values 8-4Manipulating data 8-4Storing values in RSView’s memory 8-5Setting up HMI tags 8-5Browsing for tags 8-5Opening the Tag Browser 8-5Using the Tag Browser 8-7Browsing for off-line tags from RSLinx 8-8Browsing for off-line tags in RSLinx Enterprise 8-8Browsing for off-line tags from other OPC servers 8-9Working with tags in the Tag Browser 8-9Displaying tags 8-9Showing or hiding tag descriptions 8-9About the Selected Tag box 8-9Displaying tag properties 8-9Filtering tags 8-10Creating, editing, and importing HMI tags 8-11Using tag references 8-11Absolute references 8-11Relative references 8-12The home area 8-12Logging tag values 8-12

Trang 8

9 • Creating HMI tags

About HMI tags 9-1HMI tag types 9-1Data sources for HMI tags 9-2Organizing HMI tags 9-2Naming HMI tags 9-3Using folders to group HMI tags 9-3Viewing tag statistics 9-3Using the Tags editor 9-4Using the Accept and Discard buttons 9-4Using the form 9-5Using the query box 9-5Using the folder hierarchy 9-5Creating, editing, duplicating, and deleting tags 9-5Specifying a data source 9-7Specifying Device as the data source 9-7Specifying Memory as the data source 9-8Creating HMI tags without using the Tags editor 9-8Creating tags in a third-party application 9-9Creating tags as needed in other RSView editors 9-9Importing tags from a PLC database 9-9Using the Tag Import and Export Wizard 9-10Adding alarms to HMI tags 9-11

10 • Creating derived tags

About derived tags 10-1How to use derived tags 10-1Setting up derived tags 10-2Using the Derived Tags editor 10-2Using the Check Syntax button 10-3Using the Accept and Discard buttons 10-3Creating a derived tags component 10-3Using multiple derived tag components 10-4About the maximum update rate 10-4Starting and stopping derived tag processing 10-4Ways to start derived tag processing 10-4Ways to stop derived tag processing 10-5

11 • Creating alarms

About RSView Supervisory Edition alarms 11-1

Trang 9

Summary of features 11-1Setting up alarms for an application 11-2Key concepts 11-3Alarms for analog HMI tags 11-3Alarms for digital HMI tags 11-6Alarm severity 11-7Alarm messages 11-7Alarm log file 11-7Alarm displays 11-8Alarm acknowledgment 11-10Alarm suppression 11-10Alarm functions in expressions 11-11Acknowledge bit 11-12Handshake bit 11-13Alarm events 11-13Setting up general alarm behavior 11-15Setting up alarm monitoring 11-16Setting up alarm severities 11-17Setting up alarm messages 11-18Setting up alarm conditions for HMI tags 11-20Setting up alarms for analog tags 11-21Setting up alarms for digital tags 11-21Setting up alarm logging 11-21Specifying where log files are stored or printed 11-23Specifying when log files are created 11-23Specifying when log files are deleted 11-23Setting up periodic logging to a central ODBC database 11-23Exporting alarm log files manually to ODBCformat 11-24Adding remarks to the alarm log file at run time 11-24Suppressing alarm printing 11-25Suppressing alarm logging 11-26Using the Suppressed List 11-26Viewing alarm log files 11-27About alarm log files 11-28Setting up security to log alarms to a remote computer 11-28Creating an alarm summary 11-30Creating an alarm summary object 11-30The parts of an alarm summary 11-30Inserting headings 11-31Choosing fonts 11-31Choosing colors and blink styles 11-31Selecting buttons 11-32

Trang 10

Choosing the data to display 11-33Sorting data 11-36Running commands, macros, or custom programs in response to alarms 11-36Using alarm data with commands 11-37Starting and stopping alarm monitoring 11-39Ways to start alarm monitoring at the HMI server 11-39Ways to stop alarm monitoring 11-40

12 • Logging system activity

About FactoryTalk Diagnostics 12-1Summary of steps 12-1Key concepts 12-2Destinations 12-2Message routing 12-2Message categories 12-3Setting up FactoryTalk Diagnostics in RSView 12-4Logging to a central database 12-5Setting up message routing 12-6Using the Diagnostics List 12-7Working with the Diagnostics List 12-7Messages in the Diagnostics List 12-8Viewing FactoryTalk Diagnostics logs 12-9Setting up security to log system activity to a remote computer 12-10

13 • Using data logging

About data logging 13-1About data log models 13-1Using multiple data log models 13-2Displaying historical data in a trend 13-2Data log storage formats 13-2Log file sets 13-2ODBC database storage format 13-3Creating data log models 13-4Specifying the storage format 13-5Setting up log paths 13-5Setting up and managing data log files 13-5Specifying when to log data 13-6Choosing the data to be logged 13-6Editing a data log model 13-7Changing log paths using the RSView Administration Console 13-7Working with ODBC data sources 13-7

Trang 11

Using an existing ODBC data source 13-7Creating a new ODBC data source 13-8Switching log paths at run time 13-8Using the DataLogSwitchBack command 13-9Using the DataLogMergeToPrimary command 13-9Using the DataLogNewFile command 13-10Using the DataLogSnapshot command 13-11Combining logging 13-11Providing a way to log on demand 13-12Setting up security to log data to a remote computer 13-12Making runtime changes without editing the data log model 13-13Starting and stopping data logging 13-14Ways to start data logging 13-14Ways to stop data logging 13-15

14 • Using events

About events 14-1Setting up events 14-1Using the Events editor 14-2Using the Check Syntax button 14-2Using the Accept and Discard buttons 14-3Creating an events component 14-3Using multiple events components 14-4Editing events 14-4About the maximum update rate 14-4Starting and stopping event processing 14-4Ways to start event processing 14-4Ways to stop event processing 14-5

15 • Setting up security

How security works 15-1System resources secured at FactoryTalk Directory 15-2HMI project components secured in RSView 15-2About FactoryTalk Local and Network Directory 15-2Summary of steps for setting up security 15-4Planning security for an application 15-4Setting up basic elements of the security system 15-5Logging on to FactoryTalk Directory 15-5About single sign-on 15-6Logging on and off RSView 15-7Specifying which users can set up security 15-7

Trang 12

Setting up system-wide policies 15-7Setting up RSAssetSecurity user accounts 15-8Using accounts that originate at FactoryTalk Directory 15-9Using Windows-linked accounts 15-9Using both types of user account 15-9Setting up accounts for groups of users 15-10Creating user accounts 15-10Setting up computer accounts for a distributed application 15-11Creating computer accounts 15-12Setting up access to resources secured at FactoryTalk Directory 15-12Using the Security Settings dialog box 15-13Specifying actions that users can perform on a resource 15-14Understanding inherited permissions 15-19Breaking the chain of inheritance 15-20Using explicit permissions to override inheritance 15-20Setting up access to HMI project components in RSView 15-22Adding users to RSView and assigning security codes to them 15-23Specifying login and logout macros 15-25Removing users or groups from RSView 15-26Assigning security codes to RSView commands and macros 15-26About the Unspecified_Command 15-27Assigning security codes to graphic displays 15-28Assigning security codes to OLE objects 15-28Assigning security codes to HMI tags 15-29Using the signature button to secure HMI project components 15-30Logging on and off the RSView SE client 15-30Logging on a different user at run time 15-31Logging off the current user at run time 15-32Changing the current user’s password at run time 15-32Locking users into the RSView SE client environment 15-33

16 • Creating graphic displays

About graphic displays and graphic objects 16-1Importing and exporting graphic display XML files 16-2About global object displays and global objects 16-2Working with global objects 16-2Using the Graphics editor 16-3Using the Object Explorer 16-4Using the Property Panel 16-6Basic editing techniques 16-6Zooming in and out 16-6

Trang 13

Using the grid 16-7Using the toolbars 16-7Selecting a drawing tool 16-7Selecting and deselecting objects 16-8Using the context menu 16-8Working with graphic objects 16-9Duplicating objects 16-9Reshaping objects 16-9Resizing objects 16-10Arranging objects 16-10Flipping objects 16-14Rotating objects 16-15Grouping objects 16-16Ungrouping objects 16-16Editing grouped objects 16-17Applying colors 16-18Applying pattern styles 16-18Changing line properties 16-19Assigning tags and expressions to objects 16-19Using tag substitution to replace text associated with objects 16-20Testing graphic displays 16-21Testing the appearance of objects in different states 16-21Naming graphic objects 16-22Adding tooltips to objects 16-22Creating a background for a display 16-23Working with global object displays 16-23Creating global object displays 16-24Adding existing displays containing reference objects 16-24Global object displays at run time 16-25Using objects from the graphic libraries 16-25Location of library files 16-25Importing graphic files from third-party applications 16-26Converting imported objects to RSView objects 16-26Using bitmaps 16-26When to use a bitmap 16-27Using tag placeholders 16-28Replacing tag placeholders using a parameter file 16-29Assigning parameter files to graphic displays 16-29Replacing tag placeholders using parameters with the Display command 16-29Setting up the run-time appearance and behavior of a display 16-30Using the Display Settings dialog box 16-31Changing the default display settings 16-31

Trang 14

Setting up display properties 16-32Setting up display behavior 16-37Displaying graphics more quickly 16-39Printing displays at run time 16-40

17 • Setting up graphic objects

Types of graphic objects 17-1About global objects 17-3Setting up the properties of graphic objects 17-3Setting up properties common to all objects 17-4Creating drawing objects 17-4Tips for creating drawing objects 17-4Changing the properties of drawing objects 17-7Adding an image to a graphic display 17-7Creating a panel 17-8Working with text 17-8Creating a text object 17-8Choosing text fonts 17-8Setting up objects that use data 17-9Using tag names 17-10Using the keyboard to navigate to and select objects 17-10What input focus looks like 17-10Using the keys on the keyboard or keypad 17-11Removing objects from the tab sequence 17-11How to use push buttons 17-11Creating push buttons 17-12Creating button push buttons 17-12Creating momentary push buttons 17-13Creating maintained push buttons 17-15Creating latched push buttons 17-16Creating multistate push buttons 17-18Creating interlocked push buttons 17-19Creating ramp push buttons 17-21How to use display and input objects 17-22Creating numeric or string inputs 17-23Using input fields at run time 17-24Using Keys to retrieve data 17-25Using RSView commands to retrieve data 17-26Using the on-screen keyboard 17-26How to use indicators 17-27How to use the States tab for indicators 17-27

Trang 15

How to use Least Significant Bits to trigger states 17-28How to use the Connections tab for indicators 17-28Creating indicators 17-28Creating multistate indicators 17-28Creating symbol indicators 17-28Creating list indicators 17-29How to use gauges and graphs 17-29Using gauges to show limits 17-29Using graphs to compare values 17-30Creating gauges and graphs 17-31Creating gauges 17-31Creating bar graphs 17-31Creating scales 17-31How to use keys 17-31Using the Key objects 17-32Using keys with the object that has focus 17-32Setting up keys 17-33Creating keys 17-33Setting up whether the key repeats when held down 17-33How to use advanced objects 17-33Objects described in other chapters 17-34Creating advanced objects 17-34Creating arrows 17-34Creating tag labels 17-35Creating time and date displays 17-35Creating display list selectors 17-35How to use local message displays 17-36Creating local message displays 17-37Creating a recipe object 17-38Using a recipe at run time 17-40Choosing between piloted control list selectors and control list selectors 17-42How to use control list selectors 17-42How to use piloted control list selectors 17-43Creating control list and piloted control selectors 17-48Working with global objects 17-48Creating global objects 17-48Creating reference objects from global objects 17-49About reference objects and graphic libraries 17-49Setting up the Link properties of reference objects 17-49LinkAnimation 17-50LinkConnections 17-51LinkSize 17-51

Trang 16

LinkBaseObject 17-51Link properties of grouped reference objects 17-52Breaking links between reference and base objects 17-52Using OLE objects 17-52Creating OLE objects 17-53Converting OLE objects 17-53Using ActiveX objects 17-54When exchanging data with tags, use the same data type 17-54ActiveX properties, methods, and events 17-54Creating ActiveX objects 17-55Making ActiveX objects interact with RSView 17-55Using VBA code to make ActiveX objects interact with RSView 17-55Using the ActiveX toolbox 17-55Deploying ActiveX components automatically at run time 17-56Recording and authorizing run-time changes using electronic signatures 17-56Securing tag writes, commands, and downloads 17-57Creating signature buttons 17-58Securing objects in displays 17-58Tracking changes with FactoryTalk® Diagnostics™ 17-58Using the signature button for compliance with regulated manufacturing

applications 17-59

18 • Animating graphic objects

Using animation in RSView 18-1All graphic objects can have animation 18-2About global objects and animation 18-2Using the Animation dialog box 18-2Using tag names and tag placeholders 18-4Using commands and macros 18-4Using expressions 18-4Setting the range of tag values for animating an object 18-5Defining a range of motion for an object 18-5Testing animation 18-6Animating graphic objects 18-6Using visibility animation 18-7Using color animation 18-7Using fill animation 18-9Using horizontal position animation 18-9Using vertical position animation 18-9Using width animation 18-10Using height animation 18-10

Trang 17

Using rotation animation 18-10Using touch animation 18-11Using horizontal slider animation 18-12Using vertical slider animation 18-12Using OLE verb animation 18-12Animating ActiveX controls 18-13Naming ActiveX objects 18-13Connecting tags to an ActiveX object’s properties 18-14Connecting tags to an object’s methods 18-15Connecting tags to an ActiveX object’s events 18-16Using index numbers to navigate to objects 18-17How tab index numbers work 18-17Checking an object’s index number 18-17Changing index numbers 18-18Creating a tab sequence 18-19Associating objects and displays with keys 18-19About client keys 18-20Using object keys 18-20Using the Current [tag] parameter with object keys 18-21Using display keys 18-23Viewing the key list at run time 18-24Disabling the key list 18-25Applying animation to object groups 18-25Checking the animation on objects 18-25Copying or duplicating objects with animation 18-25Copying animation without copying objects 18-25

19 • Setting up trends

About trends 19-1Current versus historical data 19-2Creating trend objects 19-3The parts of a trend 19-4Chart 19-4Chart title 19-5X-axis 19-5X-axis legend 19-5Y-axis 19-5Y-axis legend 19-5Pens 19-6Legends 19-6Pen icons 19-6

Trang 18

Pen markers 19-7Value Bar 19-8Trend chart styles 19-8The Standard chart style 19-9The XY Plot chart style 19-9Isolated graphing 19-10Plotting a value across the full width of the chart 19-11Choosing trend colors, fonts, lines, and markers 19-12Changing the trend highlight color 19-12Changing the trend object background 19-12Displaying current value and line legends 19-13Displaying a current value legend 19-13Displaying a line legend 19-14Using shading to compare pens 19-14Comparing real-time and historical data 19-18Setting up snapshots and overlays 19-18Using trend templates 19-19Applying a consistent appearance to trend charts 19-19Creating a set of different views for the same data 19-19Returning to a standard display 19-19Saving pen attribute data 19-20Loading templates 19-20Using the Trend graphic library 19-21Testing trends 19-21Working with trends at run time 19-21Collecting data in the background at run time 19-21Selecting pens at run time 19-23Changing trend properties at run time 19-23Using scrolling options at run time 19-24Using the value bar at run time 19-25Using the delta value bar at run time 19-26Using zoom at run time 19-27Using pan at run time 19-27Using the arrow keys at run time 19-28Printing the trend chart at run time 19-28Using overlays at run time 19-28Fixing run-time errors 19-29

20 • Creating expressions

About expressions 20-1Where you can use expressions 20-1

Trang 19

Using expressions in a command 20-2Expression components 20-2Creating expressions 20-2Expression buttons 20-3Using the Check Syntax button 20-4Cutting, copying, and pasting expressions 20-4Formatting expressions 20-4Using tag names and tag placeholders in expressions 20-5Using area names with tag names 20-5Using tag placeholders instead of tag names 20-5Using constants in expressions 20-5Using operators in expressions 20-6Arithmetic operators 20-6Relational operators 20-6Logical operators 20-7Bitwise operators 20-8Evaluation order of operators 20-9Using built-in functions in expressions 20-11Tag functions 20-11Time functions 20-14File functions 20-16Math functions 20-17Security functions 20-18Language function 20-18Using if-then-else logic in expressions 20-18Nested if-then-else 20-19

21 • Creating embedded variables

About embedded variables 21-1Where you can insert embedded variables 21-1Creating embedded variables 21-2Embedded variable syntax 21-2Numeric embedded variable syntax 21-3String embedded variable syntax 21-3Time and date embedded variable syntax 21-4How embedded variables are updated at run time 21-5How embedded variables are displayed at run time 21-5Numeric embedded variables 21-5String embedded variables 21-5Time and date embedded variables 21-6

Trang 20

22 • Creating macros

About macros 22-1Macro syntax 22-1Using parameters 22-3Typing macro names that contain spaces 22-3Nesting macros 22-4Running macros 22-4Creating a macro that runs when anHMIserver starts 22-4Specifying user login and logout macros 22-5

23 • Setting up navigation

About navigation 23-1Developing a hierarchy of displays 23-1Ways of moving among displays 23-2Choosing display types 23-2Reducing display call-up time 23-3Commands for moving among displays 23-3Where to use RSView commands 23-4Examples of navigation methods 23-5Using keys 23-7General rules about precedence 23-7Precedence and the F1 key 23-8Precedence and embedded ActiveX objects 23-8Precedence and embedded OLE objects 23-8Reserved keys 23-9Creating client keys 23-10Running client key components 23-11

24 • Using the RSView SE Client object model and display code

Using VBA with RSView 24-1Summary of basic steps 24-2About procedures 24-2How VBA code runs 24-2The VBA integrated development environment 24-3Parts of the VBA IDE 24-3The RSView SE Client object model 24-4Viewing the objects 24-7Getting Help on RSView SE Client objects 24-8Using VBA Help 24-8VBA documentation 24-8

Trang 21

25 • Setting up language switching

About language switching 25-1Summary of steps 25-2Setting up Windows to support language switching 25-2Installing languages for single-font support 25-2Viewing regional and language options 25-3Creating the application in a base language 25-3Support for multiple languages in the graphic libraries 25-4Using graphic libraries that support multiple languages 25-5Adding languages to the application 25-5Exporting application text strings for translation 25-6Exported text file format 25-7Troubleshooting export problems 25-7Text strings that allow language switching 25-8Text strings that do not allow language switching 25-8Importing translated text files 25-10Troubleshooting import problems 25-11Setting up language switching at run time 25-13Important information for translators 25-13File name and format 25-13Opening the text file in Microsoft Excel 25-13Saving the text file in Microsoft Excel 25-14Differences in file format for files saved in Excel 25-14Saving the Unicode text file in Notepad 25-15File schema 25-15Working with pairs of double quotes 25-16Working with backslashes and new-line characters 25-16

26 • Setting up a redundant system

About redundancy 26-1Setting up a redundant RSView SE system 26-1Summary of steps 26-1HMI redundancy as part of a complete strategy 26-2Protecting against software failures 26-3 Considering redundancy options 26-4About failure of FactoryTalk Network Directory 26-5Redundant HMI servers 26-6Redundant data servers 26-8Planning the layout of a redundant system 26-8

An application with a single redundant pair of HMI servers 26-9

An application with two redundant pairs of HMI servers 26-10

Trang 22

Licensing in a redundant system 26-10FactoryTalk Directory computer 26-10RSView SE Server software 26-11Data servers 26-11RSView SE clients 26-11

27 • Deploying distributed applications

About deploying distributed applications 27-1Summary of steps to deploy a distributed application 27-1Backing up the application 27-3Backing up FactoryTalk System information 27-4Setting up the FactoryTalk Network Directory server 27-4Specifying the location of FactoryTalk Network Directory 27-5Moving HMI project files 27-6Copying an HMI server that is not running 27-6Copying an HMI server while it is running 27-7Restoring the application 27-7Restoring FactoryTalk System information 27-8Changing HMI server properties 27-8Updating the name of the HMI server’s host computer 27-9Starting and stopping HMI server components manually 27-9Stopping and starting HMI services manually 27-10Synchronizing redundant HMI servers and projects 27-11Moving data server files 27-12Files for RSLinx Enterprise 27-12Files for RSLinx Classic 27-12Changing data server properties 27-13Setting up the RSView SE clients 27-13Copying client setup files 27-14Opening the RSView SE clients 27-14Logging users on to the RSView SE client 27-15Opening multiple RSView SE clients 27-16How HMI server components start and stop 27-16Administering deployed applications 27-16Using the RSView Administration Console 27-16Monitoring disk space on HMI servers 27-18

28 • Deploying stand-alone applications

About deploying stand-alone applications 28-1Summary of steps to deploy a stand-alone application 28-1Moving stand-alone applications 28-3

Trang 23

Backing up and restoring FactoryTalk System information 28-4Changing HMI server properties 28-4Starting and stopping HMI server components manually 28-4Moving data server files 28-5Changing data server properties 28-5Setting up the RSView SE client 28-5Opening the RSView SE client 28-6Logging users on to the RSView SE client 28-7How server components start and stop 28-8Administering deployed applications 28-8Using the RSView Administration Console 28-8

AP P E N D I C E S

Using RSView commands A-1Where to use commands A-1How to use commands A-1Using placeholders in commands A-2Precedence A-3Where commands run A-4Using absolute and relative references A-5How relative references are resolved A-5Creating symbols A-6Important guidelines A-7Using the command line A-8Using the Command Wizard A-8

B • Setting up DDE communications for HMI tags

About DDE communications B-1Overview of DDE communications B-2Setting up an HMI server as a DDE client B-2Summary of steps B-2Creating an HMI tag that uses DDE B-3Specifying Device as the data source B-3Syntax for DDE addresses B-3Scanning for new tag values B-4

Trang 24

C • ODBC database schemas

FactoryTalk® Diagnostics™ log table C-1Alarm log table C-2Data log tables C-4

D • RFC1766 names for Windows® languages

E • Importing and exporting XML files

About XML E-1Creating XML files by exporting E-1Editing XML files E-2Saving XML files in Notepad E-2Testing XML files E-2Importing XML files E-3Error log file E-3Importing graphic display XML files E-3Graphic display XML file structure E-3

Index

Trang 25

server human-machine interface applications RSView Supervisory Edition is designed for automated process or machine monitoring, and supervisory control.

Designed for use with Microsoft® Windows® 2003 Server and Windows XP, RSView Supervisory Edition gives you all the tools you need to create effective monitoring and supervisory control applications

About the documentation

The RSView Supervisory Edition documentation set includes:

Release Notes: Information to read before you begin installing or working with the

software

RSView Supervisory Edition Installation Guide: A guide to installing and activating the

various components of RSView Supervisory Edition

RSView Supervisory Edition User’s Guide, Part 1 and RSView Supervisory Edition User’s Guide, Part 2: Comprehensive information about RSView Supervisory Edition,

procedures for creating and running an automation application, and reference information.For ease of printing, the User’s Guide is divided into two parts, available from the Help menu in RSView Studio™ For detailed information about the contents of each guide, see the Bookmarks tab in the online guides

Help: Online procedures and reference information.

The Release Notes are available on the RSView Supervisory Edition CD-ROM, as well as from the Help menu in RSView Studio The User’s Guide, Installation Guide, and Help are available from the Help menu in RSView Studio

Finding the information you need

You have many options for finding information about how to use RSView, or how to solve problems with RSView

Try the User’s Guide and Help first

The User’s Guide and Help provide comprehensive information about typical uses of RSView Probably, your question is answered in the documentation

Trang 26

To find the answer, use the table of contents and the index in the User’s Guide and Help You can also perform a full-text search on both the Help and the User’s Guide For information about using Help and the User’s Guide, see Chapter 3, “Getting the

information you need” in the RSView Supervisory Edition Installation Guide.

For information about searching the User’s Guide, see Adobe® Reader® Help

Information on the Internet

If you can’t find the answer to your question or problem in the User’s Guide or Help, you can also find information on the World Wide Web

You can connect to the Rockwell Software and Rockwell Automation web sites from within RSView Studio To do so, you must have a web browser installed on your computer, and you must have an active Internet connection

To connect to web sites from RSView Studio

1 On the Help menu, select Rockwell Software on the Web, and then click the name of the web page you want to view

The Rockwell Automation KnowledgeBase

The KnowledgeBase web page contains a comprehensive searchable database of support information for all Rockwell Automation and Rockwell Software products

Rockwell Software Discussion Forums

The Rockwell Software Discussion Forums are web pages for users of Rockwell Software products The forums offer discussion groups, for exchanging tips and questions with other RSView users

Contacting Rockwell Software Technical Support

If you can’t find the answer to your question using any of the resources suggested above, contact Rockwell Software Technical Support at:

Telephone:440-646-5800Fax:440-646-5801World Wide Web Support web sites:

http://www.software.rockwell.com, http://support.rockwellautomation.comSupport staff are available Monday to Friday from 8 AM to 5 PM local time (North America only), except on statutory holidays

Trang 27

When you call

When you call, be at your computer and ready to give the following information:

„ the product serial number

You’ll find this number on the Activation disk label and in the About RSView Studio dialog box available from the Help menu in RSView Studio

„ the product version number

„ the type of hardware you are using

„ the exact wording of any messages that appeared on your screen

„ a description of what happened and what you were doing when the problem occurred

„ a description of how you tried to solve the problem

You might also be required to provide information about the RSView add-ons and updates that are installed on your computer

To view the list of installed add-ons and updates

1 In RSView Studio, click Help, and then click About RSView Studio

2 To view the list of installed add-ons, click Add-ons

3 To view the list of installed updates, click Updates

Trang 29

„ what graphic displays and graphic objects are

„ what global object displays and global objects are

„ using the Graphics editor

„ basic editing techniques

„ working with graphic objects

„ working with global object displays

„ using objects from the graphic libraries

„ importing graphic files from third-party applications

„ using bitmaps

„ using tag placeholders to specify tags at run time

„ setting up the run-time appearance and behavior of a graphic display

„ printing graphic displays at run time

About graphic displays and graphic objects

A graphic display represents the operator’s view of plant activity The display can show system or process data, and provide operators with a way to write values to external devices such as programmable controllers Operators can also print the display at run time

to create a visual record of tag values

Each graphic display can contain up to 3000 references to expressions or tags (HMI tags and data server tags) This limit includes the tags contained in embedded variables The limit also includes duplicate references For example, one display can contain only 3000 numeric inputs that refer to tags, even if all 3000 objects refer to the same tag

Graphic displays are made up of graphic objects which can be:

„ created in the Graphics editor

„ dragged and dropped from a graphic library

„ created by another Windows® application, then copied and pasted into a display or inserted using Object Linking and Embedding

Trang 30

„ ActiveX® objects embedded in the graphic display.

Importing and exporting graphic display XML files

Each graphic display’s information is contained in a file called displayname.gfx (where

displayname is the name you give to the graphic display).

The Graphics Import Export Wizard in RSView® Studio™ allows you to export this information to an XML file, or to import a graphic display XML file You can edit XML files to modify objects that already exist, or to add new objects to the display

For more information about importing and exporting graphic display XML files, see

Appendix E, Importing and exporting XML files.

About global object displays and global objects

RSView global objects allow you to link the appearance and behavior of one graphic object to multiple copies of that object in the same application

Global objects are created on global object displays In RSView Studio, you create global object displays in the Global Objects folder, the same way you create standard graphic displays in the Displays folder

All of the objects and groups of objects on a global object display are global objects Any graphic object you can create in RSView can be a global object, except for ActiveX controls, OLE objects, and alarm summaries

Working with global objects

When you copy a global object onto a standard display in the Displays folder, the copy is called a reference object The original global object in the Global Objects folder becomes its base object Reference objects have special properties that allow them to link to their base objects

At run time, when a standard display that contains reference objects is run, the global object display (or displays) that contains the corresponding base objects is loaded in the background

Changes you make to the base object are reflected in all of the reference objects linked to

it, the next time displays containing the reference objects are opened, or refreshed by closing and reopening them

For information about creating global object displays, see page 16-23

For information about setting up the Link properties of reference objects, see Chapter 17,

Setting up graphic objects.

Trang 31

Using the Graphics editor

Use the Graphics editor to create and modify standard graphic displays, global object displays, and graphic libraries

Where you open the Graphics editor determines what type of display you are creating

To open the Graphics editor

1 In RSView Studio, in the Explorer window, open the Graphics folder, right-click any

of the Displays, Global Objects, or Libraries icons, and then click New

You can also open the Graphics editor by double-clicking an existing standard display, global object display, or graphic library

The Graphics editor consists of these parts:

The toolbars contain buttons for commonly-used menu items The above illustration shows only three toolbars but there are others, including toolbars for foreground and background colors, pattern styles, and aligning objects

You can hide or show toolbars using the View menu, and move the toolbars around on the screen For more information about toolbars, see page 16-7

Trang 32

The display area is the graphic display The appearance of the display in the Graphics editor is similar to its runtime appearance except for the title bar and the position of the display Changes made at design time, such as resetting the zoom feature, do not affect the appearance of the display at run time.

Use the Display Settings dialog to specify the general runtime appearance and behavior of

a display For example, you can set up a title bar for the display, and specify its size, position, background color, and whether it has a border at run time For details, see Help

The Diagnostics List displays information about system activity such as command and macro usage, tag reads and writes, communication errors, and system-related warnings for the computer on which RSView® is installed

The status bar describes the action performed by the selected menu item or button The status bar also displays the x- and y-coordinates, and width and height, of the selected object

Using the Object Explorer

The Object Explorer displays a tree-list of all the objects in a display Objects are listed in front-to-back order, with the most recently-created objects at the front Grouped objects are listed as expandable items in the tree, with a + icon

When you click an object in the Object Explorer, it is selected on the display and selection handles appear automatically around it This means you can use the Object Explorer to select an object hidden by others in a display, instead of bringing the object to the front.The Object Explorer does not show wallpaper objects, or the objects within ActiveX composite objects.

Trang 33

To open the Object Explorer

1 On the View menu, click Object Explorer

You can keep the Object Explorer open while you work on different objects, and in different displays

You can also use the Object Explorer to highlight specific types of objects, and objects that have animation, or a tag or expression assigned to them

To highlight selected types of objects on a display

1 In the Object Explorer, click the Settings button

2 In the Highlight Settings dialog box, check the boxes beside items that you want highlighted, and then click OK

3 In the Object Explorer, check the Highlighting on check box

The objects are highlighted in red in the Object Explorer and in the graphic display

Click the + icon to view

the objects and grouped

objects within a group.

When you click an

object in the Object

Explorer, the object is

selected automatically

in the graphic display.

When you right-click an object in the Object Explorer, the object’s context menu opens, as

it does when you click the object in the graphic display.

Trang 34

right-Using the Property Panel

The Property Panel displays the properties of objects and the values assigned to the properties It also shows the tags or expressions assigned to an object’s connections.Use the Property Panel to modify the properties of objects, and to assign tags and expressions You can select multiple objects and make changes to the common properties

of all the objects, at the same time

To open the Property Panel

1 Right-click an object in a display, and then click Property Panel on the context menu

You can keep the Property Panel open as you work in the Graphics editor, and you can drag the panel’s borders to make the Property Panel larger or smaller For details about using the Property Panel, see Help

Basic editing techniques

When working on a graphic display, certain actions and techniques are used frequently Knowing how to perform these actions can save time

Zooming in and out

To magnify or reduce the view of a graphic display, use the Zoom In or Zoom Out option

on the View menu Zoom In magnifies objects, Zoom Out reduces magnification

… or drag this bar up

or down to see more properties, or more of the description.

This box describes

the selected property,

and the type of data

the property uses.

Zoom in

Zoom out

Trang 35

to Fit behaves the same as Cancel Zoom, which returns a display to its original size.

Using the grid

To size and position objects precisely, use the grid items on the View menu You can change the grid settings any time during the drawing process

If you select Snap to Grid, the grid is activated The next object you draw or position is pulled to the closest grid point This simplifies aligning and sizing objects When the grid

is on, all objects you draw or place are automatically aligned to the grid Turning on the grid does not affect the placement of existing objects

If you clear Snap to Grid, the grid is passive, and does not affect the position of objects

Turn off the grid to draw or position an element between the grid lines

Using the toolbars

The toolbars are a convenient way to perform an action You can:

„ hide or show them using the items on the View menu If there is a check mark beside the toolbar name, the toolbar is visible

„ drag them anywhere on the screen

„ dock them to an edge of the window (except the ActiveX Toolbox)

Selecting a drawing tool

The Objects toolbar contains tools for creating, selecting, and rotating objects The tools are also available on the Objects menu

To draw an object, click a tool in the toolbox or on the Objects menu to select it When you click a tool, the pointer changes to show which tool is active

To deselect a drawing tool, click the Select tool, or click another drawing tool

Select this check box to

make the grid visible.

Select this check box to

make the grid active.

Select a color for the

grid points.

Set the spacing

of the grid points in pixels.

Trang 36

Selecting and deselecting objects

To work with an object, you must first select it You can use the mouse or the Object Explorer to select objects

To select an object in a graphic display using the mouse, place the arrow cursor on the object and click the left mouse button Handles appear along the edges of a selected object

To select a group of objects, left click in the display at one corner of the group and then drag the cursor diagonally across the group drawing a bounding box around it When you release the mouse button, all the objects within the bounding box are selected

You can also select a group of objects by holding down the Ctrl key while you click the individual objects

To deselect an object or group of objects, point the cursor outside the object(s) and click the left mouse button

Using the context menu

When you right-click in a graphic display, a context menu opens The items on the menu depend on the cursor’s location For example, when you right-click an object, the menu contains items relevant to that object

When you right-click an object …

… the context menu opens It contains menu items for working with the selected object.

Trang 37

When you use duplicate to copy objects, you also duplicate actions For example, if you

duplicate an object, move it, and then duplicate it again, the second duplicate copies and

moves the object, in one step This is useful for creating a series of objects with an equal

distance between them

To duplicate an object

1 Right-click the object in a display, and then click Duplicate on the context menu

Duplicate works until you deselect the object

When an object is duplicated, any animation attached to the object is also duplicated If a group is duplicated, the new copy of the group can be ungrouped into individual objects

Reshaping objects

When you select an object, handles appear around it To reshape an object using these

handles, point the mouse cursor at a handle, hold down the left mouse button and then

drag the handle until the object is the correct shape

You can also reshape some objects using the editing tool To do this, right click the object and select Edit from its context menu The editing tool varies depending on the object that has been selected

Select object Duplicate object Move object Duplicate again

Trang 38

Arranging objects

You can arrange objects in a number of ways using the items on the Arrange menu or the buttons on the toolbar You can:

„ stack objects by moving them in front of or behind other objects

„ align objects with each other

„ space objects horizontally or vertically

„ flip objects horizontally or vertically

„ rotate objects around an anchor point

„ combine several objects into a group that behaves as a single object

„ separate a grouped object into its component objects

If you attempt to resize a global reference object with its LinkSize property set to True, the object will snap back to its original size For more information about the LinkSize property, see “Setting

up the Link properties of reference objects” on page 17-49.

Drag a side handle to change either the width or height.

Drag a corner handle to change both the width and height.

Trang 39

You can stack objects on top of each other Objects are stacked in the order they are

created, with the most recently created object on top Change the stacking order with Send

to Back and Bring to Front

Send to Back moves the selected object to the bottom of the stack

Select the object Send the object to back.

Select the object from behind Bring the object to front.

Trang 40

Aligning objects

Objects can be aligned with each other and with the grid Align objects with each other when you want the tops, bottoms, or sides to line up

Aligning objects top, middle, and bottom

This button or menu item Aligns selected objects with the

Align Left Left-most selected object Align Center Horizontal center of the largest selected objectAlign Right Right-most selected object

Align Top Top-most selected objectAlign Middle Vertical center of the largest selected object Align Bottom Bottom-most selected object

Align Center Points Center of all selected objects

Align top

Align middle

Align bottom

Ngày đăng: 15/12/2016, 16:47

TỪ KHÓA LIÊN QUAN