B&R – PLC – Structured Text – FOR Statement Syntax FOR <control_variable> := <expression1> TO <expression2> BY <expression3> DO <statement_list> END_FOR; Example Var2 := 1; FOR Var1 := 1 TO 5 BY 1 DO Var2 := Var2 * 2; END_FOR;