Writing Structured Text

In this chapter, we will explore the strengths and weaknesses of Structured Text (ST) programming by examining the typical uses of this language and building several small sample applications. As you will soon learn, there are some instances where writing ST programming can have many advantages over Ladder Logic and Function Block, such as real-time mathematical calculations.

This chapter will cover the following ST topics:

  • Applying ST programming
  • Writing structured routines
  • Using ST operators
  • Using expressions
  • Understanding instructions
  • Using the OSRI instruction
  • Understanding the ST constructs

In the first section of this chapter, we will provide a brief overview of ST programming.

Technical requirements

To complete ...

Get Learning RSLogix 5000 Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.