02learning RSLogix 5000 Programming Sample Chapter PDF
02learning RSLogix 5000 Programming Sample Chapter PDF
ee
Sa
Learning RSLogix 5000 m
Programming
knowledge of RSLogix 5000. If you are a student
who is familiar with automation and would like to learn
Austin Scott
Design Function Block Diagrams (FBD) and
about RSLogix 5000 with a minimal investment of time,
their easy integration with HMIs
this is the book for you.
$ 39.99 US
£ 25.99 UK Become proficient in building PLC solutions in Integrated
"Community Architecture from the ground up using RSLogix 5000
Experience Prices do not include
local sales tax or VAT
Distilled" where applicable
Chapter 3, Configuring Logix Modules, looks at the available modules for the Logix
platform, how to configure them, and their usage in a Logix project. It also includes
methods for identifying module features by their Logix Module Catalog numbers
and the address tree that a typical I/O module creates.
Chapter 5, Writing Ladder Logic, looks at the history of ladder logic and the
development of the IEC standard programming languages. Then, it lets you jump
into ladder logic programming by creating a simple pump control program. It
demonstrates how to buffer inputs and outputs in our ladder logic code and discusses
the importance of this process. Finally, it explores the buffering capabilities of the new
Program Parameter features in Studio 5000 Logix Designer.
Chapter 6, Writing Function Block, explores the merits of function block programming
by building a small sample application. It also provides instructions for modifying
the function block properties and performing online edits.
Chapter 9, Using Tasks and Programs for Project Organization, looks at the ways to
structure a Logix project using the basic organization units—tasks, programs, and
routines. It also looks at the ways in which task scheduling and prioritization can be
used to balance the processing time of a controller.
Chapter 10, Faults and Troubleshooting in Logix, teaches you how to identify and
troubleshoot faults in a Logix controller. It details a list of fault codes that provide
insights into the problems encountered by the platform. It introduces the process of
fault recovery, which allows a program to resume its execution after encountering a
specific fault type. Finally, it brings you the convenient troubleshooting applications
available for your iPhone and iPad.
This book is not comprehensive for any systems using the given architecture.
It does not absolve users of their duty to uphold the safety requirements for the
equipment used in their systems or compliance with both national or international
safety laws and regulations.
ControlLogix
and CompactLogix
Overview and Firmware
In this chapter, we will introduce the ControlLogix and CompactLogix platforms by
exploring the evolution of the Allen-Bradley controllers. We will provide details of
the Rockwell Automation Integrated Architecture and then finally, we will discuss
the important role that firmware plays in the Logix5000 platform. Due to 15 to 20
years of industrial controller life span, it is common to encounter older versions of
hardware and firmware, and critical to be familiar with legacy systems.
[1]
ControlLogix and CompactLogix Overview and Firmware
Allen-Bradley was founded in 1904 by brothers, Harry (19 years old) and
Lynde Bradley (26 years old), with seed money from Dr. Stanton Allen. As a
teenager, Lynde Bradley developed the prototype for what would later become
Allen-Bradley's first commercial product. The primary focus of Allen-Bradley was
motor controllers for several decades until they received an unusual challenge
from General Motors (GM) in 1968. Each time GM wanted to introduce a new car,
they needed to spend two or three months rewiring all their relays to support the
production process changes. The request was to build a system to replace their
hard-wired relay logic with something more dynamic—Standard Machine
Controller. Modicon ultimately won the GM contract with their highly robust
Modicon 084 Controller. As a result, Allen-Bradley acquired a company called
Information Instruments Inc and produced their first functional controller—
Programmable Matrix Controller (PMC) in 1971. Shortly after the release of PMC,
Allen-Bradley released a more feature-rich product known as Programmable
Logic Controller 1 (PLC-1). Since the introduction of the first Allen-Bradley (later,
Rockwell Automation) PLC-1, we have seen several platforms released, including
PLC-2 (1978), PLC-3 (1981), PLC-5 (1986), SLC 500 (1991), MicroLogix (1994),
ControlLogix (1997), and finally, CompactLogix (2006). In 1985, Allen-Bradley was
acquired by Rockwell International and was later spun off as a part of Rockwell
Automation. In the field today, the Allen-Bradley name and logo can still be seen on
many of the Rockwell Automation's products. The focus of this book will be on the
modern ControlLogix and CompactLogix controllers and Studio 5000 Automation
Engineering and Design Environment, which I will refer to as the Logix family.
Integrated Architecture
Like many other vendors, Rockwell Automation has recently rebranded and
reorganized their offering. The ControlLogix family is a part of Rockwell
Automation's larger solution offering called Integrated Architecture. It is a relatively
new term in the world of Rockwell Automation, but the concept has been in place for
quite some time. It represents a convergence of the control and information systems
within an industrial operations environment. This convergence is in line with the
industry trend we have witnessed over the past decade and has increased the ties
between Operational Technology (OT) and traditional Information Technology
(IT). We have seen a continuous increase in demand for operational information
to be provided to the corporate information system in real time in order to fulfill
the maintenance needs, environmental reporting, accounting, and other corporate
requirements. At the same time, we have seen OT move from proprietary protocols
and data access technology to traditional IT technologies such as TCP/IP and
Ethernet. The promise of Integrated Architecture is the ability to easily implement
plant-wide optimization, reduce technical project risk, increase machine performance,
and improve long-term reliability.
[2]
Chapter 1
• ControlLogix
• CompactLogix
• GuardLogix
• DriveLogix
• SoftLogix
Logix
Designer
Studio 5000
View Designer
Logix ControlLogix
Kinetix CompactLogix
Integrated Logix
Stratix SoftLogix
Architecture Controllers
View DriveLogix
PowerFlex GaurdLogix
The preceding diagram outlines the Integrated Architecture structure and shows
where ControlLogix fits into the mix. The FlexLogix (bulletin 1794) controllers were
also part of the Logix PAC family and was used to communicate with PLC-5 and
SLC 500 Flex I/O blocks. However, FlexLogix has now been retired from the lineup,
so it will not be covered in this book.
The product, formally known as RSLogix 5000 (used for programming the
ControlLogix and CompactLogix controllers), is now included within the automation
engineering and design software suite called Studio 5000 and is now referred to as
Logix Designer. For the remainder of this book, we will be using the terms—Logix
Designer, RSLogix, and Logix—interchangeably to refer to the Logix controller
family programming environment.
[3]
ControlLogix and CompactLogix Overview and Firmware
ControlLogix controllers
ControlLogix controller was first launched in 1997 as a replacement for
Allen-Bradley's previous large-scale control platform, PLC-5. The ControlLogix
platform includes a bulletin 1756 ControlLogix 5550 controller, bulletin 1756
ControlLogix I/O modules, and the RSLogix 5000 programming software platform
(now referred to as Studio 5000 Logix Designer). ControlLogix represented a
significant technological step forward that included a 32-bit ARM-6 RISC-core
microprocessor and an ABrisc Boolean processor combined with a bus interface on
the same silicon chip. At launch, the series 5 ControlLogix (also referred to as L5 and
ControlLogix 5550) controllers were able to execute the code three times faster than
PLC-5. The following diagram is an illustration of the original Logix L5 controller:
[4]
Chapter 1
The L5 controller is considered to be a PAC rather than a traditional PLC due to its
modern design, power, and capabilities beyond a traditional PLC (such as motion
control, advanced networking, batching, and sequential control). The ControlLogix
platform is built on the ControlBus backplane, which performs like a mini-network
and allows devices to be Removed or Inserted Under Power (RIUP).
L5 has since been retired from the lineup, so we will focus on the newer L6 and
L7 controllers in this book. Throughout this book, we will be referring to the
ControlLogix controllers as PACs, which are the modern day equivalent of PLCs.
Communications,
Read Inputs Logic
Status, Watchdog Outputs
Execution
Tasks 20 ms RPI
Traditional Logix
Synchronous Asynchronous
PLC Scan Operation
Inputs
Write Outputs Execute Logic Communications
200 ms RPI
[5]
ControlLogix and CompactLogix Overview and Firmware
• The performance capability doubled due to a more powerful dual core CPU.
• The adoption of modern SDRAM memory.
• The replacement of the 9-pin serial port with a USB 2.0 port (programs
transfer 200 times faster over USB 2.0 than serial).
• The replacement of the CompactFlash memory card with a Secure Digital
(SD) memory card.
• The replacement of the lithium battery with the capacitor-based Energy
Storage Module (ESM). The ESM provides power to the controller during a
power loss event to allow it to copy the contents of its memory from volatile
memory to the onboard nonvolatile memory. The ESM eliminates the issue
with L6 series controllers that would lose the program after a few weeks
without power once the battery was completely drained.
• The ability to store program comments and tag descriptions on the controller
(firmware v21 and higher).
[6]
Chapter 1
[7]
ControlLogix and CompactLogix Overview and Firmware
The ControlLogix series 6 and series 7 controllers and their software version
compatibilities are shown in the following table:
It is important to note that the L6 controllers are not supported in Version 21 and
higher of Studio 5000 Logix Designer.
[8]
Chapter 1
[9]
ControlLogix and CompactLogix Overview and Firmware
CompactLogix controllers
In 2006, Rockwell Automation first shipped the (bulletin 1768) L43 CompactLogix
controllers targeted at cost effective, small- to medium-size automation solutions.
At the time of launch, CompactLogix controller was planned as the long-term
replacement for the SLC 500 controller family. The CompactLogix control platform
is designed with an emphasis on the controller software. As the CompactLogix
hardware evolves with an improved performance and additional features, the
logic will easily migrate to new hardware and firmware versions. Unlike the SLC
500 platform, the CompactLogix controllers can be programmed using the same
RSLogix 5000 (Logix Designer) software suite that is used with ControlLogix. In
2006, CompactLogix L43 with integrated motion support was added to the family. It
features a CompactFlash memory card, Ethernet port, Serial RS-232 port, 1769 / 1768
modules, and a power supply module. The following is an illustration of the L43
CompactLogix controller:
Modules on L43 can only be placed to the right of the power supply.
[ 10 ]
Chapter 1
[ 11 ]
ControlLogix and CompactLogix Overview and Firmware
Also in 2008, Rockwell Automation released the (bulletin 1769) CompactLogix L3x
modular controllers. The 1769 CompactLogix modules do not have a chassis like the
ControlLogix modules. The 1769 CompactLogix modules can be connected together
using a DIN rail or can be screwed in directly to a panel. CompactLogix L3x features
a CompactFlash memory card, serial RS-232, ControlNet or Ethernet port, and a
power supply module. The following diagram is an illustration of the CompactLogix
L3x controller:
[ 12 ]
Chapter 1
In 2009, Compact GuardLogix, an SIL3 certified controller, with the L43S and L45S
CPU supporting integrated safety, was added to the Logix family.
• Twice the performance capability due to a more powerful dual core CPU
• Adoption of modern SDRAM memory
• Replacement of the 9-pin serial port with a USB 2.0 port (programs transfer
200 times faster over USB 2.0 than serial)
• Replacement of the CompactFlash memory card with an SD memory card
• Added the ESM and removed the need for a lithium battery
• Made use of the existing CompactLogix 1769 I/O modules
• Integrated motion control over Ethernet
• Ability to store program comments and tag descriptions on the controller
(firmware v21 and higher)
[ 13 ]
ControlLogix and CompactLogix Overview and Firmware
The following table provides illustrations of the CompactLogix 5370 controllers and
their distinguishing features:
[ 14 ]
Chapter 1
2 X Ethernet ports
The CompactLogix controllers and their software version compatibilities are shown
in the following table:
[ 15 ]
ControlLogix and CompactLogix Overview and Firmware
[ 16 ]
Chapter 1
[ 17 ]
ControlLogix and CompactLogix Overview and Firmware
Summary
In this chapter, we learned about the controllers available within Rockwell
Automation's Integrated Architecture. We also explored the history of Rockwell
Automation and evolution of the industry-leading Logix platform. We now have
an idea of the controller solutions available within Integrated Architecture, and are
capable of making basic solution architecture decisions. In the appendix of this book,
you can find links to Rockwell Automation Literature Library where you can dive
deeper into the topics covered in this chapter.
In the next chapter, we will introduce the various networking and communication
options available for the Rockwell Automation Logix controllers.
[ 18 ]
Get more information Learning RSLogix 5000 Programming
www.PacktPub.com
Stay Connected: