Automation studio B&R PLC ST programming PART 13 - WHILE .....DO LOOP for finding highest value.

Image
 While do loop is used continuously monitor a condition, if the condition is fulfilled the statement insdie the loop is executed. Otherwise it will jump out of loop. In  tutorial the while is continuously monitoring the Array J[i] which is having integer value, and displaying the largest value. Download Prog file from below drive link:- https://drive.google.com/file/d/1bzc0gqOsBHh_NUvumjbhzAdq090prK-4/view?usp=sharing Explanation:- Below is the flow of While do loo[ for Program execution:- Below are the variables used in While loop example:-

Automation studio B&R PLC ST programming PART 14 - WHILE .....DO LOOP for reducing program lenght

 While do loop can be used to repeat particular task sequential until the condition is false.

Youtube Video below:-



Explanation:-

While....do loop can be used to reduce the program length in which 'N' number of variables are involved.



Below are the variables considered in Programming:-







Simple and function block programming will increase the length of programming code. While do loop reduces the programming code length.


Below example will illustrate the application of while loop for program reduction.

You tube link :-

while...do loop for program reduction

Download program backup from drive :-

https://drive.google.com/file/d/12s26nzZ_IBplzBYWDpIray2d8tInKkzR/view?usp=sharing









Comments

Popular posts from this blog

Automation studio B&R PLC ST programming PART 13 - WHILE .....DO LOOP for finding highest value.

Automation Studio B&R PLC Part 10 - Using 'CASE Statement' for programming Complete Tank Level Logic in ST