· 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.