O'Reilly logo

Instant PLC Programming with RSLogix 5000 by Austin Scott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a Structured Text program (Simple)

In this recipe, we will explain a typical-use case for Structured Text (ST) programming. In our exercise, we will develop a simple Structured Text program for calculating the flow rate based on our valve position.

Getting ready

To complete this recipe you should have completed the previous exercises.

How to do it...

  1. First, we will need to declare our new routine. Right-click on MainProgram of the Controller Organizer and select New Routine.
  2. In the New Routine form that appears, enter or select the following:
    • Name: CALCULATIONS
    • Description: Process Calculations
    • Type: Structured Text
  3. Then click on OK.
  4. In order for our newly created routine to be executed with each scan of the PLC, we will need to add a reference ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required