Converting PLC-5 or SLC 500 To Logix Program
Converting PLC-5 or SLC 500 To Logix Program
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 personal injury or
death, property damage, or economic loss.
ATTENTION: Identifies information about practices or circumstances that can lead to 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.
These 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 temperatures.
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 for Personal Protective Equipment
(PPE).
Tip: Identifies information that is useful and can help to make a process easier to do or easier to understand.
Rockwell Automation recognizes that some of the terms that are currently used in our industry and in this publication are not in alignment with the movement toward inclusive
language in technology. We are proactively collaborating with industry peers to find alternatives to such terms and making changes to our products and content. Please excuse the
use of such terms in our content while we implement these changes.
Grammatical and editorial style changes are not included in this summary.
Global changes
None in this release.
Change Topic
Replaced the export process with simplified steps. Use Save As to start a Logix Designer Export on page 13
Replaced references to Project Migrator with Logix Designer Export. Throughout.
Introduction...................................................................................................................................................................................................................................................................................................11
Other Considerations..................................................................................................................................................................................................................................................................................21
Introduction................................................................................................................................................................................................................................................................................................. 23
Converting Data....................................................................................................................................................................................................................................................... 27
Introduction................................................................................................................................................................................................................................................................................................. 27
Conversion rules.............................................................................................................................................................................................................................................................................. 34
Converting Symbols................................................................................................................................................................................................................................................................................... 48
Aliases created.................................................................................................................................................................................................................................................................................49
Converting Instructions............................................................................................................................................................................................................................................51
Instruction List............................................................................................................................................................................................................................................................................................ 51
Introduction................................................................................................................................................................................................................................................................................................. 73
PCE Messages..............................................................................................................................................................................................................................................................................................73
This manual is one of a set of related manuals that show common procedures for programming and operating Logix 5000 controllers.
For a complete list of common procedures manuals, refer to the Logix 5000 Controllers Common Procedures Programming Manual, publication 1756-PM001.
The term Logix 5000 controller refers to any controller based on the Logix 5000 operating system. Rockwell Automation recognizes that some of the terms that are currently used
in our industry and in this publication are not in alignment with the movement toward inclusive language in technology. We are proactively collaborating with industry peers to find
alternatives to such terms and making changes to our products and content. Please excuse the use of such terms in our content while we implement these changes.
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.
Additional resources
These documents contain additional information concerning related Rockwell Automation products.
Resource Description
Industrial Automation Wiring and Grounding Guidelines, publication, 1770-4.1 Provides general guidelines for installing a Rockwell Automation industrial system.
Rockwell Automation product certifications Provides declarations of conformity, certificates, and other certification details.
Legal notices
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.
You can view a full list of all open source software used in this product and their corresponding licenses at this URL:
You may obtain Corresponding Source code for open source packages included in this product from their respective project web site(s). Alternatively, you may obtain complete
Corresponding Source code by contacting Rockwell Automation via the Contact form on the Rockwell Automation website: http://www.rockwellautomation.com/global/about-
us/contact/contact.page. Please include "Open Source" as part of the request text.
Introduction
Logix Designer Export converts a RSLogix 5 (PLC-5) or RSLogix 500 (SLC 500) project into a Studio 5000 Logix
Designer Project (.ACD file).
This manual describes the RSLogix Logix Designer Export. This chapter describes the pre-migration file preparation
and post-migration examples and tasks.
IMPORTANT: The Logix Designer Export converts only ladder instructions. SFC and structured text
files are not converted.
The Logix Designer Export is built into RSLogix 5 and RSLogix 500 software.
Logix Designer Export 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, Logix Designer Export 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.
IMPORTANT: 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 most significant differences in architecture are listed in the following table:
CPU The PLC-5 and SLC 500 processor is based on 16-bit operations.
Logix controllers use 32-bit operations. The Logix Designer
Export converts legacy logic into its 32-bit equivalent.
operating system The PLC-5 and SLC 500 processors support individual program
files that can be configured as selectable timed interrupts
input and outputs The PLC-5 and SLC 500 processor map I/O memory into I and
O data table 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.
data The PLC-5 and SLC 500 processors store all data in global data
tables. You 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 Logix Designer Export converts the PLC-5 and SLC 500
data table files into Logix arrays.
s The PLC-5 and SLC 500 s are based on their 16-bit architecture
and can have different time bases. A Logix controller is based
on its 32-bit architecture and only supports a 1 msec time base.
The Logix Designer Export converts the legacy s as they best fit
into the Logix architecture. Converted s might require rework to
make sure they operate properly.
1. To save memory, remove unused references from the PLC-5 and SLC 500 application files. These options are
available for you in RSLogix 5 or RSLogix 500 software:
◦ Delete unused memory. (Tools> Delete Unused Memory)
◦ Delete unused addresses. (Tools> Database>Delete Unused Addresses)
2. To help avoid syntax errors that the Logix Designer Export will not convert if encountered in the PC5 file,
remove SFC and STX routines.
Use Save As in RSLogix 5 or RS Logix 500 to start migrating a PLC-5 or SLC 500
Program
1. In the RSLogix 5 or RSLogix 500 application, open the RSLogix 5 or RSLogix 500 project file to begin the
project migration.
2. From the File menu, select Save as.
3. In the Save as type box, select Logix Designer Files (*.ACD).
4. Select Save to launch the Logix Designer Export. After project verification, the Logix Designer Export -
Section 1 dialog appears.
8. Select Place I/O modules in remote racks checkbox if you want to only use remote I/O. Leave the check
box un-selected if you want to use a single chassis or if you do not want to have any remote I/O.
Tip: All remote I/O generated by the Logix Designer Export will be on Ethernet/IP.
For a list of PCE instruction errors, see Programming Conversion Errors (PCE) Messages on page 73.
*** Generated by Translation Tool: Source and destination types may differ *** ";
3. Configure the controller by specifying the slot number of the controller and the chassis size.
4. Select 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.
N7:500 N7[500]
N17:25 N17[25]
R6:100 R6[100]
I:002 I[2]
O:001 O[1]
The tags created for physical I/O (For example, I.2) are empty at the end of the conversion process.
• To continue with the conversion process, use the Logix Designer application to add all the I/O modules to the
tree structure for a Logix controller.
• Then, program instructions to map the Logix I/O tags to the converted tags.
◦ For example, if you add a 16-point input module in slot 2 of the local chassis, the programming software
creates these I/O tag structures:
Local:1.C (configuration information)
Local:1.Data (fault and input data)
◦ Use a BTD, MOV, or CPS instructions to map the Local:1.Data word into the I2 tag created by the
conversion process.
◦ An MOV instruction moves one element at a time. A BTD instruction moves a group of bits, which lets
you account for the offset in the starting bit that occurs when you map an INT data type to a DINT
data type. If consecutive I/O groups map to consecutive elements in an array, a CPS instruction is
more efficient.
For example, if I:000 through I:007 map to Local:1:I.Data[0] through Local:1:I.Data[7], use:
CPS
SourceLocal:1:I.Data[0]
Destination:I[0]
Length:8
◦ If you use an MOV instruction, do not mix data types. If you mix data types, the conversion from one
data type to another manipulates the sign bit, which means you cannot be sure that the high-order bit
is set properly.
See Converting Program Structure on page 23 for more information about how the Logix Designer Export converts
the PLC-5 or SLC 500 data table. 2 Converting Program Structure
IMPORTANT: For more information about configuring MSG instructions, see the Logix 5000
Instruction Set Reference Manual, publication 1756-RM003.
This manual is available in PDF format in the Rockwell Automation Lit Library.
Other Considerations
These are additional issues to keep in mind:
• The time base for instructions is fixed at 1 msec for a Logix controller. The conversion process scales PLC-5
and SLC 500 presets and accumulators accordingly. For example, a PLC-5 with a time base of 0.01 sec and a
preset of 20 is converted to a time base of 1 msec and a preset of 200.
• Instruction comments are not converted.
• A Logix controller is a 32-bit based controller. This means that most of the Logix instructions use 32-bit
words, as opposed to the 16-bit words in PLC-5 processors. This might mean that instructions that use masks
might work differently after the conversion.
• The conversion process creates alias tags for address comments. These aliases are then used in place of the
converted tags.
Alias tags utilize additional memory in a Logix controller, so you may want to delete those alias tags that you
do not plan to use. Use the Logix Designer application to delete aliases after you import the project.
Introduction
A Logix 5000 controller uses a different execution model than either the PLC-5 processor or the SLC 500 processor.
The Logix 5000 controller operating system is a preemptive multitasking system that is IEC 61131-3 compliant and
uses:
• Tasks
• Programs
• Routines
This chapter provides a short description of the Logix 5000 controller to help explain the migration results.
• Tasks: Tasks are used to configure controller execution. A task provides scheduling and priority information
for a set of one or more programs. You can configure tasks as either continuous, periodic, or event tasks.
• Programs: Programs are used to group data and logic. A task contains programs, each with its own routines
and program-scoped tags. Once a task is triggered (activated), all the programs assigned to the task execute
in the order in which they are listed in the Controller Organizer.
Programs are useful for projects developed by multiple programmers. During development, the code in one
program that makes use of program-scoped tags can be duplicated in a second program, which minimizes
the possibility of tag-name collisions.
• Routines: Routines are used to encapsulate executable code written in a single programming language.
Routines contain the executable code. Each program has a main routine that is the first routine to execute
within a program. You can use logic, such as the Jump to Subroutine (JSR) instruction, to call other routines.
You can also specify an optional program fault routine.
IMPORTANT: Currently, the Logix Designer Export converts only ladder instructions. SFC and
structured text files are not converted.
As the Logix Designer Export converts the PLC-5 or SLC 500 logic, consider the program structures in the table below.
Conversion step
IMPORTANT: For more information on Logix 5000 Controllers, see the Logix 5000 Controllers Design
Considerations Reference Manual, publication 1756-RM094F-EN-P.
The Logix Designer Export automatically creates one continuous task named MainTask with a default watchdog
setting of 500 msec. It contains a single program named MainProgram and uses a main routine named MainRoutine.
The Logix Designer Export creates a continuous task, but it uses the EVENT instruction to better simulate the PLC-5/
SLC 500 behavior.
To call each Event task, the Logix Designer Export creates EVENT instructions within the continuous task. It uses the
PLC-5 status file to determine which is the first MCP and orders them accordingly, in the MainRoutine.
The SLC 500 processors do not contain an MCP, so ladder program 2, which is the main ladder program, becomes the
main routine.
The Logix Designer Export retrieves the STI interval from the processor status file. If necessary, the Logix Designer
Export converts the interval to a 1 msec time base. After the conversion, you will have to edit the task properties to
specify its priority.
Processor status bit S:2/1 allows enabling and disabling of the STI. A Logix controller does not support this. The Logix
Designer Export generates a PCE instruction if it encounters any references to S:2/1.
Processor status word 46 identifies the program file to be used as a DII or PII. The Logix Designer Export generates a
PCE instruction and places it in the converted DII/PII routine.
There are special considerations for some data in the status file as shown in the table that follows.
MCP status data The PLC-5 processor can support from 1-16 main control
programs. Each MCP uses 3 words of status data. Status words
80-127 contain this information.
STI status data The Enhanced PLC-5 processor can also support a selectable
timed interrupt. The processor status file contains the interrupt
time interval and the number of the program file to execute.
Status word 31 contains the program file number; status word
30 contains the interrupt time interval.
DII/PII status data The PLC-5 and SLC 500 processors support an input interrupt.
Status word 46 contains the number of the program file to
execute.
A Logix controller does not support this feature. If the
import/export file contains PII status data, the PII program file
is converted and placed as a routine in the Continuous program.
The conversion process also places a PCE instruction in the
converted routine to identify that the routine was used for a PII.
Indexed addressing Status word 24 contains the current address index used for
indexed addressing. A Logix controller does not use this index
value. During the conversion, the process creates a tag for S24:
S24 INT (Radix:=Decimal) := <value>
Converting Data
Introduction
A Logix controller is based on a 32-bit architecture, as opposed to the 16-bit architecture of PLC-5 and SLC 500
processors. To provide seamless conversion and the best possible performance, many data table values are
converted to 32-bit values (DINT values). This chapter provides detailed information about converting various file
types. The table that follows shows the file conversions at a glance and the page in the chapter you can find the
conversion detail.
PLC-5 or SLC file type Logix array type Radix Comments Reference
PLC-5 or SLC file type Logix array type Radix Comments Reference
DATA <file_reference>:<last_element_number>
<data_value>
The table that follows describes the fields in the example above:
10 11 12
N7:111
N7:212
This data table file and elements: Could convert to: Specifies:
N7 with 3 elements DINT[3] ={42, -56, 1090} an integer array with three elements
T4 with 2 elements [2] := {{16#c0000000, 1000, 910}, an array of two structures; each structure
{16#c0000000, 3000, 2550} has three members
The conversion process creates single-dimension, INT arrays for I and O files. The tags names are I and O,
respectively. The number of elements in the converted array is the same as the number of elements in the original
data table file.
The PLC-5 processor, SLC 500 processor, and Logix controllers use different addressing schemes for I/O data. For
example:
To preserve the original address, the conversion process creates alias tags based on the physical address. For
example:
The number of elements in the converted array is the same as the number of elements in the original data table. For
example, in the ASCII text file:
The table that follows shows some examples of S addresses and their Logix equivalents.
S:3 S[3]
S:1/15 S[1].15
S:24 S24
There are special considerations for some data in the status file as shown in the table that follows:
MCP status data The PLC-5 processor can support from 1-16 main control
programs. Each MCP uses 3 words of status data. Status words
80-127 contain this information.
STI status data The Enhanced PLC-5 processor can also support a selectable
timed interrupt. The processor status file contains the interrupt
time interval and the number of the program file to execute.
Status word 31 contains the program file number; status word
30 contains the interrupt time interval
DII/PII status data The PLC-5 and SLC 500 processors support an input interrupt.
Status word 46 contains the number of the program file to
execute.
A Logix controller does not support this feature. If the
import/export file contains PII status data, the PII program file
is converted and placed as a routine in the Continuous program.
The conversion process also places a PCE instruction in the
converted routine to identify that the routine was used for a PII.
Indexed addressing Status word 24 contains the current address index used for
indexed addressing. A Logix controller does not use this index
value. During the conversion, the process creates a tag for S24:
S24 INT (Radix:=Decimal) := <value>
The number of elements in the converted array is the same as the number of elements in the original data table file.
For example, in the ASCII text file:
See Creating a Status File on page 25 to understand how the Logix Designer Export creates status files and uses GSV
instructions.
The conversion process creates a single-dimension, DINT array for the B file. The tag name is Bx (where x is the PLC-5
or SLC 500 data table file number). The number of elements in the converted array is the same as the number of
elements in the original data table file.
The table that follows shows examples of B addresses and their Logix equivalents:
B3.4/1 B3[4].1
B3/65 B3[4].1
The conversion process creates a single dimension array of structures for the T file. The tag name is Tx (where x
is the PLC-5 or SLC 500 data table file number). The number of elements in the converted array is the same as the
number of elements in the original data table file. Each element in the array is a structure, which consists of three,
32-bit DINT words. The table that follows shows a comparison of the PLC-5/SLC 500 bits and the Logix bits:
0 15 31 EN enable
0 14 30 TT timing
0 13 29 DN done
0 na 26 OV overflow
0 na 25 ER error
The table that follows shows some T addresses and their Logix equivalents:
T4:1 T4[1]
T4:1/15 T4[1].EN
T4:1/EN
T4:1.0/EN
T4:1.1 T4[1].PRE
T4:1.PRE
T4:1.2 T4[1].ACC
T4:1.ACC
Conversion rules
• The PRE and ACC values are converted to equivalents for a 1 msec time base.
• The first time base encountered for an individual is used for converting the preset and accumulator values
each time that appears.
• Each logic reference to a PRE or ACC value generates a PCE instruction.
0 15 31 CU count up
0 14 30 CD count down
0 13 29 DN done
0 12 28 OV overflow
0 11 27 UN underflow
• The PRE and ACC values do not receive any special manipulation during the conversion.
• PCE messages are generated along with OV or UN values.
The table that follows shows C addresses and their Logix equivalents:
C5:2 C5[2]
C5:2/15 C5[2].CU
C5:2/CU
C5:2.0/CU
C5:2.1 C5[2].PRE
C5:2.PRE
C5:2.2 C5[2].ACC
C5:2.ACC
0 15 31 EN enable
0 14 30 EU queue
0 13 29 DN done
0 12 28 EM empty
0 11 27 ER error
0 10 26 UL unload
0 9 25 IN inhibit
1 NA NA LEN length
2 NA NA POS position
The LEN and POS values do not receive any special manipulation during the conversion.
The table that follows shows R addresses and their Logix equivalents:
R6:3 R6[3]
R6:3/15 R6[3].EN
R6:3/EN
R6:3.0/EN
R6:3.1 R6[3].LEN
R6:3.LEN
During the conversion process, the Control R file type from the PLC-5/SLC is copied to both a CONTROL tag array and
a SERIAL_PORT_CONTROL tag array in Logix Designer.
Once all of the R data has been migrated to the SERIAL_PORT_CONTROL type, you can remove the R data equivalent.
If an instruction that requires an R file type (or SERIAL_PORT_CONTROL type post conversion) uses an N file type
instead, the N file type will be treated as an R file type and converted. Treating an N file type as an R file type requires
3 N elements.
The table that follows shows N addresses and their Logix equivalents:
N7:0 N7[0]
N7:1/2 N7[1].2
Tip: If you need to do MSG block transfers to 1771 and 1794 analog modules, you must convert the N files
back to INTs.
The table that follows shows an example F address and its Logix equivalent:
F8:3 F8[3]
The table that follows shows some A addresses and their Logix equivalents:
A9:4 A9[4]
A9:5/6 A9[5].6
The table that follows shows an example D address and its Logix equivalents:
D10:0 D10[0]
The conversion process creates an individual MESSAGE structure for each element in the BT file (not an array of
structures), because MESSAGE tags cannot be array elements. The tag name is BTx (where x is the PLC-5 or SLC 500
data table file number).
The initial values appearing in the Legacy DATA statement are first partitioned into sets of 6 individual elements.
The mapping from BT type to Logix Designer MESSAGE type is shown in the table that follows:
0 15 31 EN EN enable
0 14 30 EU EU queue
0 13 29 DN DN done
0 12 28 EM EM empty
0 11 27 ER ER error
0 10 26 UL UL unload
0 9 25 IN IN inhibit
0 8 24 FD FD found
0 7 na RW na
3 na na FILE RemoteIndex
4 na na ELEM RemoteElement
Only the local message information is converted, which consists of the message type, the message itself, and the
message length. After the conversion, use the programming software to configure the message.
The table that follows shows some BT addresses and their Logix equivalents:
BT11:5 BT11_5
BT11:5.RLEN BT11_5.RLEN
The table that follows shows some M0/M1 addresses and their Logix equivalents:
M0:0/1 M0_0[1]
M1:1/1 M1_1[1]
The conversion process creates an individual MESSAGE structure for each element in the MG file (not an array of
structures). MESSAGE tags cannot be array elements. The tag name is MGx (where x is the PLC-5 or SLC 500 data
table file number). The table below shows a comparison of the PLC-5/SLC 500 MG structure and the Logix Designer
MESSAGE structure:
The initial values appearing in the Legacy DATA statement are first partitioned to into sets of 56 individual elements.
The mapping from MG type to Logix Designer message type is shown below:
0 15 31 EN EN Enable
0 14 30 ST ST
0 13 29 DN DN Done
0 12 28 ER ER Error
0 11 27 CO CO
0 10 26 EW EW
0 9 25 NR NR
0 8 24 TO TO
The table that follows shows some MG addresses and their Logix equivalents.
MG9:5 MG9_5
MG9:5.ERR MG9_5.ERR
◦ The file number is also used to determine what the file type is based on usage.
◦ The generated tag is the value of the LocalTag attribute.
• After the conversion, you need to provide the communication path of the message.
The conversion process creates a single dimension array of PID structures for the PD file. The tag name is PDx (where
x is the PLC-5 or SLC 500 data table file number). The number of elements in the converted array is the same as the
number of elements in the original data table file. Each element in the array is a PID structure.
The following table lists shows some PD addresses and their Logix equivalents:
PD10:1 PD10[1]
PD10:1/15 PD10[1].EN
PD10:1/EN
PD10:1.0/15
PD10:1.2 PD10[1].SP
Although the PID instruction has been migrated, the PID instruction has many parameters that do not convert directly
to the Logix Designer application. The migration must be verified.
0 0 0 SA
0 3 3 OV Overflow
0 4 4 ER Error
0 5 5 DN Done
1 NA NA BASE
2 NA NA PRE
3 NA NA TIM
The Logix Designer structure contains 1 16-bit word (INT) and 82 8-bit words (SINT)
• The ASCII strings are broken apart. In other words, a data statement is created for each ASCII string, not each
ASCII string file.
• The Logix Designer Export then creates a single dimension tag.
• These data statements do not display the <# of Elements> after the <File Reference>. In this case, this
integer represents an actual element number. The data values contain integers. The first value encountered
is the byte length in decimal format. The remaining values are shown as 41 16- bit words in hexadecimal
format.
The following table summarizes the ladder instructions specifically related to strings.
0 15 31 TO TO
0 14 30 EN EN enable
0 13 29 ST ST
0 12 28 DN DN done
0 11 27 ER ER error
0 10 26 CO CO
0 9 25 EW EW
4 na na FILE RemoteIndex
5 na na ELEM RemoteElement
For each partition of the CT array, a new RSLogix MESSAGE structure is created. This structure’s name is formed by
concatenating the Legacy filename, and the Legacy element index separated by an underscore.
The MessageType and LocalTag attributes of the MESSAGE structure are set later when a CIO instruction that uses this
CT element as the fourth operand is encountered. Then, the fifth operand is used to set the LocalTag.
For example:
• file number
• word or element number
• bit number (only for B type addresses)
The Logix Designer Export supports indirect addresses, except when the indirection is an array specification. Indirect
array specifications are converted to aliases, as shown in the example that follows.
Bit number B3/[N7:0] B3[N7_0 / 16].[N7_0 AND 15] The conversion process must
convert to the correct word
and bit within that word.
Alias N7_0 replace the indirect
address.
Element Description
0 Recipe number
DATA N10:5
DATA N11:5
DATA N12:5
DATA N13:5
DATA N14:5
Use a text editor to modify these integer files into a two-dimensional array:
Assume that there is an indirect address reference to N[N7:0]:0 to read the recipe number. In the converted project,
use RECIPES[N7_0, 0], where N7_0 is the converted form of N7:0. You have to modify the bounds checking because
the original file numbers ranged from 10 to 14, but the first index in the two-dimensional array ranges from 0 to 4.
For example:
A Logix controller stores data in arrays, rather than files. Indexed addresses for PLC-5 and SLC 500 file instructions
are converted to array tags, without adding the value of status word S:24.
For example:
• Aliases are literals assigned to specific tag references. These literals are then used in place of the associated
tag reference.
• The Logix Designer Export creates alias declarations based upon the content of the legacy documentation
import/export file.
• Aliases are also created when the file number, word offset, or bit offset of an address is indirect.
• Aliases may be created when you choose to have the Logix Designer Export create aliases during the
migration process.
• Alias declarations are always associated with a tag declaration. If a tag declaration created by the Logix
Designer Export has an associated radix, then any aliases based in that tag must be assigned the same radix.
Converting Symbols
The conversion process converts a symbol to a description. The Logix Designer Export gives you the option to have
the system create alias tags for symbols.
The PLC-5 and SLC 500 import/export file uses SYM statements to identify symbols:
address_reference address
The conversion process creates a tag to correspond to the
actual address.
The PLC-5 and SLC 500 processors support some symbol formats that are not supported in a Logix controller. In
these cases, the conversion process modifies the symbol text.
The table below shows how the conversion process modifies the symbol text.
If an address reference has both a symbol and an address comment, the conversion process concatenates the
symbol to the end of the address comment.
Aliases created
If you choose to have the Logix Designer Export create aliases, the migration process is the same, but a Logix
Designer alias is generated with the SYM "name" as the (alias) tag name and the <address reference> is the alias
reference.
The following table shows the difference between the symbol conversion options.
N7 : INT[9] (Radix := Decimal ); SYM N7:2 Kitty N7 : INT[9] (Radix := Decimal, Kitty OF N7[2]
Comment[2]="Kitty" );
B3 : INT[5] (Radix := Binary); SYM B3:4/5 Puppy B3 : INT[5] (Radix := Binary, Puppy OF B3[4].5
Comment[5]="Puppy");
The PLC-5 and SLC 500 import/export file uses AC statements to identify address comments:
address_reference address
The conversion process creates a tag to correspond to the
actual address.
For example:
If an address reference has both a symbol and an address comment, the conversion process concatenates the
symbol to the end of the address comment.
Converting Instructions
• Instructions that are not supported by Logix 5000 controllers are converted with all their parameters intact. A
PCE (Programming Conversion Error) is generated to highlight the error.
• PLC-5 and SLC 500 parameters use 16 bits. They are extended to 32 bits for Logix parameters.
• All references to S:0/0, S:0/1, S:0/2, and S:0/3 are replaced with the Logix keywords S:C, S:V, S:Z, and S:N,
respectively.
• Each reference to the OV and UN bits of a COUNTER file type results in a PCE instruction.
• Each logic reference to a PRE or ACC value generates a PCE instruction.
• Any constant that represents a serial port is always converted to 0, the Logix serial port.
• Directly modifying the ladder logic text of the PC5/SLC file before importing can cause a syntax error. The
Logix Designer Export shows the error and where to find it. It then gives the option to correct the error and
import the file again. Syntax errors should not occur if the program is exported directly from the PLC-5/SLC
application.
Instruction List
The following table lists the PLC-5 and SLC 500 instructions alphabetically. It also includes comments to identify
conversion issues:
Control
Characters
Destination
Control
Characters
ACL ASCII Clear Buffer SLC 500 Channel Channel is set to zero.
Generates a serial port
control tag.
Transmit Buffer
Receive Buffer
Destination
Destination
Number
Destination
Control
Channel Status
Destination
Control
String Length
Characters Read
Control
String Length
Characters Read
Search
Result
Control File
Length
Position
AWA ASCII Write with Append PLC-5 Channel Channel is set to zero.
SLC 500 Generates a serial port
control tag.
Control
String Length
Characters Sent
Control
String Length
Characters Sent
BSL Bit Shift Left PLC-5 File Does not convert S:24
SLC 500 for indexing. Logs
message directly in the
rung along with the PCE
instruction.
Control File
Bit Address
BSR Bit Shift Right PLC-5 File Do not use S:24 for
SLC 500 indexing. Logs message
directly in the rung
along with the PCE
instruction.
Control File
Bit Address
instructions in parallel
branches.
Source Bit
Destination
Destination Bit
Length
Control Block
Control Block
Length
Accum
Accum
Destination
Compare Control
Length
Position
Result Control
Length
Position
Destination
Mask
Reference
Destination
Length
Position
Mode
FBC File Bit Compare PLC-5 Source Does not convert S:24
for indexing. Follow the
DDT instruction with
MOV and FAL instruction
on parallel branches to
ensure the correct bits
are being operated on.
Compare Control
Length
Position
Result Control
Length
Position
Control File
Length
Position
Destination
Control File
Length
Position
Index
Initial Value
Terminal Value
Step Size
Position
Mode
Preset
Counter
Preset
Accum
Source
Length
IDI Immediate Data Input PLC-5 Data File Offset There is no Logix
IDO Immediate Data Output PLC-5 Data File Offset There is no Logix
Mask
Length
Input Parameters
Return Parameters
Control File
Length
Position
Destination
Control File
Length
Position
High Limit
SLC 500
Compare Operand
Destination
Destination
SLC 500
Destination
Output Word
OSR One Shot Rising PLC-5 Storage Bit If SLC 500 instruction,
SLC 500 converts to an ONS
instruction.
Output Word
PV Value
Tieback Value
CV Value
Source
Channel 1
RPI Reset Pending Interrupt SLC 500 Slots Converts, but Logix
Designer application
does not support this
instruction.
Rate
Offset
Destination
SCP Scale with Parameters SLC 500 Input Logix Designer does not
support this instruction;
however, it is converted
to a CPT instruction.
Input Minimum
Input Maximum
Scaled Minimum
Scaled Maximum
Scaled Output
Source
Length
Position
Length
Position
Destination Mask
Destination
Control File
Length
Position
Length
Position
Control File
Length
Position
Time
Destination
Channel 1
Length
Destination
Destination
• AGA3, AGA7 and API - Use the CIR and COR instructions
• DDMC - Uses the DFA instruction
• SDSC - Uses the SDS instruction
Because this architecture change is significant, you will probably have to consider restructuring your logic.
Introduction
Below is a list of all of the messages that are generated with a PCE instruction. The 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.
PCE Messages
The table that follows lists the message identifiers, descriptions, and when they are logged:
103 Warning: Status files do not exist in Logix Each time a reference to the S file is
Designer software. GSV instructions are encountered.
used in Logix Designer software to obtain
controller information where applicable.
This conversion must be validated.
105 The address references an indirect file Each time an address reference with an
number. It was not converted. indirect file number is encountered.
107 The address reference may have an Each time suitable index into the array
incorrect index. The conversion needs to could not be determined.
be validated.
108 The BTR, BTW or MSG instruction has Each time a BTR, BTW or MSG instruction
been converted. However, the conversion is converted.
needs to be validated. These instructions
have many parameters that cannot be
directly converted and require review.
109 PLC-5 and SLC s use 0.01 second and Each time a reference to a counter’s ACC
1 second timebases. Logix Designer field was encountered.
software uses a 0.001 second time base.
The address references a counter’s
Accumulator (ACC) field. The conversion
needs to be validated.
110 PLC-5 and SLC s use 0.01 second and Each time a reference to a counter’s PRE
1 second timebases. Logix Designer field was encountered.
software uses a 0.001 second time base.
The address references a counter’s
Preset (PRE) field. The conversion needs
to be validated.
113 Follow the <FBC or DDT> instruction Each FBC and DDT instruction.
with MOV and FAL instruction on parallel
branches to ensure the correct bits are
being operated on.
114 Although the PID instruction has been Each time a PID instruction is converted.
converted, the PID instruction has many
parameters that do not convert directly to
Logix Designer software. The conversion
must be verified.
115 16-bit parameters have been extended to Each time BSL, BSR, BTD instruction is
32-bit. Ensure bit manipulation is correct. converted.
117 AGA instruction not supported. Each time a AGA instruction is found.
120 Source and destination types differ. When source and destination types differ
in a COP instruction.
121 DFA instruction not supported Each time a DFA instruction is found.
122 ERI/ERO instruction not supported. Each time a ERI or ERO instruction is
found.
123 IDI/IDO instruction not supported. Each time a IDI or IDO instruction is
found.
124 IIN/IOT instruction not supported. Each time a IIN or IOT instruction is
found.
128 SFC routines aren’t migrated. Each time a SFR or EOT instruction is
found.
129 Online edit instructions are not Each time a SDS, SIZ or SRZ instruction is
supported. found.
130 User Interrupt instructions not supported. Each time a UID, UIE or UIF instruction is
found.
131 DDV instruction not supported. Each time a DDV instruction is found.
133 I/O Interrupt Enable/Disable instructions Each time a IID or IIE instruction is found.
not supported.
134 IIM/IOM instruction not supported. Each time a IIM or IOM instruction is
found.
135 INT instruction not supported. Each time a INT instruction is found.
136 REF instruction not supported. Each time a REF instruction (in SLC) is
found.
137 RPI instruction not supported. Each time a RPI instruction is found.
138 Selectable Timed Interrupt instructions Each time a STD/STE or STS instruction is
not supported. found.
139 SUS instruction not supported. Each time a SUS instruction is found.
141 RMP instruction not supported. Each time a RMP instruction is found.
142 RPC instruction not supported. Each time a RPC instruction is found.
143 SVC instruction not supported. Each time a SVC instruction is found.
144 SWP instruction not supported. Each time a SWP instruction is found.
145 SQC instruction not supported. Each time a SQC instruction is found.
146 INV instruction not supported. Each time a INV instruction is found.
147 DCD/ENC instruction not supported. Each time a DCD or ENC instruction is
found.
148 The CEM, DEM, or EEM instruction has Each time a CEM, DEM or EEM instruction
been converted. However, the conversion is found.
needs to be validated. These instructions
have many parameters that cannot be
directly converted and require review.
150 MSG instruction and associated MESSAGE Each time a MSG instruction is found.
tag need to be manually verified.
151 Warning: Status files do not exist in Logix S file type indexes that can be directly
Designer software. converted to functionality in Logix
However this status file value is handled Designer software.
through the StatusFile routine.
152 Logix Designer software has a different Start of identified legacy processor fault
fault handling mechanism than the routine.
PLC-5/SLC. This fault routine will not be
called.
153 This PII/DII routine is not used by Logix Start of identified legacy processor PII/DII
Designer software. routine.
Technical Support Center Find help with how-to videos, FAQs, chat, user forums, and product notification updates. rok.auto/support
Local Technical Support Phone Numbers Locate the telephone number for your country. rok.auto/phonesupport
Literature Library Find installation instructions, manuals, brochures, and technical data publications. rok.auto/literature
Product Compatibility and Download Center Get help determining how products interact, check features and capabilities, and find rok.auto/pcdc
(PCDC) associated firmware.
Documentation feedback
Your comments help us serve your documentation needs better. If you have any suggestions on how to improve our content, complete the form at rok.auto/docfeedback.
Rockwell Automation maintains current product environmental information on its website at rok.auto/pec.
Rockwell Otomasyon Ticaret A.Ş. Kar Plaza İş Merkezi E Blok Kat:6 34752 İçerenköy, İstanbul, Tel: +90 (216) 5698400 EEE Yönetmeliğine Uygundur