Book Image

Instant PLC Programming with RSLogix 5000

Book Image

Instant PLC Programming with RSLogix 5000

Overview of this book

RSLogix5000 is a user friendly IEC61131-3-compliant interface for programming the current generation of Rockwell Automation PLCs, which includes Ladder Diagrams (LD), Graphical Function Block Diagrams (FBD), Graphical Structured Text (ST), and Sequential Function Charts (SFC). Instant PLC Programming with RSLogix 5000 captures the core elements of PLC programming with RSLogix 5000 with a minimal investment of time. We will avoid getting into control theory and focus on condensing the information specific to RSLogix 5000. We have selected the key areas of RSLogix and provide a step-by-step approach to teaching them. This book start by follows the steps involved in creating a new RSLogix 5000 project and configuring racks, slots, and channels. Next, we will create routines using the various languages available in RSLogix 5000, troubleshooting and resolving issues we encounter along the way. Finally, we will dive into the advanced features, such as online changes, code generation, task management, and user-defined structures. You will also learn object-oriented PLC programming techniques using advanced features like user-defined types (UDTs) that improve the maintainability, uniformity, and readability of our routines. We also highlight the strengths and limitations of online changes and demonstrate techniques to maximize flexibility. You will learn everything you need to get up and running with RSLogix 5000 as well as best practices used by industry experts.
Table of Contents (7 chapters)

Creating a new RSLogix 5000 application (Simple)

In this recipe, we will create a new RSLogix 5000 controller program using the Logix Designer application.

Getting ready

For this exercise, you will need to have RSLogix 5000 installed on your computer.

How to do it...

  1. First, we will need to open RSLogix 5000 from the drop-down menu and then navigate to File | New or press Ctrl + N.

  2. The New Project window will appear and allow us to give a name to our new project and configure it for a particular controller and firmware revision. In this book, we will be using the 1756-L75 with firmware Version 19. Feel free to use whichever hardware is available or the RSLogix Emulate 5000 Controller if a PLC is not available; but, keep in mind that the hardware may impact your ability to complete all the exercises in this book.


    The general rule of thumb is that the major version numbers must always match (so, for Version 20.x of RSLogix 5000, you need Version 20.x of the controller firmware). It is common practice to have multiple RSLogix software versions installed side by side on a computer, particularly when you're dealing with a plant that has older controllers that have not been upgraded.

  3. Set the remaining fields to the following values:

    • Name: FirstProject

    • Description: This is my first project in RSLogix 5000!

    • Chassis Type: 4-Slot

    • Slot: 0

  4. Click on the Browse button to choose a location on your computer on which to save your project.

How it works...

We have created a new empty RSLogix 5000 project and specified the PLC that will be used throughout this book. When you create a new project, it will be stored on your local computer as an ACD file.

There's more...

If you have selected the RSLogix Emulate 5000 controller type, you will also need to configure it using the RSLogix Emulate 5000 program separately to simulate a PLC on your local computer.

RSLogix Emulate 5000

RSLogix Emulate 5000 allows you to use your local computer as a Logix 5000 PLC. You will need to have RSLogix Emulate 5000 running and configured in order to test the projects described in this book. RSLogix Emulate 5000 is very simple to set up; simply run the RSLogix Emulate 5000 program and switch between the Run mode and the Program mode using the All Modules drop-down menu. For the purposes of this book, there is no need to configure any modules.

Allen-Bradley Rockwell programmable controllers

There is a wide range of programmable controllers available from Rockwell—too many than can be mentioned in this book. It is worth spending some time learning the full line-up of controllers on its website at the following link: