Writing structured routines

To get started with structure text, let's write a simple routine and break down the components.

Simple routine

We have taken a brief look at the structured text editor, and now we will write a simple structured text routine to introduce some of the syntax and conventions. Our first structured text routine will provide an alarm count totalizer. The first version of this we create will have a few small errors, which we will correct as we learn more about structured text. Perform the following steps:

  1. Open the Controller Organizer pane and navigate to Tasks | Main Tasks | Main Program. Right-click on Main Program and select New Routine, as shown in the following screenshot:
  2. Configure a new structured text routine by setting ...

Get Learning RSLogix 5000 Programming 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.