Let’s begin first with the traditional PLC ladder programming language, using Studio 5000 programming software.
We will use the Emulate 5570 controller type.
The Emulate 5570 controller is a software controller running on the same computer as Studio 5000 and allows simulation of the program logic.
We will create a User-Defined data type supporting the tank, pump, and valve tags that are common to all the programming language types and the logic will control which program to use these tags one at a time.
For the three language types, we will create the Ladder routine, which is one of the three IEC-61131 routines.
- First, let’s create the ladder routine. Right-click over the MainProgram folder, select Add, and then New Routine. For the Name, we will type in RealPars_Ladder, and for the Type, we ...
Before we begin to program the Ladder routine, we went ahead and added a few rungs of ladder logic to simulate the tank level. If you would like to follow along, the Studio file, named RealPars_IEC61131 can be downloaded from this link: https://bit.ly/3sPXOO2
- The first three rungs in the MainRo...
Let’s begin to program the ladder logic routine.
We will add two new rungs to our ladder routine.
We use a greater than or equal element that compares the tank level tag, with the pump start setpoint tag, and latches the SoftWaterTank.PumpStarter and SoftWaterTank.WaterValve coils.