Converting PLC-5 or SLC 500 Logic to Logix-Based Logic
personal injury or death, property damage, or economic loss.
Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.
IMPORTANT
Identifies information that is critical for successful application and understanding of the product.
temperatures.
for Personal Protective Equipment (PPE).
Important User Information
Read this document and the documents listed in the additional resources section about installation, configuration, and
operation of this equipment before you install, configure, operate, or maintain this product. Users are required to familiarize
themselves with installation and wiring instructions in addition to requirements of all applicable codes, laws, and standards.
Activities including installation, adjustments, putting into service, use, assembly, disassembly, and maintenance are required to
be carried out by suitably trained personnel in accordance with applicable code of practice.
If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be
impaired.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use
or application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and
requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for
actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software
described in this manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is
prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may lead to
ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss.
Labels may also be on or inside the equipment to provide specific precautions.
SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present.
BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous
ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to potential Arc Flash. Arc Flash
will cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL Regulatory requirements for safe work practices and
2 Publication 1756-RM085E-EN-P - September 2020
Subject
Reason
Important information.
Summary of Changes
This manual includes new and updated information. Use these reference
tables to locate changed information.
Grammatical and editorial style changes are not included in this summary.
Global changes
This table identifies changes that apply to all information about a subject in
the manual and the reason for the change. For example, the addition of new
supported hardware, a software design change, or additional reference
material would result in changes to all of the topics that deal with that subject.
Updated tables that provide Tip, Note, and
The Legal Noticeshave been updated. Removed redundant information.
Formatting change.
New or enhanced features
None in this version.
Publication 1756-RM085E-EN-P - September 2020 3
Summary of Changes
Converting a PLC-5 or SLC 500
Program into a Logix Project
Table of Contents
Preface
Studio 5000 environment .......................................................................... 9
The Studio 5000 Automation Engineering & Design Environment® combines
engineering and design elements into a common environment. The first
element is the Studio 5000 Logix Designer® application. The Logix Designer
application is the rebranding of RSLogix 5000® software and will continue to
be the product to program Logix 5000™ controllers for discrete, process,
batch, motion, safety, and drive-based solutions.
The Studio 5000® environment is the foundation for the future of
Rockwell Automation® engineering design tools and capabilities. The Studio
5000 environment is the one place for design engineers to develop all
elements of their control system.
These documents contain additional information concerning related
Rockwell Automation products.
Industrial Automation Wiring and Grounding
Guidelines, publication 1770-4.1
Product Certifications webpage, available at
Provides general guidelines for installing a Rockwell
Automation industrial system.
Provides declarations of conformity, certificates,
View or download publications at
http://www.rockwellautomation.com/literature
. To order paper copies of
technical documentation, contact the local Rockwell Automation distributor
or sales representative.
Rockwell Automation publishes legal notices, such as privacy policies, license
agreements, trademark disclosures, and other terms and conditions on the
Legal Notices
page of the Rockwell Automation website.
Publication 1756-RM085E-EN-P - September 2020 9
Preface
End User License Agreement (EULA)
You can view the Rockwell Automation End-User License Agreement ("EULA")
by opening the License.rtf file located in your product's install folder on your
hard drive.
Open Source Licenses
The software included in this product contains copyrighted software that is
licensed under one or more open source licenses. Copies of those licenses are
included with the software. Corresponding Source code for open source
packages included in this product are located at their respective web site(s).
Alternately, obtain complete Corresponding Source code by contacting
Rockwell Automation via the Contact form on the Rockwell Automation
website:
us/contact/contact.page
Please include "Open Source" as part of the request text.
http://www.rockwellautomation.com/global/about-
A full list of all open source software used in this product and their
corresponding licenses can be found in the OPENSOURCE folder. The default
installed location of these licenses is
Converting a PLC-5 or SLC 500 Program into a
Logix Project
The RSLogix Project Migrator converts a PLC-5 or SLC 500 import/export file
(PC5 or SLC extension) into a complete import/export file (L5K extension).
This manual describes the RSLogix Project Migrator. This chapter describes
the pre-migration file preparation and post-migration examples and tasks.
The Project Migrator converts only ladder instructions. SFC and structured text files
are not converted.
The Project Migrator can be downloaded from the Rockwell Automation
website.
Project Migrator
architecture to Logix
architecture
The goal of the Project Migrator is to reduce the amount of work involved in
migrating a PLC-5 or SLC 500 program to a Logix project. The Project
Migrator automatically converts the program logic, but it is not the complete
solution. Depending on the application, you may need to do additional work
to make the converted logic work properly.
The Project Migrator produces a syntactically correct import/export file, but
the exact intent of the original application could be lost. This loss could be due
to differences in rules. (For example, rules of precedence, rules of indexed
addressing, or rules of I/O addressing). When there is an error in the
migration, the Project Migrator records the error in the rung of the Logix
routine in which it occurred. You can use that error message to analyze and
fix the error.
After running the conversion process, the resulting import/export file still requires
further manipulation. You must map the I/O and use BTD, MOV, or CPS instructions to
place this mapped data into the structures created by the conversion process.
The Logix architecture differs in several ways from that of the PLC-5 and SLC
500 processors. The Project Migrator converts this legacy architecture as it
best fits into the Logix architecture. Because of the architectural differences,
you may have to rework the converted Logix project to make sure it operates
properly.
Publication 1756-RM085E-EN-P - September 2020 11
The most significant differences in architecture are listed in the following
table:
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
Architectural issue
Comparison
into its 32-bit equivalent.
types into appropriate Logix tasks.
s might require rework to make sure they operate properly.
MSG instructions after migration.
Conversion step
Page
Exporting a PLC-5 or SLC 500 Programon page 13
9 on page 13
on page 16
Working with PCE Instructionson page 19
16 on page 19
The conversion/migration
CPU The PLC-5 and SLC 500 processor is based on 16-bit operations. Logix
operating system The PLC-5 and SLC 500 processors support individual program files that
input and outputs The PLC-5 and SLC 500 processor map I/O memory into I and O data table
data The PLC-5 and SLC 500 processors store all data in global data tables. You
s The PLC-5 and SLC 500 s are based on their 16-bit architecture and can
controllers use 32-bit operations. The Project Migrator converts legacy logic
can be configured as selectable timed interrupts (STIs) or input interrupts
(DIIs/PIIs). In addition, the PLC-5 processor supports multiple main control
programs (MCPs). A Logix controller combines these into it’s task, program,
and routine organization. The Project Migrator converts the legacy program
files. The I/O data is updated synchronously to the program scan so you
know you have current values each time the processor begins a scan. A
Logix controller references I/O which is updated asynchronously to the
logic scan. For a Logix controller, use the synchronous copy (CPS)
instruction to create an I/O data buffer to use for static values during logic
execution and update the buffer as needed.
After the conversion is complete, you must add instructions to copy the I/O
data into the I and O arrays. Do this at the beginning or ending of a program
to buffer the data so that it is presented synchronously to the program
scan.
access this data by specifying the address of the data you want. A Logix
controller supports data that is local to a program and data that is global to
all the tasks within the controller. A Logix controller can also share data
with other controllers, and instead of addresses, you use tags to access the
data you want.
Each PLC-5 and SLC 500 data table file can store several words of related
data. A Logix controller uses arrays to store related data. The Project
Migrator converts the PLC-5 and SLC 500 data table files into Logix arrays.
have different time bases. A Logix controller is based on its 32-bit
architecture and only supports a 1 msec time base. The Project Migrator
converts the legacy s as they best fit into the Logix architecture. Converted
process
12 Publication 1756-RM085E-EN-P - September 2020
communications The PLC-5 processor supports block-transfer read and write (BTR and BTW)
instructions, ControlNet I/O (CIO), and message (MSG) instructions. The SLC
500 processor supports block-transfer read and write (BTR and BTW)
instructions and MSG (MSG) instructions. The Logix 5000 controllers support
MSG instructions of various types. You will need to verify and complete all
The entire conversion process involves the following steps:
Preparing RSLogix 5 or RSLogix 500 files for Migration on page 139 on page 13
Using the Project Migrator Wizard to Convert a PLC-5 or SLC 500 Program
Working with UNK Instructions on page 2017 on page 20
13 on page 16
Conversion step
Page
Completing the MSG Configuration on page 22
20on page 22
Preparing RSLogix 5 or
RSLogix 500 files for
Exporting a PLC-5 or SLC
Export options
Export Option 1: Create two
migration
500 Program
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
Configuring the Controller and Chassis on page 2018 on page 20
Mapping the I/O on page 2119 on page 21
The rest of the chapter describes these steps in detail.
Before using the Project Migrator, it’s best to prepare the RSLogix5 and
RSLogix 500 files.
• To save memory, remove unused references from the PLC-5 and SLC
500 application files. The following options are available for you in
RSLogix 5 or RSLogix 500 software:
• To help avoid syntax errors that the Project Migrator will not convert if
encountered in the PC5 file, remove SFC and STX routines.
Before you can convert PLC-5 or SLC 500 logic to its Logix equivalent, you
must first export the logic to an ASCII text file with a PC5 extension for a
PLC-5 file or a SLC extension for an SLC 500 file.
If you elect to convert comments and symbols, you also need the TXT file,
which is the standard 6200 programming software format for a
documentation file.
Use the RSLogix 5 or RSLogix 500 export procedure to produce two types of
files:
• Database files (TXT). These files contain the application’s symbols,
address comments, instruction comments, and rung comments. Three
TXT files are produced.
• <program name>.txt - Address Comment and Symbols
• <program name>1.txt - Instruction Comments (These are ignored
by the Project Migrator.)
• <program name>2.txt - Rung Comments (These are ignored by the
Project Migrator. Rung comments within PC5/SLC file are used.)
• Program file format (PC5 or SLC). This file contains an application’s
data, RLL statements, and rung comments.
There are a few ways that you can export files for migration using RSLogix 5
or RSLogix 500 software as described on the following pages.
For this option, you export the PC5/SLC files and then export the TXT file.
separate exports
Publication 1756-RM085E-EN-P - September 2020 13
First, create the PC5 or SLC files for export, using the following steps.
1. In RSLogix 5 or RSLogix 500, select File>Save As. The Save Program As
dialog box appears.
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
2. In the Save in field, select the program you want to export.
By default, the software points to the Project folder for the destination.
You can enter a different destination directory.
3. In the Save As type field, select the Library Files format (PC5 or SLC).
4. Check the ‘Save data base as external file’ checkbox so that the
comments and symbols are included in the export.
5. Click Save. The Export PC5 Format or the Export SLC5000 dialog box
appears.
6. On the export format dialog box, use the following steps.
a. Select Complete Program Save.
b. Select all the export options.
c. Click OK.
Then create a TXT file for export, using the following steps.
1. In RSLogix5 or RSLogix 500, from the Tools menu, choose Database >
ASCII Export.
The Documentation Database ASCII Export dialog box appears.
2. Select the AB 6200 tab, make your selections, and then click OK.
14 Publication 1756-RM085E-EN-P - September 2020
Export Option 2: Create TXT
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
The Select Export Destination Directory dialog box appears.
3. Under Directories, select the directory where the PC5 or SLC file
resides.
4. Accept the warning about comments and symbols. Click OK.
files and PC5/SLC files for
export at the same time
To create both files for export at the same time, use the following steps.
1. In RSLogix 5 or RSLogix 500, select File>Save As.
The Save Program As dialog box appears. The example below shows the
Save As dialog box from RSLogix 5.
Publication 1756-RM085E-EN-P - September 2020 15
2. In the Save as type field, select X5 or ACH to activate the "Export
database" checkbox.
3. Check the "Export database" checkbox.
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
Use the Project Migrator
4. Under Export file type, select one of the following, depending on the
programming software you are using.
• For RSLogix 5, select A.B. 6200
• For RSLogix 500, select A.P. S.
5. In the Save as type field, change the file type from X5 or ACH to PC5 or
SLC. Even though the A.B. 6200 format is dimmed, the database will be
exported in that format.
6. Click Save. The Export PC5 Format or the Export SLC 500 Format
dialog box appears.
7. On the export format dialog box, use the following steps.
d. Select Complete Program Save.
Wizard to Convert a PLC-5
or SLC 500 Program
e. Select
the export options.
all
f. Click OK.
Once you have the ASCII text file of the PLC-5 or SLC 500 program file, you
can convert the logic to its Logix equivalent. In the Logix Designer
application, use the following steps.
1. From the Tools menu, choose RSLogix Project Migrator.
16 Publication 1756-RM085E-EN-P - September 2020
Wizard step 2 notes
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
2. The wizard appears. Use the wizard to walk through steps 1 through 7.
Wizard step 1 notes
• To start, select one of the option buttons.
• For PLC-5 to Logix... button - Select this option to browse for PC5
files.
• For SLC-500 to Logix... button - Select this option to browse for SLC
files.
• To use a different TXT file name than the program file name, clear the Documentation file(s) associated with the logic file use the same name
checkbox. Browse to the first database file name (TXT).
• RSLogix 5 or RSLogix 500 can also be launched from the wizard. To do
so, click the Launch RSLogix 5 or the Launch RSLogix 500 icon at the
top of the dialog box.
For this to work, the software must be installed on the same computer
as the Project Migrator.
• Browse to the file to be migrated.
• Click Next.
Select or clear the check box for the following option:
Publication 1756-RM085E-EN-P - September 2020 17
•Create Alias Tag for existing PLC-5/SLC Symbols -- This option creates
alias tags for all symbols found in the database files. Otherwise the
symbols are added as address comments to converted legacy file types.
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
Syntax Error
Description
How to Fix the Error
the string.
Wizard step 3 notes
Wizard step 4 notes
Common Syntax Errors
• Click Migrate. Since every PLC-5 and SLC500 application is unique,
there may be syntax errors.
• If syntax errors occur during migration, they appear in the Status Log
pane and include the line at which the error occurred. Choose one
these actions to deal with errors:
• Edit the error immediately and click Save & Retry to restart the
migration.
• Examine the original application to decide if the area where the
syntax error is occurring is something that can be deleted
permanently or if it is something that can be removed and then later
be recreated in the Logix Designer application.
• Edit the PC5, SLC, and TXT files using a text editor such as Notepad.
• Review the table that follows for the most common syntax errors
and their descriptions.
• Specify a file name and folder destination for the migrated file. The
default file name is the same as the legacy file with an .L5k extension,
and the default folder location is the same as the location of the legacy
file.
• Select the Logix controller and version of the Logix Designer
application. The version selected should correspond to a version of the
Logix Designer application that is supported on the PC.
• Click Next.
The Project Migrator might run into syntax errors within the program and
database files. If so, you must correct the errors to continue the conversion.
The following table describes common migration errors.
Invalid symbol name The Project Migrator expects the symbol names to be
alphanumeric.
RSLogix 5 and RSLogix 500 software enforce these rules, but
using the 6200 software or manually editing the database
files may cause these rules to be broken.
" (quote) within a " (quote) Quotes are used to denote the start and end of string values
or rung/instruction/address comments.
If a rung/instruction/address comment contains a quote, the
Project Migrator does not recognize that it is not the end of
% within a % % characters are used to denote the start and end of
comments within the program file and occasionally in
database files.
This type of comment is ignored by the Project Migrator. If a
comment contains another %, the Project Migrator does not
recognize that it is not the end of the comment.
Search for symbol names that are not alphanumeric.
Either remove the quote or make it a double quote
(""). The Project Migrator will translate the double
quote as a single quote in the Logix Designer
application.
Remove the extra % or make it a double %. The
Project Migrator will treat the double %% as
consecutive comments.
18 Publication 1756-RM085E-EN-P - September 2020
Syntax Error
Description
How to Fix the Error
Wizard step 5 notes
Wizard step 6 notes
Working with PCE
Recognizing the
Locating PCE instructions
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
Errant characters The program or database file contains a random character
or two that does not fit the syntax of the program or
database files. This is more common with manually-edited
files than a direct export from RSLogix 5 or RSLogix 500.
Invalid rung syntax The rung has invalid syntax, such as unmatched
parentheses.
Step 5 appears only for SLC and MicroLogix migrations. Select an I/O
migration option:
•Keep existing I/O in a separate rack - Keeps the legacy I/O modules as
they exist in the .SLC file, attaching them remotely via EtherNet in a
legacy chassis.
•Replace all I/O with equivalent newer models - Displays a list of all I/O
modules detected in the legacy file. Select the desired converted I/O
module, onto which the Project Migrator maps the legacy I/O.
Manually verify compatibility with the chosen output module. You can
opt to create a placeholder tag rather than selecting an I/O module.
When you select this option you must manually add the desired I/O
and handle any copying operations from the migrated output file.
Remove the errant characters.
Check and fix the rung syntax.
Instructions
instructions
When the migration is complete, click Exit to close the Project Migrator, or
click Launch RSLogix 5000 to open the Logix Designer application and
import the migrated project.
The Project Migrator inserts a Possible Conversion Error (PCE) instruction
within the appropriate ladder rung to help you identify possible errors with
the conversion. To complete the conversion process, you will want to locate,
analyze, and fix any discrepancies using the PCE instructions.
For a list of PCE instruction errors, see
Appendix A Programming Conversion
Errors (PCE) Messageson page 65
Text is appended to the rung comments that have the PCE instruction. The
message text begins with asterisks (*) and the words "Generated by
Translation Tool", and ends with asterisks.
An example of a PCE instruction follows:
*** Generated by Translation Tool: Source and destination
You can also locate all of the PCE instructions by verifying the logic. The
Verify > Controller task compiles the Logix program and checks for errors.
This is an easy way to see where all the PCE instructions are because the error
checking will point them out. To locate the PCE instructions, use the following
steps.
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
Resolving PCE Instructions
Working with UNK
Configuring the Controller
1. From the Logic menu, choose Verify > Controller.
The bottom of the screen displays the results.
2. Double-click the error shown in the error window to go directly to the
rung where the error resides.
Instructions
and Chassis
Once you import the converted Logix project, find each PCE instruction. A
PCE instruction highlights a possible conversion error. Delete each PCE
instruction and replace it with the appropriate, corrected logic.
The Project Migrator converts some PLC-5 and SLC 500 instructions that have
no equivalent in the Logix architecture. Once you import these instructions
into the Logix project, they appear as UNK instructions. You must delete each
UNK instruction and replace it with the appropriate corrected logic.
Once you have resolved any errors, continue the conversion process by using
the Controller Properties dialog box in the Logix Designer application to
assign the chassis size and slot number of the controller. Use the steps that
follow.
1. Click the Controller Properties icon to open the Controller Properties
dialog box.
20 Publication 1756-RM085E-EN-P - September 2020
PLC-5 address
Maps to:
N17:25
N17[25]
R6:100
R6[100]
I:002
I[2]
O:001
O[1]
Mapping the I/O
2. Select Properties. The Controller Properties dialog box appears.
3. Configure the controller by specifying the slot number of the controller
and the chassis size.
4. Click OK.
5. Continue to use the Controller Organizer to specify the I/O modules
and other devices for the controller. The example that follows shows
how to specify the I/O module.
Chapter 1 Converting a PLC-5 or SLC 500 Program into a Logix Project
Publication 1756-RM085E-EN-P - September 2020 21
g. Select the backplane.
h. Right-click and select New Module.
The file structure in a Logix controller is tag-based. To facilitate the
conversion, the Project Migrator creates tags and arrays of tags to align and
map the PLC-5 files. For example:
N7:500 N7[500]
The tags created for physical I/O (For example, I.2) are empty at the end of the
conversion process.
Loading...
+ 49 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.