RSLinxTraining Guide
4 RSLinx – Training Guide RSLinx can transfer data to and from Allen-Bradley PLCs using common Allen-Bradley communications devices such as the
94 RSLinx – Training Guide The CIP Diagnostics Dialog Box The CIP Diagnostics dialog provides global information that is not specific to any dr
RSLinx – Training Guide 95 The above errors were logged when the emulator was shut down with an active link. The DDE Communication Event Log Commun
96 RSLinx – Training Guide Communication events displays details such as processor manufacturer and type, the item affected by the error, and the
RSLinx – Training Guide 97 The Event Log When you select View Event Log from the Tools menu, an Open Event Viewer dialog box displays: The NT Ev
98 RSLinx – Training Guide Options When you select Options from either the DDE/OPC or Tools menu, an Options dialog box displays. The Options dia
RSLinx – Training Guide 99 The Services Tab gives the option of starting RSLinx as an NT Service each time your system is started. If you are usin
RSLinx – Training Guide A - 1 Appendix A: Support Library Technotes The following technotes and more can be found in the Support Library at the
A - 2 RSLinx – Training Guide NetDDE NT to NT The information in this technote applies to: Product: RSLinx Type: Application Note Technote I
RSLinx – Training Guide A - 3 NetDDE Configuration with RSLinx, RSView32, and EXCEL The information in this technote applies to: Product: RSView
RSLinx – Training Guide 5 New Features RSLinx version 2.1 Features • Network Shortcuts – Provides quick access to specific network hiding ro
A - 4 RSLinx – Training Guide RSView32 connecting to RSView32: 1. Start the DDE server in RSView32. To do this check the DDE Server check box
RSLinx – Training Guide A - 5 Legal Notice: The information provided in the Rockwell Software Inc. (RSI) Knowledgebase is provided "as is&
A - 6 RSLinx – Training Guide The OPC client poll rate can over ride the RSLinx topic poll rate The information in this technote applies to: P
RSLinx – Training Guide A - 7 TEN THINGS YOU SHOULD KNOW ABOUT TCP/IP The information in this technote applies to: Product: RSLinx Type: Applicat
A - 8 RSLinx – Training Guide 3) How is the TCP/IP Address formatted? A TCP/IP address is comprised of 32-bits of information. These 32-bits are
RSLinx – Training Guide A - 9 7) What are the specifications for a Class A, Class B, and Class C network? In a Standard Class A network, the first
A - 10 RSLinx – Training Guide Network.Network.Node.Node To determine the valid number of Network Addresses, recall that a Class B network has a
RSLinx – Training Guide A - 11 Class Decimal Range of First Octet Maximum Networks Maximum Hosts A 1-126 126 16,777,214 B 128-191 16,384 65,534 C
A - 12 RSLinx – Training Guide How to monitor which topic within an Alias is currently active The information in this technote applies to: Pro
RSLinx – Training Guide A - 13 Example: 1. In RSLinx, configure an topic called "MyAlias". Within the alias configure topics, configure
6 RSLinx – Training Guide New Features (cont.) • Drivers Ø 1784-PCC PCMCIA for ControlNet (NT driver). § The NT kernel mode driver is ship
A - 14 RSLinx – Training Guide Understanding How RSView32 Manages Communications With RSLinx - or Any DDE/OPC Server. The information in this
RSLinx – Training Guide A - 15 Show Last Acquired Value in Graphics: By default graphic screens have this property checked or enabled. The last ac
A - 16 RSLinx – Training Guide Communication Status Information: In RSLinx when using DDE/OPC there are diagnostic tools for troubleshooting com
RSLinx – Training Guide A - 17 When a OPC node is created in RSView32, the following 4 system tags are created. System\ComErrorStringOPC System\Co
A - 18 RSLinx – Training Guide How to connect a remote RSView32 client to an RSLinx Gateway OPC Server. The information in this technote appli
RSLinx – Training Guide A - 19 RSLinx Gateway currently supports up to 5 remote clients. The easiest way to make a successful remote connection is
A - 20 RSLinx – Training Guide Tip: When upgrading from RSLinx Gateway 2.0 to 2.1 the node configuration in RSView32 should be altered to reflec
RSLinx – Training Guide A - 21 RSLinx OPC Server and RSView32 The information in this technote applies to: Product: RSLinx Type: Application Not
A - 22 RSLinx – Training Guide This graphic for reference only. Legal Notice: The information provided in the Rockwell Software Inc. (RSI)
RSLinx – Training Guide A - 23 Client: Could not connect to the OPC Server - caused by Upgrading RSLinx Professional from 2.0 to 2.1 The informa
RSLinx – Training Guide 7 New Features (cont.) • RSLinx runs "headless" when automatically started by RSView32, OPC clients, RSLogix p
A - 24 RSLinx – Training Guide Solution: Update the node definition, changing the RSLinx OPC Server Type from Local to In-Process. Legal Notic
RSLinx – Training Guide A - 25 Cannot perform NetDDE with RSLinx on Windows 95/98 The information in this technote applies to: Product: RSLinx T
A - 26 RSLinx – Training Guide Alternate Solution - Run RSLinx on a Windows NT computer. This enables you to create the DDE Share that is necessa
RSLinx – Training Guide A - 27 Checklist for trouble-free serial port communications. The information in this technote applies to: Product: Thir
A - 28 RSLinx – Training Guide Be sure that the comm port selected is enabled in the BIOS / CMOS setup.* Be sure there are no conflicting devices
RSLinx – Training Guide A - 29 Legal Notice: The information provided in the Rockwell Software Inc. (RSI) Knowledgebase is provided "as is
A - 30 RSLinx – Training Guide Receiving Unsolicited Messages in RSView32 with RSLinx The information in this technote applies to: Product: R
RSLinx – Training Guide A - 31 Configuration: By configuring an Unsolicited DDE Topic in RSLinx, RSView32 can receive unsolicited writes to the tag
A - 32 RSLinx – Training Guide How this works: When a graphic is initially displayed, the data is read from the PLC5/SLC5. Thereafter, all updat
RSLinx – Training Guide B – 1 Appendix B: OPC Specification Overview OPC Overview Version 1.0 October 27, 1998
8 RSLinx – Training Guide RSLinx Features RSLinx has had the following existing features since version 2.0 and earlier: • Support for all A-
B - 2 RSLinx – Training Guide Synopsis: This specification serves as overview to OPC. It gives background information, motivation, architectural
RSLinx – Training Guide B - 3 NON-EXCLUSIVE LICENSE AGREEMENT The OPC Foundation, a non-profit corporation (the “OPC Foundation”), has established
B - 4 RSLinx – Training Guide technology. THE OPC MATERIALS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BU
RSLinx – Training Guide B - 5 GENERAL PROVISIONS: This Agreement and User’s license to the OPC Materials shall be terminated (a) by User ceasing a
B - 6 RSLinx – Training Guide Table of Contents 1. INTRODUCTION ...
RSLinx – Training Guide B - 7 Introduction Readers Guide This document serves as an overview to OPC. It gives background information, motivation,
B - 8 RSLinx – Training Guide Purpose What is needed is a common way for applications to access data from any data source like a device or a dat
RSLinx – Training Guide B - 9 OPC Alarm&Event Server, OPC HistoricalData Server. The Current Client Application Architecture There are man
B - 10 RSLinx – Training Guide The architecture and design of the interfaces are intended to support development of OPC servers in other language
RSLinx – Training Guide B - 11 General OLE for Process Control (OPC™) is designed to allow client applications access to plant floor data in a cons
RSLinx – Training Guide 9 Another view of the same information: RSLinx Processor/Communications Device Support Matrixes Allen-Bradley Hardware E
B - 12 RSLinx – Training Guide Scope A primary goal for OPC is to deliver specifications to the industry as quickly as possible. With this in min
RSLinx – Training Guide B - 13 This specification describes the OPC COM Objects and their interfaces implemented by OPC Servers. An OPC Client can
B - 14 RSLinx – Training Guide There are two types of groups, public and local (or ‘private’). Public is for sharing across multiple clients, loc
RSLinx – Training Guide B - 15 related to specific conditions. OPC Clients may subscribe to be notified of the occurrence of specified events. The
B - 16 RSLinx – Training Guide Application OPC I/FOPCServerOPC I/FSCADASystemPhysical I/FPhysical I/FPhysicalI/OPhysicalI/O Figure 0-4 - OPC Clie
RSLinx – Training Guide B - 17 Figure 2-6 - Typical OPC Architecture Local vs. Remote Servers It is expected that OPC Server vendors will take
B - 18 RSLinx – Training Guide NOTE: the issue under discussion here is Server Browsing. This is entirely different from the Address Space brows
RSLinx – Training Guide C - 1 Appendix C: RSEmulate 5 & 500 RSEmulate 5 & 500 Table of Contents Subject Page Intro
C - 2 RSLinx – Training Guide Introduction to the Rockwell Software RSLogix Emulator Rockwell Software’s Emulator allows the testing of ladder
RSLinx – Training Guide C - 3 Emulators available from Rockwell Software This training guide discusses the concepts and techniques used in the em
10 RSLinx – Training Guide Benefits of RSLinx • Ease of upgrade to new processors and networks because all of the 32-bit Allen-Bradley drivers
C - 4 RSLinx – Training Guide Setting Up and Basic Usage of the Emulator Getting the Emulator to scan a normal ladder logic program is quite sim
RSLinx – Training Guide C - 5 The emulator can emulate multiple ladder logic files at one time, essentially creating a network of PLC’s analogous t
C - 6 RSLinx – Training Guide Using LINX with the Emulator The Emulator uses RSLinx or Wintelligent LINX as its driver or “link” to other softwa
RSLinx – Training Guide C - 7 Configuring LINX: For software to communicate with a PLC (real or emulated), LINX must be running, and must have the
C - 8 RSLinx – Training Guide “Simulating” real world conditions Since the Emulator functions from within the computer environment, there needs
RSLinx – Training Guide C - 9 Analog Emulation Since the data table is fully emulated, you can simulate values raising and lowering if necessary b
C - 10 RSLinx – Training Guide Scanning Modes The emulator allows for three types of ladder scanning modes and a Halt mode: Run Mode: continuou
RSLinx – Training Guide C - 11 Limit Execution to a Block of Rungs The Emulator has the ability to selectively execute only the rungs in a block
C - 12 RSLinx – Training Guide BreakPoints Breakpoints are special conditions that you assign to a rung or rungs. When these special conditions
RSLinx – Training Guide C - 13 scanned at all, either true or false, five times (e.g., I could find out if that subroutine were being scanned). D
RSLinx – Training Guide 11 RSLinx Lite, RSLinx OEM, RSLinx Professional, RSLinx SDK, RSLinx Gateway What’s the difference? RSLinx is available in
C - 14 RSLinx – Training Guide program file. That way, the information that the debug program temporarily stores cannot affect the normal flow of
RSLinx – Training Guide C - 15 Example & Strategies for a Debug File As a brief example, consider the following…In normal machine operation,
C - 16 RSLinx – Training Guide Debug Rung #1 Purpose: Read the status of the solenoid output bit in the main program and then start a timer whe
RSLinx – Training Guide C - 17 Next, the rungs from the debug file: Another possibility for a debug file might be to simulate a bit toggling on/
RSLinx – Training Guide D - 1 Appendix D: Using Network DDE Network DDE: Network DDE, referred to as NetDDE, is an extension of the DDE availabl
D - 2 RSLinx – Training Guide Starting Windows NT’s NetDDE Services Using NetDDE requires NT’s NetDDE Services to be started. Windows NT Networ
RSLinx – Training Guide D - 3 Shared Topic Configuration: With RSLinx, no user intervention is required to implement NetDDE. The only difference f
D - 4 RSLinx – Training Guide Syntax: The client setup for entering NetDDE syntax is similar to standard DDE syntax. The major additional piece
RSLinx – Training Guide D - 5 RSTREND as Client, RSLinx as Server: To establish a Network DDE hot link from RSTREND to RSLinx the syntax for the r
12 RSLinx – Training Guide • RSLinx Gateway – Includes all the functionality in RSLinx Professional, plus remote client connectivity or TCP/IP.
D - 6 RSLinx – Training Guide RSView32 as Client, RSLinx as the Server: To establish a Network DDE link from RSView32 RSLinx create a DDE Node i
RSLinx – Training Guide D - 7 The Item is pictured below. It is created as a tag in RSView32’s Tag Database Editor using the NetDDE node created
D - 8 RSLinx – Training Guide Beyond RSLinx - Another NetDDE Example RSView32 as Client, Different RSView32 Computer as Server: If you are runn
RSLinx – Training Guide D - 9 The Application is \\COMPUTER_NAME\NDDE$. COMPUTER_NAME is the name of the computer that has RSView32 installed on
D - 10 RSLinx – Training Guide The Item is pictured below. It is created as a tag in RSView32’s Tag Database Editor using the NetDDE node creat
RSLinx – Training Guide D - 11 NetDDE Reminders • If you are using NetDDE in Windows NT, you must configure the Network DDE DSDM services to star
www.rockwellautomation.com Corporate Headquarters Rockwell Automation, 777 East Wisconsin Avenue, Suite 1400, Mi
RSLinx – Training Guide 13 RSLinx Requirements Software requirements RSLinx requires one of the following software environments: • Microsoft Wi
Contacting Rockwell Software Technical Support Telephone—440-646-5800 Technical Support Fax—440-646-5801 World Wide Web—www.software.rockwell.com C
14 RSLinx – Training Guide RSLinx Help Systems Rockwell Software Technical Support Most questions can be answered with RSLinx’s many internal h
RSLinx – Training Guide 15 RSLinx Internal Help Help with RSLinx can be easily accessed by either pressing the F1 key or using the Help Menu Option
16 RSLinx – Training Guide Help on the Web On the Rockwell Software website, support area: http://www.software.rockwell.com/support/ Support Li
RSLinx – Training Guide 17 Software Updates If your software is currently under warranty or a support contract, you may be able to download a Softw
18 RSLinx – Training Guide Application Notes and Suggestions • With a ControlLogix 5550, unsolicited messages work on only an Ethernet network
RSLinx – Training Guide 19 Application Notes and Suggestions (continued) • When receiving unsolicited messages from an SLC 500 processor via a 1
20 RSLinx – Training Guide Application Notes and Suggestions (continued) Downgrading to a previous version of RSLinx If you have RSLinx Version
RSLinx – Training Guide 21 Application Notes and Suggestions (continued) 1784-PCMK and PCMCIA information and Windows NT limitations When using a
22 RSLinx – Training Guide Application Notes and Suggestions (continued) Running RSLinx on machines not on a network 1. Start Windows NT 4.0
RSLinx – Training Guide 23 Application Notes and Suggestions (continued) Routing through bridge devices • RSLinx can not communicate through an
RSLinxTraining Guide
24 RSLinx – Training Guide
RSLinx – Training Guide 25 Training Section 2: Installing RSLinx RSLinx is installed using a standard Windows setup program. Your RSLinx packa
26 RSLinx – Training Guide 6. A new installation step will require a 10-digit number. • The setup program will not all you to proceed until a
RSLinx – Training Guide 27 Training Section 3: Configuration of Communication Hardware, RSWho and Diagnostics 1. Open RSLinx. The following sc
28 RSLinx – Training Guide Lab / Discussion: 1. Start-up RSLinx. 2. Click the Configure Communications Hardware icon. The Configure Dri
RSLinx – Training Guide 29 4. Click Add New. The following dialog will appear to name the new driver: • Use the default AB_KT-1 5. Click OK •
30 RSLinx – Training Guide Configuring the 1784 KT 1. To configure the KT, take the following steps (each item is selected and configured by cl
RSLinx – Training Guide 31 Take note of the new AB_KT-1 driver that is displayed in the Configured Drivers section of the Configure Hardware dialog
32 RSLinx – Training Guide RSWho RSWho is RSLinx’s network browser interface. RSWho allows you to view all the active network connections from a
RSLinx – Training Guide 33 Lab / Discussion 1. Check if the connection to the DH+ is good by opening an RSWho. • Click the RSWho icon. Ø Alt
34 RSLinx – Training Guide 3. Note that each device on the DH+ is identified by its own icon. Also displayed are the station or project name
RSLinx – Training Guide 35 5. Right-click on the KT in the RSWho window. Select Driver Diagnostics. • When you are finished looking at the dia
36 RSLinx – Training Guide
RSLinx – Training Guide 37 Training Section 4: Using the Data Table Monitor Data Table Monitors The Data Monitor can now view the activity in yo
38 RSLinx – Training Guide The following fields display on the Data Monitor dialog box: Data Grid displays data values for addresses in the da
RSLinx – Training Guide 39 The Data Table’s Properties option allows you to change the poll rate and radix of the data (Binary, Octal, Decimal, Hex
40 RSLinx – Training Guide
RSLinx – Training Guide 41 Training Section 5: DDE and How It Works Dynamic Data Exchange (DDE) is an interprocess communications specification
42 RSLinx – Training Guide DDE Continued - Application, Topic, Item Each Dynamic Data Exchange question consists of three parts: • To whom am
RSLinx – Training Guide 43 Item: After the Application and Topic are known, your Microsoft Windows application must provide RSLinx with the specif
RSLinx – Training Guide i Table Of Contents Goals of this manual...1 Training
44 RSLinx – Training Guide Data Format: AdvanceDDE, XL_Table and CF_Text A brief discussion of available Data Formats for DDE communications foll
RSLinx – Training Guide 45 AdvanceDDE In addition to supporting CF_Text and XL_Table, Rockwell Software has also implemented its own DDE data forma
46 RSLinx – Training Guide Lab/Discussion: DDE Terminology You should be familiar with the following terms (if not, please read the immediately
RSLinx – Training Guide 47 Training Section 6: Project, Topic and Alias Configuration After configuring your communications hardware and verifyi
48 RSLinx – Training Guide 2. A topic is a pointer to a PLC, much like how your telephone number “points” to your house. It also determines how
RSLinx – Training Guide 49 The following Topic Configuration will appear: 3. Replace the default topic name with the name testsol. • If the D
50 RSLinx – Training Guide 4. Click on the Data Collection Tab and set the Data Collection mode to Poll Rate and the rate at 100 mSec (one-tenth
RSLinx – Training Guide 51 Use good judgement when selecting poll rates. Only collect fast changing data at the higher rates. Create slower topics
52 RSLinx – Training Guide Keep DeviceNet connection open Enabling this checkbox may increase DeviceNet Traffic. Do not check this box if the po
RSLinx – Training Guide 53 Click the Advanced Communications Tab, look but do not change anything. Important: Changing the information
54 RSLinx – Training Guide Local or Remote Addressing These options vary depending on the current communication hardware driver and the bridge de
RSLinx – Training Guide 55 Alias Configuration An Alias Topic is a “virtual” or “redundant” topic that you can use to reference other topics. Thi
56 RSLinx – Training Guide The following information is displayed in the Alias Topic Configuration dialog box: • List of Alias Topics shows a l
RSLinx – Training Guide 57 Training Section 7: Establishing a DDE Link to Microsoft Excel Once a DDE topic is configured, you are ready to estab
58 RSLinx – Training Guide 5. In the Columns per Row box leave it at the default value of 1. This will format the block of data to be placed in
RSLinx – Training Guide 59 11. Note that the formula bar in Excel contains the formula that is needed to establish the DDE Hot Link. This link was
60 RSLinx – Training Guide Charting Data In Excel 13. We are now going to create a live chart from the PLC data. Make sure that the five cells
RSLinx – Training Guide 61 16. After selecting the chart type, just click Finish or, if you prefer, click Next repeatedly until the Wizard is compl
62 RSLinx – Training Guide
RSLinx – Training Guide 63 Training Section 8: Writing a Simple Microsoft Excel Macro Goal: In this section, we will go through the steps to wri
RSLinx – Training Guide 1 Goals: By the end of the training period, using this training guide, classroom instruction and experience with RSLinx,
64 RSLinx – Training Guide 6. Click on the Button tool and the mouse pointer will turn into a cross. Now you must identify where you would like
RSLinx – Training Guide 65 8. The View Code option opens the Excel 97 Visual Basic environment. • From here you will enter the code (subroutine
66 RSLinx – Training Guide 11. Your command button should now be ready to function. However, before you press it, you should put a value into c
RSLinx – Training Guide 67 Additional Macro Examples: Using procedures similar to those on the previous pages, the following Visual Basic Code can
68 RSLinx – Training Guide
RSLinx – Training Guide 69 Training Section 9: Local and Remote OPC Introduction This section outlines step by step the configuration of Windows t
70 RSLinx – Training Guide RSView32 6.0 or higher can be configured for OPC through the node configuration. Under the systems folder in the proj
RSLinx – Training Guide 71 RSTools can connect to an OPC server by using a special syntax for the application name under the “Link” Tab. Right cli
72 RSLinx – Training Guide OPC over a network Configuring Windows for DCOM OPC between two PCs over a network uses Windows DCOM. The setup is s
RSLinx – Training Guide 73 If you do NOT have a domain controller on your network, you will need to setup a PC running Windows NT Server (not works
2 RSLinx – Training Guide
74 RSLinx – Training Guide Allow some or all domain users privileges to a specific application only under DCOM configuration. In order to do th
RSLinx – Training Guide 75 Allow some or all domain users privileges under DCOM Configuration. Go to the start menu and choose run. Type in “D
76 RSLinx – Training Guide Configuring Rockwell Software for OPC over a network No special configuration should be required for RSI servers built
RSLinx – Training Guide 77 Training Section 10: Using OPC Automation in VB to Read a Single Element - The Basics - 1. Open Microsoft Visual Ba
78 RSLinx – Training Guide 4. Add a ListBox control to Form1 as shown. 5. Double click in a gray area of Form1 to display the code window
RSLinx – Training Guide 79 6. Enter the following lines of code to the [General][Declarations] section of the project. Note: Throughout this lab
80 RSLinx – Training Guide 8. Click on the drop down list of objects and select MyOPCGroup. The DataChange event will be displayed by default.
RSLinx – Training Guide 81 10. Start the project and observe the changing data.
82 RSLinx – Training Guide - Going Further - 11. Display all of the information returned by the OPC Server in the ListBox by modifying the MyOPC
RSLinx – Training Guide 83 Training Section 11: Using OPC Automation in VB to Write a Single Element - The Basics - 13. Open Microsoft Visual
RSLinx – Training Guide 3 Training Section 1: Introduction Product Description RSLinx is a complete 32-bit product family that provides communi
84 RSLinx – Training Guide 16. Add a ListBox, a TextBox and a CommandButton to Form1 as shown. 17. Click on Text1 to give the TextBox obj
RSLinx – Training Guide 85 18. Double click in a gray area of Form1 to display the code window for the project. Click the drop down list of Object
86 RSLinx – Training Guide 21. Add the following code to the Command1_Click event. Note the dimensions for the arHandles and arValues arrays are
RSLinx – Training Guide 87 22. Click on the drop down list of objects and select MyOPCGroup. The DataChange event will be displayed by default. A
88 RSLinx – Training Guide 24. Start the project and observe the changing data. 25. Enter a number from 0 to 60 in the TextBox and click the
RSLinx – Training Guide 89 Training Section 12: Diagnostics, Troubleshooting and Options Once a link is established, we can look back into RSLin
90 RSLinx – Training Guide More TCP diagnostics are found under the General, Performance, Connection Event Log, and Active Connections tabs in th
RSLinx – Training Guide 91 • Text Packets Hot - The number of DDE Advises sent from RSLinx to DDE Clients via the CF_TEXT DDE Protocol. • Text Pa
92 RSLinx – Training Guide The DDE/OPC Server Diagnostics Dialog Box
RSLinx – Training Guide 93 Select DDE Client Diagnostics from the DDE/OPC menu to display the following diagnostic counters: • Module Name -The a
Kommentare zu diesen Handbüchern