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)

Printing programs (Simple)


In this recipe, we will demonstrate the best practices for printing Ladder Logic and Functional Block Diagrams for hard-copy documentation or engineering review meetings.

Getting ready

In order to complete this recipe, you will need to have a Ladder Logic Routine and a Function Block Diagram Routine to print.

How to do it...

  1. Open a Ladder Logic Routine by double-clicking on it in Controller Organizer (you can use the VALVES routine that we created earlier in the book).

  2. Open the drop-down menu option by navigating to File | Print Options. Print Options allow us to modify the data that is printed and how it is displayed for the wide range of reports we can generate from RSLogix 5000 Review the available items in the Print Options window.

  3. Under the Tag Listing list box item, click to uncheck the Expand Arrays option.

  4. Return to Ladder Logic Routine and, from the drop-down menu, navigate to File | Print (or press Ctrl + P).

  5. Open a Function Block Diagram by double-clicking on it in Controller Organizer (you can use the DIGITAL_ALARM routine we created earlier in the book).

  6. We want our FBD routine to print to a standard 11 x 17 sheet of paper so that it can be included alongside our P&ID drawings. Right-click on the background of the FBD routine and select Properties (or press Alt + Enter).

  7. Click on the Sheet Layout tab and, from the Sheet Size drop-down selection, click on the option Tabloid: 11 x 17 in. Then click on the OK button. This will also provide a much larger area to lay out your FBD routines.

  8. Print the FBD by opening the drop-down menu and navigating to File | Print (or press Ctrl + P).

How it works...

RSLogix offers a wide range of options for printing our tags, logic, and reports. Function Block Diagrams can benefit from a larger Sheet Size as it provides a larger area to lay out your routines.