Version 1.0, August 31, 2001, Copyright, Hugh Jack 1993-2001

24.4.2 For-Next

 

· For-next can be implemented as shown below, but recall that PLC programs do not execute one line at a time.

 

 

· A For/Next function is also available in the PLC.

 

· A do-while can be done as a simple variation of this.