logo资料库

AB触摸屏编程手册.pdf

第1页 / 共386页
第2页 / 共386页
第3页 / 共386页
第4页 / 共386页
第5页 / 共386页
第6页 / 共386页
第7页 / 共386页
第8页 / 共386页
资料共386页,剩余部分请下载后查看
RSView Machine Edition User’s guide Volume 1
Contents
Preface
1-Getting Started
The parts of RSView Machine Edition
Additional software
FactoryTalk Administration Console
The RSView Machine Edition tools
RSView Studio tools
FactoryTalk tools
2-Exploring RSView Studio
Starting and exiting RSView Studio
Starting RSView Studio
Exiting RSView Studio
Opening sample applications
Exploring the RSView Studio main window
The menu bar
The toolbar
The Explorer window
The workspace
The Diagnostics List
The status bar
Workbook tabs
Showing and hiding items in the main window
Using the Explorer window
Viewing the Explorer window
Moving the Explorer window
Working with editors
Locating editors
Viewing an editor's components
Opening editors
Closing editors
Entering information in spreadsheets
Working with components
Creating components
Opening components
Saving components
Closing components
Adding components into an application
Deleting components
Removing components
Renaming components
Duplicating components
Printing
Selecting a printer
Printing at runtime
3-Planning applications
Understanding the process
Collecting data
Designing an HMI tag database
Collecting information
Organizing tags
Planning graphic displays
Developing a hierarchy of displays
Creating a template to ensure consistency
Designing displays
Usability
Planning languages
Planning alarms
Providing information for the operator
Local and information messages
Diagnostics messages
Planning trends
Planning recipes
Designing a secure system
4-Working with applications
What is an application?
Application versus project
HMI project file
Runtime application file
Component files
External folders
Default log file locations for PanelView Plus or VersaView CE applications
Naming files
Creating, importing, opening, and closing applications
Creating applications
Importing applications
Opening applications
Opening multiple applications
Opening and editing applications from earlier versions of RSView
Closing applications
Renaming, copying, deleting, backing up, and restoring applications
About project settings
Project window size and runtime screen resolution
Title bar
Specifying project settings
Viewing application properties
Viewing HMI server properties
5-Setting up communications
About OPC communications
Summary of steps
About data servers
Creating data servers
Setting up RSLinx Enterprise data servers
Setting up an OPC data server
Updating data server caches
6-Working with tags
Types of tags
Data server tags
HMI tags
The data source
Basic steps for using tags
When to use data server tags
Eliminating duplication
Using complex data
Steps for using data server tags
When to use HMI tags
Scaling, offsetting, or providing a range for data
Storing values in RSView memory
Steps for using HMI tags
Browsing for tags
Using the Tag Browser
Showing server names
Browsing for off-line tags
Using tags and expressions in your application
Assigning tags
Assigning tags to graphic objects
Using expressions to manipulate tag values
Substituting tag names used in graphic objects
Logging tag values
Using macros to assign values to tags
7-Using HMI tags
HMI tag types
Analog tags that use floating-point values
How values are rounded
Using the Tags editor
Updating the contents of the Tags editor
Searching for HMI tags
Data sources
The data source
Device
Memory
Addressing syntax for device tags
Organizing HMI tags
Naming tags
Using folders to group tags
Viewing tag statistics
Other methods for creating HMI tags
Creating tags as needed in other RSView editors
Creating tags as needed in the Data Log Models editor
Importing tags from a PLC database
Using the Tag Import and Export Wizard
8-Setting up global connections
About global connections
Setting up global connections
Changing displays
Printing displays
Updating the date and time
Setting up backlight intensity remotely
Running macros
Controlling display changes remotely
Remote display changes and security
Setting up remote display changes
9-Setting up alarms
About alarms
Multiple language alarm messages
Other multiple language alarm features
Summary of steps
Setting up alarms
Preparing to set up alarms
The data source
Tags and expressions
Identifying alarm conditions
Importing and exporting alarm setup files
How alarms work
Alarm triggers and trigger values
Alarm notification methods
Displaying alarm information
Interacting with alarms
The alarm log file
Alarm trigger data types
The Value trigger type
The Bit trigger type
The Least Significant Bit (LSBit) trigger type
Tips for using array tags
Equivalent data types
RSLinx Enterprise tag syntax
KEPServerEnterprise tag syntax
Creating alarm messages in multiple languages
Optional alarm connections
Connections that work with a specific alarm trigger
How the Handshake connection works
How the Ack connection works
How the Remote Ack connection works
How the Remote Ack Handshake connection works
Ensuring alarm messages are read by the data source before sending new messages
Methods of alarm message handshaking
Holding the message for a specific period of time
Holding the message until the data source acknowledges that it has read the message
How messages are queued
How the Message connection works
How the Message Notification connection works
How the Message Handshake connection works
Connections that apply to all alarms
How the Silence connection works
How the Remote Silence connection works
How the Remote Ack All connection works
How the Status Reset connection works
How the Remote Status Reset connection works
How the Close Display connection works
How the Remote Close Display connection works
The [ALARM] display
The [ALARM BANNER] display
The [ALARM MULTI-LINE] display
The [STATUS] display
The [HISTORY] display
Using displays from the library in your application
Creating your own alarm display
Opening and closing the alarm display
Opening the display
Closing the display
How the alarm list graphic object works
What is displayed
How the list scrolls
How the alarm banner graphic object works
What is displayed
How the alarm status list graphic object works
What is displayed
What happens when the display is opened
Using buttons with the alarm history and alarm objects
Alarm buttons
Linking buttons to objects
Key buttons
Using alarm buttons to acknowledge, silence, clear, and delete alarms
Acknowledging the selected alarm
Acknowledging all alarms
Silencing alarms
Clearing and deleting messages
Using alarm buttons to sort alarms and reset alarm status
Sorting alarms
Resetting alarm status
Retaining alarm status
Changing the alarm status displayed in the alarm status list
10-Setting up FactoryTalk Diagnostics
About FactoryTalk Diagnostics
Browsing diagnostics messages
How to set up FactoryTalk Diagnostics
Destinations
Message routing
Categories
Message severities
Audiences
Displaying diagnostics messages during application development
Viewing FactoryTalk Diagnostics log files
Using the Diagnostics Setup tool
Logging to an ODBC database
Routing messages
Receiving messages from a PanelView Plus or VersaView CE terminal
Displaying and printing diagnostics messages at runtime
Using the Diagnostics List Setup editor
Setting up how messages are displayed and printed at runtime
The [DIAGNOSTICS] display
Creating your own diagnostics display
Opening and closing the diagnostics display
Opening the display
Closing the display
How the diagnostics list graphic object works
What is displayed
Using buttons with the diagnostics list
11-Setting up data logging
Summary of steps
Data log files
Data Log Models
Creating Data Log Models
Data storage locations
Data logging methods
Tags in the data log model
Changing the data log model used at runtime
Displaying data logs using the trend graphic object
Problems with data logging
12-Using information messages
About information messages
Information messages versus local messages
Summary of steps
Using the Information Messages editor
Setting up how information messages are displayed
Preparing to set up information messages
The data source
Identifying the tags and values to monitor
How information messages work
Information messages and trigger values
Creating information messages in multiple languages
The [INFORMATION] display
Creating your own information message display
Opening and closing the information message display
Opening the display
Closing the display
How the information message display graphic object works
What is displayed
Changing the message file used at runtime
13-Setting up security
Using security with your application
If you don’t want to use RSAssetSecurity
If you don’t use RSView user accounts
If you use RSView user accounts
Working with the User Accounts editor
The DEFAULT user
Setting up users for 4.0 applications
Setting up users for 3.x applications
Changing RSView 3.x user passwords
Adding 3.x users or groups from a Windows domain
Removing 3.x users or groups
How user accounts and security codes work
Assigning security to graphic displays
Providing a way for users to log in and log out
Logging in
Logging out
Logging out automatically
Preventing unauthorized users from stopping the application
To prevent unauthorized users from stopping the application
Additional step for Windows 2000 and Windows XP applications
Additional step for VersaView® CE applications
Setting up RSAssetSecurity for your application
Creating RSAssetSecurity users
Creating RSAssetSecurity user groups
Setting up security access to the FactoryTalk Directory
Setting up security access to the application
Setting up security access to System policies, groups, and users
Setting up security access to networks and devices
Specifying which users can back up and restore FactoryTalk Directory and RSView applications
Specifying activities to track for audit purposes
Specifying policies for passwords, accounts, and FactoryTalk sign-on
Summary of steps
Summary of security features in a sample startup display
14-Using graphic displays
About graphic displays and graphic objects
Before you begin
Using the Graphics editor
Creating and opening graphic displays
Importing and exporting graphic displays
Tools and tips for working in the Graphics editor
Using context menus
Using the toolbars
Showing displays in grayscale
Using the grid
Zooming in and out
Correcting mistakes
Testing your displays as you work
Setting up graphic displays
Specifying display settings
About display types
Resizing displays
Creating a background for your display
Using global object displays
Creating global object displays
Using graphic libraries
Creating graphic libraries
Using libraries as displays in your application
Using libraries to store displays with multiple languages
Location of library components
Importing images into your application
Bitmap images that come with RSView Studio
Importing bitmap and JPEG images
Using the Image Browser to import images
Tips for using images
Using parameter files
About tag placeholders
Summary of steps
Using the Parameters editor
Assigning parameter files to graphic displays
Using local messages
Local messages versus information messages
Summary of steps
Using the Local Messages editor
Preparing to set up local messages
How local messages work
Local messages and trigger values
Creating local messages in multiple languages
How the local message display graphic object works
Printing displays
Printing displays at runtime
15-Using graphic objects
Types of graphic objects
About connections
Illustrating your displays
Controlling the application
Starting and controlling processes
Displaying processes and values graphically
Working with lists, trends, alarm banners, and numeric input objects
Entering and displaying numeric and string values
Displaying alarms and messages
Selecting tools for creating graphic objects
Before you begin creating objects
Creating graphic objects
Creating drawing objects
Creating text
Creating images
Creating panels
Creating arcs and wedges
Creating ellipses and circles
Creating freehand shapes
Creating lines
Creating polygons and polylines
Creating rectangles and squares
Creating rounded rectangles and squares
Using .wmf and .dxf files
Using ActiveX objects
Creating reference objects
Tools and tips for working with objects
Selecting and deselecting objects
Using the Object Explorer
Highlighting objects in the Object Explorer
Using the Properties dialog box
Using the Property Panel
Setting up properties
Assigning tags and expressions to an object’s connections
Coloring objects using the color toolbars
Naming objects
Testing how objects look in different states
Assigning tags and expressions to graphic objects
Assigning tags
Using expressions to manipulate tag values
Replacing tags using tag substitution
Using tag placeholders
Performing basic operations on objects
Moving objects
Copying objects
Duplicating objects
Resizing objects
Reshaping drawing objects
Deleting objects
Working with groups of objects
Grouping and ungrouping objects
Editing groups of objects
Editing objects within a group
Arranging objects
Layering objects
Aligning objects
Spacing objects
Flipping drawing objects
Rotating drawing objects
Locking objects into position
16-Setting up graphic objects
Setting up objects’ spatial properties, names, and visibility
Tips for setting up objects with states
Copying and pasting properties from one state to another
Adding and removing states
Setting up reference objects’ link properties
Deleting the base object
Setting up how objects are used at runtime
Positioning objects for touch screens
Using touch margins
Assigning function keys to buttons
Function key equivalents
Using the keyboard to navigate to and select objects
What input focus looks like
Using the keys on the keyboard or keypad
Removing objects from and adding objects to the tab sequence
Linking buttons to objects
Repeating a button’s action by holding down the button
Ensuring values are read by the data source before sending new values
Methods of Enter key handshaking
Holding the value for a specific period of time
Holding the value until the data source acknowledges that it has read the value
Time, date, and number formats for graphic objects
Setting up buttons
Buttons described later in the chapter
How to use push buttons
Setting up momentary push buttons
Setting up maintained push buttons
Setting up latched push buttons
Setting up multistate push buttons
Setting up interlocked push buttons
Setting up ramp buttons
Setting up numeric displays
How values are displayed
Problems with displaying values
Setting up numeric input enable buttons
Setting up numeric input cursor points
Setting up string displays
How values are displayed
Setting up string input enable buttons
Setting up goto display buttons
Setting up close display buttons
Setting up display list selectors
How to use indicators
Setting up multistate indicators
Setting up symbols
Setting up list indicators
How to use bar graphs, gauges, and scales
Bar graphs make it easy to compare values
Thresholds change a bar graph’s fill color
Use bar graphs with scales to show limits
Gauges make it easy to see limits
Thresholds change a gauge’s fill color
Setting up bar graphs
Setting up gauges
Setting up scales
Setting up control list selectors
Using buttons with the control list selector
How Enter key handshaking works
Setting up piloted control list selectors
Choosing between piloted control list selectors and control list selectors
How piloted control list selectors work at runtime
Setting up local message displays
Setting up macro buttons
Setting up time and date displays
Setting up print alarm history buttons
Setting up print alarm status buttons
Setting up alarm lists
Setting up alarm banners
Setting up alarm status lists
Setting up diagnostics lists
Setting up information message displays
17-Animating graphic objects
Types of animation
Which objects can have which types of animation?
Using the Animation dialog box
About the Animation dialog box
Using Object Smart Path to visually set animation
Testing animation
Using tag names and tag placeholders
Tag names
Tag placeholders
Using expressions
Setting minimum and maximum values
Defining a range of motion
Animation that does not use a range of motion
Using Object Smart Path
Setting up the different types of animation
Setting up visibility animation
Setting up color animation
Setting up fill animation
Setting up horizontal position animation
Setting up vertical position animation
Setting up width animation
Setting up height animation
Setting up rotation animation
Setting up horizontal slider animation
Setting up vertical slider animation
Applying animation to groups
Checking the animation on objects
Copying or duplicating objects with animation
Copying animation without copying objects
Setting up animation for global objects
VIEWME-UM004D-EN-E_Ttlpg.qxd 7/18/05 2:55 PM Page 1 User’s Guide Volume 1 Publication VIEWME-UM004D-EN-E - July 2005 Supersedes Publication VIEWME-UM004C-EN-E
Contacting Rockwell Software Copyright Notice Trademark Notice Warranty Technical Support Telephone—440-646-5800 Technical Support Fax—440-646-5801 World Wide Web—www.rockwellsoftware.com Copyright © 2005 Rockwell Software Inc. All rights reserved. Printed in USA. 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. Rockwell Automation, Rockwell Software, Allen-Bradley, ControlLogix, FactoryTalk, PLC-5, RSLinx, RSTools, RSView, and VersaView are registered trademarks, and the Rockwell Software logo, RSAssetSecurity, RSLinx Enterprise, RSLogix, RSView Machine Edition, RSView ME Station, RSView Studio, RSView Supervisory Edition, A.I. Series, Advanced Interface (A.I.) Series, FactoryTalk Automation Platform, FactoryTalk Diagnostics, FactoryTalk Directory, PanelBuilder, PanelView Plus, SLC, and WINtelligent are trademarks of Rockwell Automation, Inc. Adobe 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 and registered trademarks are the property of their respective holders and are hereby acknowledged. 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. This 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 ViewME-UM004D-EN-E July 2005
Contents Preface About the documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1 Finding the information you need . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-2 Try the User's Guide and Help first . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-2 Information on the Internet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-2 Contacting Rockwell Software Technical Support. . . . . . . . . . . . . . . . . . . . . P-3 1 • Getting Started The parts of RSView Machine Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Additional software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 FactoryTalk Administration Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 The RSView Machine Edition tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 RSView Studio tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 FactoryTalk tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 2 • Exploring RSView Studio Starting and exiting RSView Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Starting RSView Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Exiting RSView Studio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Opening sample applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Exploring the RSView Studio main window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 The menu bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 The toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 The Explorer window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 The workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 The Diagnostics List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 The status bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6 Workbook tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 Showing and hiding items in the main window . . . . . . . . . . . . . . . . . . . . . . . . 2-7 Using the Explorer window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8 Viewing the Explorer window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 Moving the Explorer window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 Working with editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 Locating editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 Viewing an editor's components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 Opening editors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 i
• • • • • RSVIEW MACHINE EDITION USER’S GUIDE Closing editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12 Entering information in spreadsheets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12 Working with components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-13 Creating components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14 Opening components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14 Saving components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14 Closing components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14 Adding components into an application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15 Deleting components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16 Removing components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16 Renaming components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16 Duplicating components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17 Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17 Selecting a printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17 Printing at runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18 3 • Planning applications Understanding the process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 Collecting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Designing an HMI tag database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Collecting information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Organizing tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Planning graphic displays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Developing a hierarchy of displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Creating a template to ensure consistency . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Designing displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 Usability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 Planning languages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 Planning alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 Providing information for the operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 Local and information messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 Diagnostics messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6 Planning trends. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6 Planning recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6 Designing a secure system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7 4 • Working with applications What is an application? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 Application versus project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 HMI project file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 Runtime application file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 ii
Contents • • • • • Component files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 External folders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Default log file locations for PanelView Plus or VersaView CE applications. 4-3 Naming files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 Creating, importing, opening, and closing applications. . . . . . . . . . . . . . . . . . . . . . 4-4 Creating applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 Importing applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 Opening applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6 Opening multiple applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 Opening and editing applications from earlier versions of RSView . . . . . . . . 4-9 Closing applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 Renaming, copying, deleting, backing up, and restoring applications. . . . . . . . . . 4-10 About project settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10 Project window size and runtime screen resolution . . . . . . . . . . . . . . . . . . . . 4-10 Title bar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14 Specifying project settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16 Viewing application properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17 Viewing HMI server properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17 5 • Setting up communications About OPC communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 Summary of steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 About data servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 Creating data servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 Setting up RSLinx Enterprise data servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 Setting up an OPC data server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 Updating data server caches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 6 • Working with tags Types of tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 Data server tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 HMI tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 The data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 Basic steps for using tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 When to use data server tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 Eliminating duplication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 Using complex data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 Steps for using data server tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 When to use HMI tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 Scaling, offsetting, or providing a range for data . . . . . . . . . . . . . . . . . . . . . . . 6-4 Storing values in RSView memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 iii
• • • • • RSVIEW MACHINE EDITION USER’S GUIDE Steps for using HMI tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5 Browsing for tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5 Using the Tag Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6 Showing server names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7 Browsing for off-line tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7 Using tags and expressions in your application . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8 Assigning tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9 Assigning tags to graphic objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9 Using expressions to manipulate tag values . . . . . . . . . . . . . . . . . . . . . . . . . . 6-11 Substituting tag names used in graphic objects . . . . . . . . . . . . . . . . . . . . . . . 6-11 Logging tag values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-12 Using macros to assign values to tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-12 7 • Using HMI tags HMI tag types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 Analog tags that use floating-point values . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 How values are rounded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 Using the Tags editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 Updating the contents of the Tags editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 Searching for HMI tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 Data sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 The data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 Addressing syntax for device tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 Organizing HMI tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7 Naming tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7 Using folders to group tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7 Viewing tag statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8 Other methods for creating HMI tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8 Creating tags as needed in other RSView editors. . . . . . . . . . . . . . . . . . . . . . . 7-8 Creating tags as needed in the Data Log Models editor . . . . . . . . . . . . . . . . . . 7-9 Importing tags from a PLC database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9 Using the Tag Import and Export Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11 8 • Setting up global connections About global connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 Setting up global connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Changing displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Printing displays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 Updating the date and time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3 iv
Contents • • • • • Setting up backlight intensity remotely . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4 Running macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5 Controlling display changes remotely . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5 Remote display changes and security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-6 Setting up remote display changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-6 9 • Setting up alarms About alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1 Multiple language alarm messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1 Other multiple language alarm features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 Summary of steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 Setting up alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3 Preparing to set up alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3 The data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3 Tags and expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3 Identifying alarm conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4 Importing and exporting alarm setup files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4 How alarms work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4 Alarm triggers and trigger values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4 Alarm notification methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 Displaying alarm information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 Interacting with alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6 The alarm log file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-9 Alarm trigger data types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-10 The Value trigger type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-10 The Bit trigger type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-11 The Least Significant Bit (LSBit) trigger type . . . . . . . . . . . . . . . . . . . . . . . . 9-12 Tips for using array tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-14 Equivalent data types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-15 RSLinx Enterprise tag syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-15 KEPServerEnterprise tag syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-16 Creating alarm messages in multiple languages. . . . . . . . . . . . . . . . . . . . . . . . . . . 9-16 Optional alarm connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-17 Connections that work with a specific alarm trigger . . . . . . . . . . . . . . . . . . . . . . . 9-17 How the Handshake connection works. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-18 How the Ack connection works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-18 How the Remote Ack connection works . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-19 How the Remote Ack Handshake connection works . . . . . . . . . . . . . . . . . . . 9-20 Ensuring alarm messages are read by the data source before sending new messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-20 v
• • • • • RSVIEW MACHINE EDITION USER’S GUIDE Methods of alarm message handshaking . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-20 Holding the message for a specific period of time . . . . . . . . . . . . . . . . . . . . . 9-21 Holding the message until the data source acknowledges that it has read the message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-21 How messages are queued . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-22 How the Message connection works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-22 How the Message Notification connection works . . . . . . . . . . . . . . . . . . . . . 9-22 How the Message Handshake connection works . . . . . . . . . . . . . . . . . . . . . . 9-22 Connections that apply to all alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-23 How the Silence connection works. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-23 How the Remote Silence connection works . . . . . . . . . . . . . . . . . . . . . . . . . . 9-23 How the Remote Ack All connection works . . . . . . . . . . . . . . . . . . . . . . . . . 9-24 How the Status Reset connection works. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-24 How the Remote Status Reset connection works . . . . . . . . . . . . . . . . . . . . . . 9-24 How the Close Display connection works . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-24 How the Remote Close Display connection works . . . . . . . . . . . . . . . . . . . . 9-24 The [ALARM] display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-25 The [ALARM BANNER] display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-26 The [ALARM MULTI-LINE] display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-26 The [STATUS] display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-27 The [HISTORY] display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-28 Using displays from the library in your application. . . . . . . . . . . . . . . . . . . . . . . . 9-30 Creating your own alarm display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-30 Opening and closing the alarm display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-31 Opening the display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-31 Closing the display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-31 How the alarm list graphic object works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-31 What is displayed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-32 How the list scrolls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-33 How the alarm banner graphic object works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-33 What is displayed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-33 How the alarm status list graphic object works . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-34 What is displayed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-34 What happens when the display is opened . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-35 Using buttons with the alarm history and alarm objects . . . . . . . . . . . . . . . . . . . . 9-35 Alarm buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-35 Linking buttons to objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-37 Key buttons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-37 Using alarm buttons to acknowledge, silence, clear, and delete alarms . . . . . . . . 9-37 Acknowledging the selected alarm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-38 Acknowledging all alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-38 Silencing alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-39 vi
分享到:
收藏