APPLIED OPERATIONS
/Protocol processor
OPERATION INSTRUCTIONS
2 - 1 6 5
Page
2-4-2-3 Protocol Repetition Processing
A protocol can be executed repeatedly for the specified number of times using a variable.
Use the For and Next commands to execute repetition.
The track enclosed between For and Next can be repeated for the number of times specified
using a variable.
Create the For track immediately before and the Next track immediately after the track to be
repeated by specifying a variable. After entering [For] in column [Mode], enter the variable
name and repetition condition in column [Condition].
Command
Condition
Description
For
Variables = start To end (Step n) Define a variable name in <Variables>, the
start value in <start>, end value in <End> and
an integer representing the number of steps
in <n>. The range to which the variable is
specified will be executed repeatedly. The
number of steps can be entered as required.
If it is not entered, the default repetition count
of 1 will be applied.
<Ex.> To repeat processing from the next
track to [For] to the previous track to
[Next] until variable i becomes from
1 to 5 (5 times), enter ”i = 1 To 5”.
Next
None (It is not required to enter
[Condition].)
Specify the turnover point of repetition. The
processing will be executed until the track
immediately before [Next], returns to the
track immediately after [For] and repeats
from there.
Processing is possible only when [For] and [Next] are entered as a set. Their combination
allows nesting for up to 16 times.