It is time to jump into the ST editing environment we have talked about. To get started with ST, we will write a simple routine and break down the components. In the next few sections, you will see how ST programming can be useful for handling certain tasks, such as formulas, looping logic, and carrying out complex branching logic that Ladder Logic is not well suited for.
In the following exercise, we will use a basic ST syntax to keep track of the number of times a specific alarm is tripped. This control system construct is typically referred to as a totalizer.
We will begin the next section by creating a simple ST routine to count every time an alarm is activated in our control system.
A simple ST routine
We have briefly looked at the ST editor, so now we will write a simple ST routine to introduce some of the syntax and conventions. Our first ST routine will provide an alarm count totalizer. It will also provide an...