Book Image

Learning RSLogix 5000 Programming, - Second Edition

By : Austin Scott, Austin Scott
Book Image

Learning RSLogix 5000 Programming, - Second Edition

By: Austin Scott, Austin Scott

Overview of this book

Understanding programmable logic controller (PLC) programming with Rockwell Software’s Logix Designer and the Studio 5000 platform, which includes ControlLogix, CompactLogix, and SoftLogix, is key to building robust PLC solutions. RSLogix 5000/Studio 5000’s Logix Designer are user-friendly IEC 61131-3-compliant interfaces for programming the current generation of Rockwell Automation Controllers using Ladder Diagram (LD), Function Block Diagram (FBD), Structured Text (ST), and Sequential Function Chart (SFC). This second edition of Learning RSLogix 5000 Programming guides you through the technicalities and comes packed with the latest features of Studio 5000, industrial networking fundamentals, and industrial cybersecurity best practices. You’ll go through the essential hardware and software components of Logix, before learning all about the new L8 processor model and the latest Studio 5000 architecture to build effective integrated solutions. Entirely new for this edition, you’ll discover a chapter on cybersecurity concepts with RSLogix 5000. The book even gets you hands-on with building a robot bartender control system from start to finish. By the end of this Logix 5000 book, you’ll have a clear understanding of the capabilities of the Logix platform and be able to confidently navigate Rockwell Automation Literature Library resources.
Table of Contents (21 chapters)
1
Section 1: Introduction to RSLogix
7
Section 2: Logix Programming Basics
14
Section 3: Advanced Logix Programming

Using ST operators

ST is not case sensitive, so uppercase and lowercase letters are considered the same character by the compiler. There are best practices for using upper and lowercase letters, which we will demonstrate in our routines. Also, the ST compiler ignores whitespace, which is any space or tab character. This allows you to space out your code in order to make it easier to read.

Now that you have seen some structured text in action, let's take a look at the available operators in ST.

The assignment operator

The assignment operator changes a value stored in a tag. An assignment operation is comprised of four parts:

  • The tag
  • The operator (:=)
  • The expression
  • A semicolon at the end

The tag maintains the assigned value until it is changed by another assignment value. Even after a power cycle, the value is retained. In this respect, the non-retentive assignment operator is similar...