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.
To complete this recipe you should have completed the previous exercises.
- First, we will need to declare our new routine. Right-click on MainProgram of the Controller Organizer and select New Routine.
- In the New Routine form that appears, enter or select the following:
- Type: Structured Text
- Then click on OK.
- In order for our newly created routine to be executed with each scan of the PLC, we will need to add a reference ...