RSLogix™Emulate5000 Getting Results Guide - LGEM5K-GR016E-EN-E
RSLogix™Emulate5000 Getting Results Guide - LGEM5K-GR016E-EN-E
Copyright Notice © 2010 Rockwell Automation Technologies, Inc. All rights reserved. Printed in USA.
This document and any accompanying Rockwell Software products are copyrighted by Rockwell Automation
Technologies, Inc. Any reproduction and/or distribution without prior written consent from Rockwell Automation
Technologies, Inc. is strictly prohibited. Please refer to the license agreement for details.
Trademark Notices Allen-Bradley, Arena, ControlLogix, Data Highway Plus, DH+, Data Highway II, Datapac, 9 Emonitor, Enlab,
Enlube, Enpac, Enshare, Entek, Entrx, Enwatch, eProcedure, FactoryTalk, GuardLogix, GuardPLC, Logix5000,
Logix5550, MicroLogix, MobileView, MobileView Guard, MotorMonitor, PanelBuilder, PanelView,
PhaseManager, PlantLink, PLC-2, PLC-3, PLC-5, Powermonitor, ProcessLogix, Propack Data, Rockwell, Rockwell
Automation, Rockwell Software, RSAssetSecurity, RSBizWare, RSBizWare BatchCampaign, RSBizWare
BatchHistorian, RSBizWare Coordinator, RSBizWare Historian, RSBizWare MaterialTrack, RSBizWare
PlantMetrics, RSBizWare Scheduler, RSBizWare Tracker, RSEnergyMetrix, RSLinx, RSLogix, RSLoop
Optimizer., RSNetWorx, RSNetWorx for ControlNet, RSNetWorx for DeviceNet, RS PMX, RSPower, RSSql,
RSTune, RSView, RSView Administration Console, SIMAN, SLC, SoftLogix, VersaView, WINtelligent, and XM
are trademarks of Rockwell Automation, Inc.
Any Rockwell Automation software or hardware not mentioned here is also a trademark, registered or otherwise, of
Rockwell Automation, Inc
Other Trademarks ActiveX, Microsoft, Microsoft Access, SQL Server, Visual Basic, Visual C++, Visual SourceSafe, Windows,
Windows ME, Windows NT, Windows 2000, Windows Server-, Windows 7, Windows XP, and Windows Vista are
either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
Adobe, Acrobat, and Reader are either registered trademarks or trademarks of Adobe Systems Incorporated in the
United States and/or other countries.
ControlNet is a registered trademark of ControlNet International.
DeviceNet is a trademark of the Open DeviceNet Vendor Association, Inc. (ODVA)
OLE for Process Control (OPC) is a registered trademark of the OPC Foundation.
Oracle, SQL*Net, and SQL*Plus are registered trademarks of Oracle Corporation.
All other trademarks are the property of their respective holders and are hereby acknowledged.
Warranty This product is warranted in accordance with the product license. The product’s performance may be affected by
This product is warranted in accordance with the product license. The product's performance may be affected by
system configuration, the application being performed, operator control, maintenance, and other related factors.
Rockwell Automation is not responsible for these intervening factors. The instructions in this document do not
cover all the details or variations in the equipment, procedure, or process described, nor do they provide directions
for meeting every possible contingency during installation, operation, or maintenance. This product's
implementation may vary among users.
This document is current as of the time of release of the product; however, the accompanying software may have
changed since the release. Rockwell Automation, Inc. reserves the right to change any information contained in this
document or the software at anytime without prior notice. It is your responsibility to obtain the most current
information available from Rockwell when installing or using this product.
Version: 19.01
Contents
iii
LGEM5K-GR016D-EN-E.book Page iv Thursday, October 28, 2010 1:15 PM
• • • • •
7 • Simulating I/O 41
Configure Simulated I/O in the Logic Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Configuring Produced and Consumed Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Using RSView32 or RSTestStand to Simulate I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Index 61
iv
LGEM5K-GR016D-EN-E.book Page 1 Thursday, October 28, 2010 1:15 PM
RSLogix Emulate 5000 supports projects that are developed with version 12 or higher of
RSLogix™ 5000 software.
Hardware Requirements
The computer on which you are installing RSLogix Emulate 5000 must meet the
following minimum requirements.
Personal computer Any with an Intel® Pentium 4 CPU running at 1.6 GHz or higher
Hyperthreaded and dual-core CPUs are supported.
RAM 1 GB or more
Monitor and video card Any with 16-color VGA graphics adapter 640 x 480, or greater resolution
(256-color, 800 x 600 min., for optimal resolution)
Hard drive 64 MB of free hard disk space per controller instance (or more based on
application requirements)
1
LGEM5K-GR016D-EN-E.book Page 2 Thursday, October 28, 2010 1:15 PM
• • • • •
Software Requirements
The following software must be installed before installing RSLogix Emulate 5000.
Operating system Microsoft® Windows XP The emulator will not run on other
Professional Edition versions of Windows.
(recommended) or Windows XP
Home Edition with Service Pack 2
or higher
- or -
Microsoft® Windows Server 2003
Standard Edition with Service Pack
2 or Microsoft Windows Server
2003 R2 Standard Edition with
Service Pack 2
- or -
Microsoft Windows Vista
- or -
Microsoft Windows Server 2008
Standard Edition with Service Pack
2
Logix5000 programming RSLogix 5000, version 12.0 or Required to program the emulator and
software higher observe its operation. To emulate a
controller that has been released with a
specific version of RSLogix 5000, the
matching version of RSLogix 5000 is
required. For example, if you want to
emulate a v18 controller, you must use
RSLogix 5000 v18.
Communication software RSLinx® Classic, version 2.56 Required for communicating with the
(CPR 9 SR 2) or higher emulator.
Software activation FactoryTalk® Activation version Required to identify that your copy of
3.02 (CPR 9 SR 2) or higher the software is legitimate. Not
(supplied with the software) necessary (but advised) if you are
upgrading a previously activated
version of RSLogix Emulate 5000.
2
LGEM5K-GR016D-EN-E.book Page 3 Thursday, October 28, 2010 1:15 PM
• • • • •
1 • INSTALLING RSLOGIX™ EMULATE 5000
Software activation is a process by which you identify that you have installed a legitimate
copy of RSLogix Emulate 5000 on your computer. Activation works through an activation
file that indicates to the software that you are using the software legitimately.
There are two forms of activation supported by RSLogix Emulate 5000:
EvRSI activation, which uses a master disk to deliver an activation file to your
computer
FactoryTalk Activation, which allows you to download an activation file through an
Internet connection
For new installations of RSLogix Emulate 5000, you must use FactoryTalk Activation to
activate the software.
If you are upgrading a current installation of RSLogix Emulate 5000, you may continue
to use your EvRSI activation. However, future versions of RSLogix Emulate 5000
will require you to use FactoryTalk Activation. Rockwell Software advises you to
activate your software using FactoryTalk Activation now.
Future versions of RSLogix Emulate 5000 will require using FactoryTalk Activation to activate
the software. Rockwell Software strongly suggests that you activate your software with
FactoryTalk Activation now to prevent difficulties with future versions of the software. If you wish
to upgrade your activation from EvRSI to FactoryTalk Activation, you will need to contact
Rockwell Automation Technical Support.
3
LGEM5K-GR016D-EN-E.book Page 4 Thursday, October 28, 2010 1:15 PM
• • • • •
4
LGEM5K-GR016D-EN-E.book Page 5 Thursday, October 28, 2010 1:15 PM
• • • • •
1 • INSTALLING RSLOGIX™ EMULATE 5000
There are two types of activation available for RSLogix Emulate 5000:
node-locked activation - A node-locked activation file "locks" the software activation to a
specific hardware ID, called a Host ID, that uniquely identifies a local computer or a Rockwell
Automation hardware dongle (purchased separately) that can be moved from computer to
computer. You supply the Host ID in exchange for the activation.
floating, concurrent activation - A floating, concurrent activation "locks" the software
activation to the Host ID of an activation server. The activation server manages a pool of
activations and "loans" them to client computers over a network connection.
For more information about the available types of activation and how to specify the activation you
want for your system, see the help for FactoryTalk Activation (click Start > Programs > Rockwell
Software > FactoryTalk Activation > FactoryTalk® Activation Help).
During activation, identifying data from your computer (called a Host ID) is sent to
Rockwell Software, and a file (called an activation file) is sent from Rockwell Software to
your computer. When RSLogix Emulate 5000 runs, it looks for the activation file to make
sure that it is indeed a legitimate copy of the software. The activation file is tied to the
Host ID—you cannot copy the file from one computer to another. (Exception: If you are
using a dongle, the activation file is tied to the dongle’s Host ID and needs to be copied to
each computer where the software will be used with the dongle.)
The FactoryTalk Activation Wizard is a tool designed to take you through the process of
obtaining activation for your software. To launch the wizard:
1. Select Start > Programs > Rockwell Software > FactoryTalk Activation >
FactoryTalk Activation Tool to launch the FactoryTalk Activation Tool.
2. Click the Get Activations tab.
3. Click the Open Activation Wizard button. Follow the on-screen instructions in the
wizard to obtain your software activation. If you need help making choices in the
wizard, see the FactoryTalk® Activation Tool online help (click Start > Programs >
Rockwell Software > FactoryTalk Activation > FactoryTalk Activation Tool
Help).
Your computer must be connected to the Internet to be able to obtain activations directly using
the FactoryTalk Activation Tool or the FactoryTalk Activation Wizard. You can obtain the
activation using a different computer than the one you are actually activating.
It is also possible to obtain activations by phone or fax. See the FactoryTalk Activation help file
for more information (click Start > Programs > Rockwell Software > FactoryTalk Activation >
FactoryTalk Activation Help).
5
LGEM5K-GR016D-EN-E.book Page 6 Thursday, October 28, 2010 1:15 PM
• • • • •
If you have RSLinx Classic installed on your computer, but it is not version 2.56 or higher,
installing RSLinx Classic Lite will upgrade your RSLinx Classic installation.
6
LGEM5K-GR016D-EN-E.book Page 7 Thursday, October 28, 2010 1:15 PM
• • • • •
1 • INSTALLING RSLOGIX™ EMULATE 5000
3. The setup program should start automatically. If it does not, open the CD-ROM drive
with Windows Explorer and run the AUTORUN.EXE program on that drive.
4. The Setup program displays a menu of choices. Click Install RSLogix Emulate
5000.
5. The Setup program displays a welcome screen. Click Next.
6. The Setup program displays the License Agreement for the software. Read the
agreement carefully. If you choose to adhere to the terms of the agreement, click I
accept the terms in the license agreement, and then click Next. If you do not accept
the terms of the license agreement, click Cancel to stop the Setup program.
7. The Setup program displays the Customer Information screen. In this screen, enter
your name, the name of the company you work for, and your ten-digit software serial
number (provided with the software) in the fields provided. Click Next.
8. The Setup program displays the Setup Type screen. On this screen, the software asks
whether you want a complete install or a custom install. (Both installation methods
result in the same software components being installed on your computer, but if you
use a custom install you can choose where the software is installed.) By default, the
software is installed in the C:\Program Files\Rockwell Software\RSLogix Emulate
5000 folder.
If you want to install the software in the default folder, click Complete, and then click
Next.
If you want to change where the software will be installed, click Custom, and then
click Change. You can then browse or create a new installation folder. Once you have
selected your installation folder, click OK, and then click Next.
9. The Setup program displays the Ready to Install screen. Click Install to start the
software installation.
10. The Setup program installs the software. After the software is installed, the RSLogix
Emulate 5000 setup program displays a screen saying that its installation is complete.
If you want to display the release notes for the software, check the I would like to
view the Release Notes check box. The Release Notes contain information
concerning the software that has changed since the publication of this book.
If you want to create a desktop shortcut for the software, check Create a shortcut on
Desktop. The shortcut will give you easy access to the emulator’s Chassis Monitor
application. (If you do not place the Chassis Monitor icon on your desktop, you will
need to access the Chassis Monitor through the Start menu.)
11. Click Finish to end the RSLogix Emulate 5000 setup program. The setup program
ends. If you chose to view the Release Notes in step 10, the file opens.
7
LGEM5K-GR016D-EN-E.book Page 8 Thursday, October 28, 2010 1:15 PM
• • • • •
You must log into the computer as an administrator to uninstall RSLogix Emulate 5000.
If you get an error message when you attempt to uninstall RSLogix Emulate 5000, you
will need to perform the following steps.
1. Remove all modules from the virtual backplane (except for the RSLinx Classic and
RSLinx® Enterprise modules, which cannot be removed). To remove a module, right-
click the module and then click Remove.
Rockwell Automation recommends removing all modules from the virtual backplane before
uninstalling RSLogix Emulate 5000.
2. Stop the services for RSLinx Classic and RSLinx Enterprise (if installed on the
computer). You can stop the RSLinx Classic service through the RSLinx Launch
Control Panel (click Start > Programs > Rockwell Software > RSLinx > RSLinx
Classic Launch Control Panel).
The procedure for stopping the RSLinx Enterprise service depends on the version of
Windows that you are using. See the documentation for Windows for information
about using the Services MMC snap-in (open the Windows help file and search for
“services”).
Online Help
You can access the online help for RSLogix Emulate 5000 through the Chassis Monitor.
Open the Chassis Monitor and click Help > Help Topics.
8
LGEM5K-GR016D-EN-E.book Page 9 Thursday, October 28, 2010 1:15 PM
• • • • •
1 • INSTALLING RSLOGIX™ EMULATE 5000
When you call you should be at your computer and be prepared to give the following
information:
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
9
LGEM5K-GR016D-EN-E.book Page 10 Thursday, October 28, 2010 1:15 PM
• • • • •
10
LGEM5K-GR016D-EN-E.book Page 11 Thursday, October 28, 2010 1:15 PM
Do not depend on the emulator to match your physical controller's performance or operation.
Some instructions are interpreted differently in the emulator than in a physical controller, and the
execution times for instructions and program files will be significantly different in an emulated
controller than in a physical controller.
11
LGEM5K-GR016D-EN-E.book Page 12 Thursday, October 28, 2010 1:15 PM
• • • • •
Interface to non-Rockwell DDE/OPC (requires RSLinx Classic DDE/OPC (requires RSLinx Classic
Software HMI software Professional, RSLinx Classic Single Professional, RSLinx Classic Single
Node, RSLinx Classic OEM, or Node, RSLinx Classic OEM, or
RSLinx Classic Gateway; RSLinx RSLinx Classic Gateway; RSLinx
Classic Lite does not support DDE Classic Lite does not support DDE
or OPC) or OPC)
Programming languages Ladder diagram, function block, Ladder diagram, function block,
sequential function chart, and sequential function chart, and
structured text structured text
12
LGEM5K-GR016D-EN-E.book Page 13 Thursday, October 28, 2010 1:15 PM
• • • • •
2 • AN OVERVIEW OF RSLOGIX™ EMULATE 5000
13
LGEM5K-GR016D-EN-E.book Page 14 Thursday, October 28, 2010 1:15 PM
• • • • •
8. Remove any tracepoint and breakpoint instructions you may have used in the project
(these will not work in a physical controller).
9. Verify your project and correct any errors. You can then download your project to
your physical controller.
14
LGEM5K-GR016D-EN-E.book Page 15 Thursday, October 28, 2010 1:15 PM
Unlike the SoftLogix 5800™ controller, RSLogix Emulate 5000 stops and starts with the Chassis
Monitor. RSLogix Emulate 5000 runs only while the Chassis Monitor is running.
15
LGEM5K-GR016D-EN-E.book Page 16 Thursday, October 28, 2010 1:15 PM
• • • • •
The following illustration shows a Chassis Monitor window with three emulator and two
simulated I/O modules.
16
LGEM5K-GR016D-EN-E.book Page 17 Thursday, October 28, 2010 1:15 PM
• • • • •
3 • USING THE CHASSIS MONITOR
If you want the emulator controller to reside at slot 0, see the Application Notes section of the
RSLogix Emulate 5000 Release Notes.
If you modify the project to use a physical Logix5000 controller, make sure your rack and slot
configurations in your project match those in your control system. Otherwise, you will not be
able to communicate properly with the physical controller.
4. Click OK to accept your changes and add the emulator to the virtual chassis.
You can click Cancel if you wish to cancel creating the emulator.
Select Emulator
RSLogix Emulate
5000 Controller, and
then click OK.
17
LGEM5K-GR016D-EN-E.book Page 18 Thursday, October 28, 2010 1:15 PM
• • • • •
The only modules that function with the emulator and appear in the module type list are the
Emulator RSLogix Emulate 5000 Controller and the 1789-SIM 32 Point Input/Output
Simulator.
5. If you have previously created a emulator module in the same slot and you did not
delete the configuration for the module when you removed it, the software tells you
there is previous configuration information for the module. The software asks whether
you want to use the previous configuration, or reset the configuration to default
values.
a. To use the previous configuration, click Use the Configuration from the
Previous Controller. To reset the configuration, click Reset the Configuration
to Default Values. (Even if you reset the configuration to its default values, the
name of the emulator remains the same as the one that was deleted.)
b. If there was a program in the deleted emulator module, the software shows the
controller name and the date the program was last downloaded into the controller.
If you want to load this program into the emulator module you are creating, check
the Load Saved Controller Image from Previous Instance check box.
Choose whether you want to retain the
previous controller’s configuration or reset
the configuration to default values.
Using a previously loaded controller image may result in unexpected operation. Make
sure the program is correct before running your emulations.
18
LGEM5K-GR016D-EN-E.book Page 19 Thursday, October 28, 2010 1:15 PM
• • • • •
3 • USING THE CHASSIS MONITOR
Version Select the version of RSLogix™ 5000 used to create the project you
want to emulate. You can select version 12 or higher.
Memory size The memory size for the emulator. Make this equal to the memory size
of the controller you are emulating.
Periodic Save Interval Specify whether you want to save the current controller information
(program, data, and configuration information) periodically, and if so,
specify how often (minutes). The default is enabled for 10 minutes.
7. Click Next. The software displays a window for setting additional features of the
emulator.
Continuous Task Dwell Time Specify the timeslice (0-1000 ms) made available for all other
Windows applications. The default is 10 ms.
The dwell time is the time between the end of the continuous task and
the start of the next execution of the continuous task.
CPU Affinity If you are running the emulator on a computer that has more than one
CPU, set the CPU that you want to run the emulator (the emulator can
run on only one CPU).
Channel 0 Serial Port If you want to emulate serial communications with a Logix5000
controller, set the computer serial port that you want to use to emulate
Channel 0 of the Logix5000™ controller.
8. Click Finish. The Chassis Monitor places an emulator module in the slot you
selected.
If you right-click the virtual chassis on the slot where you wish to create your module, and then
choose Create, the slot number is automatically filled in for you.
19
LGEM5K-GR016D-EN-E.book Page 20 Thursday, October 28, 2010 1:15 PM
• • • • •
These controls
allow you to
control the
"speed of time".
These controls
allow you to
configure trace
displays.
This control
allows you to log
traces to a file.
Active traces
appear in this list.
20
LGEM5K-GR016D-EN-E.book Page 21 Thursday, October 28, 2010 1:15 PM
• • • • •
3 • USING THE CHASSIS MONITOR
4. If you used the slider or entered a percentage manually, click the Confirm Time %
Change button.
21
LGEM5K-GR016D-EN-E.book Page 22 Thursday, October 28, 2010 1:15 PM
• • • • •
Ignore If No Value Changed This button toggles whether the trace displays should record every
trace or only those traces where there are changes to the value being
traced. If the button is indented, the trace displays will ignore those
traces where the value does not change.
TimeStamp Set this to record how you want time recorded in traces. (If you have a
time stamp mode selected and you change it while a trace window is
displayed, subsequent traces use the new time stamp mode.)
None records no time information in the trace displays.
Delta records the difference between the current trace and the last
trace for that particular trace window. The first trace for the window
always shows 0 milliseconds.
Absolute records the time that the trace triggered. The time is in the
number of milliseconds since the emulator was last changed to the
Run mode.
Display all new traces Check this box if you want all new traces to display automatically in a
trace window.
Log new traces to disk Check this box if you want new traces to automatically log to disk.
Display All Traces Click this button to display all of the current traces in their trace
windows. (The current traces are listed by name in the Configure
Emulation window.)
Close All Traces Click this button to close all of the open trace windows.
Remove All Traces Click this button to remove all of the current traces from the trace list.
Close Log File Click this button to stop logging traces to a file.
Trace Log File This field shows the currently set log file. To set the log file, click
Browse. For more information, see Log Traces to Disk on page 23.
22
LGEM5K-GR016D-EN-E.book Page 23 Thursday, October 28, 2010 1:15 PM
• • • • •
3 • USING THE CHASSIS MONITOR
You can log data to a file with any extension (or with no extension at all). However, to be able to
view traces with a text editor (such as Windows Notepad), use a TXT file extension.
5. Click Open. If the file you selected already has data in it, the software asks if you
want to append your traces to the end of the file, overwrite the data in the file with the
traces, or cancel.
6. Execute your logic. When a tracepoint output instruction (TPT) executes, the trace
information is logged to the file you selected.
7. When you are ready to view the traces stored in the log file, display the emulator
configuration, then click Close Log File. You can then open the log file in a text
editor (such as Windows Notepad).
If you try to open the log file without closing it in the emulator configuration, you will see an error
message saying that the file cannot be accessed. You must close the log file in the emulator
before it can be viewed by another application.
In RSLogix 5000, the simulated I/O module is called “1756-MODULE.” In RSLogix Emulate 5000,
the simulated I/O module is called “1789-SIM.” For information about configuring a simulated I/O
module in an RSLogix 5000 project, see Configure Simulated I/O in the Logic Project on page 41.
23
LGEM5K-GR016D-EN-E.book Page 24 Thursday, October 28, 2010 1:15 PM
• • • • •
24
LGEM5K-GR016D-EN-E.book Page 25 Thursday, October 28, 2010 1:15 PM
• • • • •
3 • USING THE CHASSIS MONITOR
Hide slots 9-16 (if you are not using those slots or you View > Hide Slots 9-16
simply want the Chassis Monitor to take up less space on-
screen)
Change the rate at which the module display updates Options > Auto Refresh Rate > (High,
Normal, or Low)
Keep the Chassis Monitor on top of other windows Options > Always On Top
when it is displayed
Change one or more modules to Run mode All Modules > Run
Change one or more modules to Program mode All Modules > Program
Create a snapshot that saves the current state (including All Modules > Save Snapshot
program and data information) for one or more
controllers at one time
Restore controllers to a previously saved state (from All Modules > Restore
snapshot)
When you delete a module, automatically check the Options > Clear Configuration on
Clear Chassis Monitor module configuration check box. Remove
(If this feature is not set, the software does not
automatically check that box for you.)
25
LGEM5K-GR016D-EN-E.book Page 26 Thursday, October 28, 2010 1:15 PM
• • • • •
To set the mode for the emulator, right-click the emulator in the virtual chassis and choose
the mode you want.
When the emulator has been set to single scan mode and is placed in Run mode (such as
through RSLogix 5000 in online mode or by right-clicking the emulator module and
selecting Run), the emulator executes its logic through one scan and then stops. When it
stops, the emulator displays a dialog asking whether you want to run the emulator
continuously or to single scan again. Click Yes to run the emulator continuously, or No to
run another single scan.
26
LGEM5K-GR016D-EN-E.book Page 27 Thursday, October 28, 2010 1:15 PM
For information about connecting RSLogix Emulate 5000 to RSView®32 projects, see Chapter 6,
Connecting the Emulator to an RSView®32 Project through OLE on page 37.
Prerequisites
For FactoryTalk View SE projects, RSLinx Enterprise must be installed on both the
computer running FactoryTalk View SE and the computer running RSLogix Emulate
5000, and both computers must be using the same FactoryTalk Directory. (If RSLogix
Emulate 5000 and FactoryTalk View SE are installed on different computers, both
computers must use the same network Directory.)
You can install RSLinx Enterprise and the FactoryTalk® Services Platform from your FactoryTalk
View ME or FactoryTalk View SE installation disks.
For FactoryTalk View ME projects, RSLinx Enterprise, RSLogix Emulate 5000, and
FactoryTalk View ME must be installed on the same computer. In this case, the
FactoryTalk Directory used must be the local Directory (FactoryTalk View ME does not
support using a network Directory).
27
LGEM5K-GR016D-EN-E.book Page 28 Thursday, October 28, 2010 1:15 PM
• • • • •
If you already have modules in your virtual chassis when you install RSLinx Enterprise,
the RSLinx Enterprise module appears in the first empty slot.
28
LGEM5K-GR016D-EN-E.book Page 29 Thursday, October 28, 2010 1:15 PM
• • • • •
4 • CONNECTING THE EMULATOR TO FACTORYTALK® VIEW ME OR FACTORYTALK®VIEW SE PROJECTS THROUGH
29
LGEM5K-GR016D-EN-E.book Page 30 Thursday, October 28, 2010 1:15 PM
• • • • •
c. Click Apply. You are prompted to apply your changes. Click Yes; this associates
the shortcut with the emulator.
d. Click OK. This closes the Communication Setup window.
30
LGEM5K-GR016D-EN-E.book Page 31 Thursday, October 28, 2010 1:15 PM
• • • • •
4 • CONNECTING THE EMULATOR TO FACTORYTALK® VIEW ME OR FACTORYTALK®VIEW SE PROJECTS THROUGH
The Online folder contains controller tags, and the folders for each program file contain
program tags.
For more information about browsing for tags in an FactoryTalk View project, see the
documentation for FactoryTalk View.
31
LGEM5K-GR016D-EN-E.book Page 32 Thursday, October 28, 2010 1:15 PM
• • • • •
32
LGEM5K-GR016D-EN-E.book Page 33 Thursday, October 28, 2010 1:15 PM
33
LGEM5K-GR016D-EN-E.book Page 34 Thursday, October 28, 2010 1:15 PM
• • • • •
5. The new driver appears in the Configured Drivers list. Click Close.
1. Select the Virtual Backplane (SoftLogix 2. Click Add New.
58xx, USB) communications driver.
34
LGEM5K-GR016D-EN-E.book Page 35 Thursday, October 28, 2010 1:15 PM
• • • • •
5 • CONNECTING THE EMULATOR TO RSLOGIX™ 5000
3. Click OK.
5. From the To list, select Emulator RSLogix Emulate 5000 Controller, and then
specify the controller’s revision.
6. Click OK.
35
LGEM5K-GR016D-EN-E.book Page 36 Thursday, October 28, 2010 1:15 PM
• • • • •
Connections to RSView®32, FactoryTalk® View ME, and FactoryTalk® View SE are configured
differently. For information about connecting the emulator to these products, see Chapter 4,
Connecting the Emulator to FactoryTalk® View ME or FactoryTalk®View SE Projects through
RSLinx™ Enterprise or Chapter 6, Connecting the Emulator to an RSView®32 Project through
OLE.
36
LGEM5K-GR016D-EN-E.book Page 37 Thursday, October 28, 2010 1:15 PM
For information about connecting the emulator to FactoryTalk® View SE or FactoryTalk® View
ME projects, see Chapter 4, Connecting the Emulator to FactoryTalk® View ME or
FactoryTalk®View SE Projects through RSLinx™ Enterprise on page 27.
37
LGEM5K-GR016D-EN-E.book Page 38 Thursday, October 28, 2010 1:15 PM
• • • • •
Name Enter a name for the node (representing the emulator). This can be the
name of the emulator, if you like.
Server Click the button next to the Server Name field. If the emulator is running on
the same computer as RSView32, select RSLinx OPC Server. Otherwise,
select RSLinx Remote OPC Server.
Update Rate This defaults to 1.000 seconds (one update per second). If you need a faster
or slower update rate, enter the update frequency.
2. Enter a name
for the node. 1. Click OPC Server.
38
LGEM5K-GR016D-EN-E.book Page 39 Thursday, October 28, 2010 1:15 PM
• • • • •
6 • CONNECTING THE EMULATOR TO AN RSVIEW®32 PROJECT THROUGH OLE
1. Click Device.
7. Click OK.
3. In the Data Source section of the Tag Database editor, click Device.
4. Click the button next to the Node Name field. This displays the Node Browser. Select
the OPC node you created for the emulator and click OK.
39
LGEM5K-GR016D-EN-E.book Page 40 Thursday, October 28, 2010 1:15 PM
• • • • •
5. In the Tag section of the Tag Database editor, select the type of tag you want to create
from the Type list.
6. In the Data Source section of the Tag Database editor, click the button next to the
Address field. This displays the OPC Address Browser.
7. In the OPC Address Browser, select the address you want to use with the tag and click
OK.
8. Finish creating the tag by filling in the fields in the Tag Database editor.
Minimum The minimum value for the tag (as used in RSView32).
Maximum The maximum value for the tag (as used in RSView32).
9. Click Accept. The tag is stored in the tag database. You can now use the tag in your
RSView32 project.
40
LGEM5K-GR016D-EN-E.book Page 41 Thursday, October 28, 2010 1:15 PM
7 Simulating I/O
There are two methods of simulating I/O with RSLogix™ Emulate 5000. You can use a
simulated I/O module to simulate discrete I/O, or you can use another emulation module
to produce and consume tags of any type. You can use both methods simultaneously.
Additionally, you can use other software products such as RSView®32 and RSTestStand™ to
simulate I/O.
In RSLogix™ 5000, the simulated I/O module is called “1756-MODULE.” In RSLogix Emulate
5000, the simulated I/O module is called “1789-SIM.” For information about inserting a 1789-SIM
module into the RSLogix Emulate 5000 Chassis Monitor, see Creating Simulated I/O on page 23.
Description (optional) A description of the module and its function in the system
Comm Format Set this to reflect the type of I/O you are simulating.
Slot The slot in the virtual chassis that contains the module.
4. In the New Module window, specify the connection parameters for the module as
shown in the table on the following page.
41
LGEM5K-GR016D-EN-E.book Page 42 Thursday, October 28, 2010 1:15 PM
• • • • •
You must enter at least 50.0 ms for the RPI. The connection will fail if the RPI is less than 50
ms. Because this module uses the generic module profile, the default RPI is 5.0 ms. You must
change this value.
7. Click OK.
42
LGEM5K-GR016D-EN-E.book Page 43 Thursday, October 28, 2010 1:15 PM
• • • • •
7 • SIMULATING I/O
3. Right-click the tag you want the emulator to produce, then click Edit Tag Properties.
This displays the Tag Properties window.
43
LGEM5K-GR016D-EN-E.book Page 44 Thursday, October 28, 2010 1:15 PM
• • • • •
7. In the New Module window, type the name of the producing emulator in the Name
field. Set the slot number for the producing emulator in the Slot field.
8. Click OK. This displays the Module Properties window.
9. On the Module Properties window, configure as necessary.
10. Click OK. The producing emulator is now an I/O module of the consuming emulator.
A consumed tag must be of the same data type (including array size) as the produced tag it
uses. If it is not, the emulator consuming the tag will experience an I/O fault.
44
LGEM5K-GR016D-EN-E.book Page 45 Thursday, October 28, 2010 1:15 PM
Breakpoint and tracepoint instructions are supported only in ladder diagram programs running
in the emulator. These instructions are not supported by physical Logix5000™ controllers.
Programming Breakpoints
Breakpoints are programmed with the Breakpoint output instruction (BPT). When the
inputs on a rung containing a BPT instruction are true, the BPT instruction stops program
execution. The software displays a window indicating that the breakpoint triggered and
the values that triggered it.
When a breakpoint triggers, the emulator displays a window informing you that a
breakpoint occurred. The title bar of the window shows the slot containing the emulator
that encountered the breakpoint.
When you click OK, the emulator resumes program execution. If the conditions that
triggered the breakpoint have not changed, the breakpoint will trigger again.
In addition, the emulator opens a trace window for the breakpoint. Information about the
breakpoint and the values it traces are displayed in the trace window.
When a breakpoint triggers, you will not be able to edit your project until you permit execution to
continue. You can go online with the emulator to observe the state of your project, but you will
not be able to edit it. If you try to accept a rung edit while a breakpoint is triggered, you will see a
dialog box saying the controller is not in the correct mode.
45
LGEM5K-GR016D-EN-E.book Page 46 Thursday, October 28, 2010 1:15 PM
• • • • •
Format A string that sets the formatting for the A STRING tag. See String Formats for
text that appears in the trace window for Tracepoint and Breakpoint Instructions on
the breakpoint. page 50.
Trace This: The tag that has a value you want to An INT, BOOL, SINT, DINT or REAL tag.
display in the trace window. You cannot trace tag structures (for
example, entire timers or counters).
However, you can trace individual structure
members.
You can display a large number of tag values with the BPT instruction, however, the
formatting string can contain only 82 characters. Because two characters are required in
the formatting string for each tag you want in the breakpoint, the maximum number of
tags you could trace with a single BPT instruction is 41. However, you will probably
want to include spaces and other formatting to separate tag data in your traces, so the
resulting number of tag values that can be effectively displayed by one BPT instruction is
significantly lower than 41.
EXAMPLE:
The following rung shows a breakpoint that stops program execution when an analog
value is greater than 3.02 or less than 2.01.
46
LGEM5K-GR016D-EN-E.book Page 47 Thursday, October 28, 2010 1:15 PM
• • • • •
8 • PROGRAMMING BREAKPOINTS AND TRACEPOINTS
When the breakpoint triggers, the breakpoint trace window shows the characters before
the colon (“Breakpoint”) in the title bar of the trace window. The other characters make up
the traces. In this example,%f represents the first (and in this case, the only) tag to be
traced (“analogvalue”). (See String Formats for Tracepoint and Breakpoint Instructions
on page 50 for more information about formatting strings. The resulting traces appear as
shown in the following illustration.
Programming Tracepoints
Tracepoints are programmed with the tracepoint output instruction (TPT). When the
inputs on a rung containing a TPT instruction are true, the TPT instruction writes a trace
entry to a trace display or log file. (To configure how traces are displayed or logged, see
Configure Trace Displays on page 22.)
47
LGEM5K-GR016D-EN-E.book Page 48 Thursday, October 28, 2010 1:15 PM
• • • • •
Format A string that sets the formatting for the A STRING tag. See String Formats for
trace reports (both on-screen and logged Tracepoint and Breakpoint Instructions on
to disk). page 50.
Trace This: The tag you want to trace. An INT, BOOL, SINT, DINT or REAL tag.
You cannot trace tag structures (for
example, entire timers or counters).
However, you can trace individual structure
members.
You can trace a large number of tags with the TPT instruction, however, the formatting
string can contain only 82 characters. Because two characters are required in the
formatting string for each tag you want to trace, the maximum number of tags you could
trace with a single TPT instruction is 41. However, you will probably want to include
spaces and other formatting to separate tag data in your traces, so the resulting number of
tags that can be effectively traced by one TPT instruction is significantly lower than 41.
48
LGEM5K-GR016D-EN-E.book Page 49 Thursday, October 28, 2010 1:15 PM
• • • • •
8 • PROGRAMMING BREAKPOINTS AND TRACEPOINTS
EXAMPLE:
The following rung triggers a trace of three analog values when any one of them exceeds
a given value (30.01).
49
LGEM5K-GR016D-EN-E.book Page 50 Thursday, October 28, 2010 1:15 PM
• • • • •
When the tracepoint triggers, the characters before the colon (“Analog inputs trace”)
appear in the title bar of the trace window. The other characters make up the traces. In this
example, the “%f” characters represent the tags to be traced (“analogvalue1,”
“analogvalue2,” and “analogvalue3”). (See String Formats for Tracepoint and Breakpoint
Instructions on page 50 for more information about formatting strings.
The resulting traces appear as shown in the following illustration.
When this trace is logged to disk, the characters before the colon appear in the traces.
This indicates which tracepoint caused which trace entry. The following is an example of
a trace entry. “Analog inputs trace:” is the heading text from the tracepoint's format
string.
Analog inputs trace:Analog inputs = 31.00201, 30.282000, and 30.110001
50
LGEM5K-GR016D-EN-E.book Page 51 Thursday, October 28, 2010 1:15 PM
• • • • •
8 • PROGRAMMING BREAKPOINTS AND TRACEPOINTS
where heading is a text string identifying the tracepoint or breakpoint, text is a string
describing the tag (or any other text you choose), and %(type) indicates the format of the
tag. You need one type indicator for each tag you are tracing with the tracepoint or
breakpoint instruction.
For example, you could format a tracepoint string like this:
My tracepoint:Tag 1 = %e and Tag 2 = %d
The %e formats the first traced tag as double-precision float with an exponent, and %d
formats the second traced tag as a signed decimal integer. See the following table for more
information.
In this case, you would have a tracepoint instruction that has two Trace This parameters
(one for a REAL and one for an INT, although the value of any tag can be formatted with
any flag).
The resulting tracepoint window that would appear when the tracepoint is triggered would
look like:
51
LGEM5K-GR016D-EN-E.book Page 52 Thursday, October 28, 2010 1:15 PM
• • • • •
52
LGEM5K-GR016D-EN-E.book Page 53 Thursday, October 28, 2010 1:15 PM
• • • • •
8 • PROGRAMMING BREAKPOINTS AND TRACEPOINTS
Ignore If No Value Changed This button toggles whether the trace displays should record every
trace or only those traces where there are changes to the value being
traced. If the button is indented, the trace displays will ignore those
traces where the value does not change.
TimeStamp Set this to record how you want time recorded in traces. (If you have a
time stamp mode selected and you change it while a trace window is
displays, subsequent traces use the new time stamp mode.)
None records no time information in the trace displays.
Delta records the difference between the current trace and the last
trace for that particular trace window. The first trace for the window
always shows 0 milliseconds.
Absolute records the time that the trace triggered. The time is in the
number of milliseconds since the emulator was last changed to the
Run mode.
Display all new traces Check this box if you want all new traces to display automatically in a
trace window.
Log new traces to disk Check this box if you want new traces to automatically log to disk.
Display All Traces Click this button to display all of the current traces in their trace
windows. (The current traces are listed by name in the Configure
Emulation window.)
Close All Traces Click this button to close all of the open trace windows.
Remove All Traces Click this button to remove all of the current traces from the trace list.
Close Log File Click this button to stop logging traces to a file.
Trace Log File This field shows the currently set log file. To set the log file, click
Browse. For more information, see Log Traces to Disk on page 23.
53
LGEM5K-GR016D-EN-E.book Page 54 Thursday, October 28, 2010 1:15 PM
• • • • •
Active traces
appear in this list
– double-click a
trace to display it.
Freeze Display Stops the trace window from updating. Use this when you want to read
values from a rapidly updating trace.
Clear Display Clears traces from the trace window.
Freeze Log When you are logging a trace to disk, this button stops and starts logging.
When the button is “pressed,” logging stops. If you are not logging the
trace to disk, this button has no effect.
54
LGEM5K-GR016D-EN-E.book Page 55 Thursday, October 28, 2010 1:15 PM
• • • • •
8 • PROGRAMMING BREAKPOINTS AND TRACEPOINTS
55
LGEM5K-GR016D-EN-E.book Page 56 Thursday, October 28, 2010 1:15 PM
• • • • •
56
LGEM5K-GR016D-EN-E.book Page 57 Thursday, October 28, 2010 1:15 PM
1. Click All Modules > Run. The Run Mode dialog appears.
By default, all slots that contain RSLogix 5000 Emulator controllers in the Chassis Monitor are
shown and selected.
2. Deselect the slots that contain controllers that you don't want to place in Run mode.
3. Click OK. All controllers in the specified slots transition to Run mode.
1. Click All Modules > Program. The Program Mode dialog appears.
By default, all slots that contain RSLogix 5000 Emulator controllers in the Chassis Monitor are
shown and selected.
2. Deselect the slots that contain controllers that you don't want to place in Program
mode.
3. Click OK. All controllers in the specified slots transition to Program mode.
57
LGEM5K-GR016D-EN-E.book Page 58 Thursday, October 28, 2010 1:15 PM
• • • • •
1. Click All Modules > Save Snapshot. The Save Snapshot dialog appears.
By default, all slots that contain RSLogix 5000 Emulator controllers in the Chassis Monitor are
shown and selected.
2. Deselect the slots that contain controllers that you don't want to include in a snapshot.
Any controllers that are configured with the Periodic Save feature enabled will be grayed out
and cannot be selected.
3. In the Directory field, specify a complete directory path where you would like the
snapshot to be saved. If necessary, click the browse icon to browse for an alternate
directory path.
4. In the Root name for files field, type the filename that will contain the snapshot
information.
The file will use the following naming convention: name_Slotx.acd (where name is the name you
provide, and x is the numeric slot number. For example, Sim1_Slot 3. acd. The following
characters are not supported: V?:*?\"<>|.
5. Click OK. All controllers in the specified slots transition to Run mode.
If any of the selected controllers are in Program mode, you will be prompted to halt the
processor (set the speed of time to 0%) prior to the save. After the save operation is completed,
the controller will be returned to Run mode.
1. Click All Modules > Restore. The Restore from Snapshot dialog appears.
By default, slots represented by all of the files in the Available File Groups field are shown and
selected. If a file for a particular slot exists, but that slot no longer contains a controller, the
selection will be grayed out.
58
LGEM5K-GR016D-EN-E.book Page 59 Thursday, October 28, 2010 1:15 PM
• • • • •
9 • SPECIFYING SIMULATION OPTIONS FOR MULTIPLE CONTROLLERS
2. In the Directory field, specify a complete directory path to where the snapshot files
are saved and available for restoration. If necessary, click the browse icon to browse
for an alternate directory path.
The slots represented by the selected snapshot file are shown and selected.
4. Deselect the slots that contain controllers that you don't want to return to a previous
state from the selected snapshot file.
5. Click OK. All controllers in the specified slots transition to Run mode.
The selected file group(s) are copied to the persistent file list used at start-up. RSLogix
Emulate 5000 will then shutdown, and then restart. All of selected files are
automatically loaded into the appropriate controllers.
59
LGEM5K-GR016D-EN-E.book Page 60 Thursday, October 28, 2010 1:15 PM
• • • • •
60
LGEM5K-GR016D-EN-E.book Page 61 Thursday, October 28, 2010 1:15 PM
Index
Numerics controllers 11
Configuration Size 42
1756-MODULE 23, 41
Configure Emulation window 20
1789-SIM module 23, 41
configuring an emulator 20
consumed tags 24
A continuous task dwell time 19
activation CPU affinity 19
EvRSI 3
FactoryTalk 3 D
dwell time 19
B
BPT. See breakpoints. E
breakpoints
emulation module
example 46
creating 17
format string 46
emulation modules 11
programming 45, 46
emulator
string formats for 50
configuring 20
traced tags 46
EvRSI activation 3
types for the format string 52
when triggered 45
F
C FactoryTalk Activation 3
FactoryTalk Activation Client
calculations
installing 3
floating point 13
FactoryTalk Batch
Channel 0 serial port 19
remote communications to 36
Chassis Monitor
FactoryTalk Directory
configuring 25
configuring for use with FactoryTalk View
navigating in 15
SE or FactoryTalk View ME 27
starting 15
FactoryTalk View ME
clear display 54
browsing for emulator tags 30
communications
connecting the emulator to 27
driver 33
FactoryTalk View SE
node
browsing for emulator tags 30
configuring in RSView32 37
connecting the emulator to 27
to FactoryTalk View ME or FactoryTalk
FactoryTalk® Activation Wizard 5
View SE 27
floating point 13
to remote computer 36
folder
to RSLogix 5000 33
default installation 7
to RSView32 37
comparison of Emulate 5000 and Logix5000
61
LGEM5K-GR016D-EN-E.book Page 62 Thursday, October 28, 2010 1:15 PM
• • • • •
62
LGEM5K-GR016D-EN-E.book Page 63 Thursday, October 28, 2010 1:15 PM
• • • • •
• INDEX
T V
tags version required for installation
browsing in FactoryTalk View SE or operating system 2
FactoryTalk View ME 30 Windows 2
configuring in RSView32 39
consumed 24, 42 W
configuring 43
Web site
produced 24, 42
technical support 9
configuring 42
Windows
version required 2
63
LGEM5K-GR016D-EN-E.book Page 64 Thursday, October 28, 2010 1:15 PM
• • • • •
64