RSLogix 5000 Tutorial

This is a free introductory tutorial on how to create an automation program for a ControlLogix or CompactLogix processor using the RSLogix 5000 programming environment from Rockwell Automation.

When I originally wrote this tutorial, Rockwell Automation had graciously offered a 90 day demo of RSLogix 5000 as a free download. It was fully functional, except it wouldn’t communicate with a real PLC. Unfortunately that link is now broken, and it doesn’t seem like Rockwell Automation is offering any other alternative, so you somehow have to get your hands on a full version. I’m sorry about that. If anyone finds a free or demo version again, please let me know so I can update the link.

The tutorial explains how to write the automation program including the ladder logic and sequential function chart for a domestic washing machine. I chose a Cat investigates washing machinewashing machine because it’s quite simple, and it’s something that everyone is familiar with. I should, however, note that you would never put an industrial controller into a domestic washing machine, and you probably wouldn’t ever use a servo motor for the agitator, but I wanted to demonstrate a little motion control as well. I have heard that newer washing machines actually have VFD control, but I admit that servo control is overkill.

I also don’t have any real knowledge of how a washing machine works internally, other than using my imagination, so please don’t use this as a reference if you happen to be designing, programming, or building a real washing machine!

  1. Creating a new project
  2. Customizing the editor and colors
  3. Adding I/O cards
  4. Creating the axis for the servo motor
  5. Program structure: High level program layout
  6. Program structure: How to layout routines
  7. Mapping your inputs
  8. Mapping your outputs
  9. Create fault logic
  10. Create the low level machine control routines
  11. Create the automatic sequence
  12. Tie the automatic sequence logic to the outputs

If you’re interested in reading more about Ladder Logic Programming, please have a look at these Ladder Logic Design Patterns.

If you’re interested in some alternative control systems, make sure to check out my TwinCAT 3 Tutorial.


25 thoughts on “RSLogix 5000 Tutorial

  1. Pingback: The Five Rung Logic Block - Contact and Coil

  2. Pingback: Mesta's Automation blog » Blog Archive » PLC programming resources: PLC-DEV website

  3. Yogesh

    Why we not uses the microcontrollers & others processing units i think they are easy to program.

    Why we use special processors please tell me the processor requirments of a plc system ??

    your tutorial is very very good & helpful.

  4. Chris Pitts

    @Yogesh,

    There are a number of reasons to use PLC’s over microcontrollers.

    First, it’s important to understand that PLC’s and uC’s are actually very similar in terms of their core processing capabilities. Lots of PLC’s run Freescale or other processors that you will see in common microcontrollers. The hardware differences center around the different applications they revolve around.

    First, microcontrollers are designed to automate processes in systems that are produced on a very large scale. Typically, when you design a uC solution, you design it to perform a single task, and you design it to be mass produced without changes from unit to unit. When you need to automate a process such as engine management in an automobile, for example, uC’s are the obvious choice because they are inexpensive, powerful, and effective. Building a million cars with PLC’s in them would be insane compared to uC’s, even if both systems had equal processing power.

    By contrast, PLC systems are designed to implement processes that are custom for each application. They are designed such that the engineer can easily modify the number of inputs and outputs available, and the larger PLC solutions are designed to scale to huge numbers of I/O points that a single uC could never accomodate.

    The other difference is that uC’s don’t typically have the hardware integrated for doing I/O at voltage levels other than what the processor operates at. PLC’s are designed to do AC and DC discrete logic, as well as 4-20mA analog, among other things. uC’s need support hardware before they can do that. Essentially, a PLC IS a microcontroller; that support hardware to take in those inputs seamlessly is the primary thing that makes them different. You could run a factory using an ATMEL uC, but you would need all the support hardware to plug in the huge amount of I/O.

    I’m fairly new to PLC’s. I’ve only recently started an internship with an industrial automation company. But having used uC’s pretty extensively, I hope that answers your questions as to the differences between the two systems.

  5. Pingback: It’s not about the machine, it’s about the man. « Industrial Training

  6. InqThinker

    I’m also interested in step 12. Also, perhaps step 11 can be expanded on as well? An example of a completed FBD would be very useful.

  7. Gnanesh

    Systematic approach for programming.
    Excellent Tutorial.
    Too many subroutines makes understanding the program little complicated.
    Thanks.

  8. Pingback: What programming languages exist for mechatronics purposes? | DL-UAT

  9. Scott Whitlock Post author

    @Petr – unfortunately it looks like Rockwell Software has removed their 90 day demo version. I’m sorry about that. I’ll update that paragraph in the tutorial. 🙁

  10. Bob

    Excellent Tutorials!!!
    I do appreciated for your kind hearted teaching & sharing your expertise!!!
    So far I am following step by step and done “9” [Fault]!
    Hope you will attach Tutorial 12 soon!

  11. Dwight Belyeu

    Your tutorial is excellent! Do you have it printed in a lab manual that we could buy for a class that I teach in plc programming? Or do you mind if I print it up for my students from this website?

  12. Scott Whitlock Post author

    @DwightBelyeu – Sorry, I don’t have it in a printable format. Yes, you can use it in a class, as long as you give attribution to where you got it from.

  13. Evgeny

    Great tutorial!
    I familiar with RSLogix 500 and have some difficulties with RSLogix 5000. Your tutorial gave me so simple explanations and advises. Even with my low level of English it is very helpful.
    Thanks a lot!

  14. Jzs

    Just wanted to say big thanks Scott for creating this tutorial.
    Both TwinCAT and RSLogix (and ladder) tutorials have helped me very much in my job.

    Great work!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.