-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

PLCs for Beginners
By :

The IEC 61131-3 standard governs three different types of loops. The three types of governed loops are as follows:
If you’ve programmed in a language such as C++, Java, or C# before, you’re probably already familiar with these types of loops. In practice, the loops will behave the same as in ST. Regardless, we’re going to explore what they are and how they work.
A counter loop is straightforward. A counter loop will loop over a block of code a certain number of times. This means that a counter loop will start with a specific number, increment, and then terminate when a numerical condition is met. For example, a counter loop may use a counter variable that starts at 1 and will loop for as long as the counter variable is less than, say, 20.
Most programming languages use what’s called a FOR
loop to implement a counter loop, and ST...