4.12.2 [101] Jump function for loops
Typ
e
Function Typ
e
Function
I1 b Finish loop O1 - -
I2 b Restart loop O2 - -
I3 b Update input buffer P1 i Jump target (index)
I4 b
Update output buf-
fer
P2 i number of repetitions
Description:
An instruction indicated as jump target in P1 is executed as often as indicated in P2. Via the
inputs, the loop can be stopped or restarted.
− With P1, the jump target (the instruction to be executed repeatedly) is defined.
− With P2, the number of repetitions is defined.
Die jump function can be at the end of a series of instructions to be processed repeatedly.
An internal counter is set to the value of P2 and counted down each time the instructions speci-
fied in P1 are called.
− If input I1 is TRUE, the loop is stopped before it is finished. The jump is not executed and
the internal counter is reset to the start value P2.
− If input I2 is TRUE, the loop is restarted. The jump is executed and the internal counter is
reset to the start value P2.
− If input 3 is TRUE, the input buffer is updated.
− If input 4 is TRUE, the output buffer is updated.
I1 I2 I3 I4 Function
1 0 0 0 Stop, reset to start value P2
0 1 0 0 Restart, reset to start value P2
0 0 1 0 Update input buffer
0 0 0 1 Update output buffer
I2 (restart) has priority over I1 (stop).