A SERVICE OF

logo

[ For, Do-loop ]
For, Do-loop: for, next, exitFor, do, loop, exitDo
Command
Category
Command Parameter
Job
Control Variable,
Initial Value,
for
End Value,
Step Value
Repeats commands from “for” to “next” until
the specified variable changes from Initial
Value to End value.
next -
exitFor - Exits from “for” sentence.
for, do-loop
do -
loop -
Repeats commands from “do” to “loop.”
exitDo - Exits from “do” sentence.
for ~ exitFor ~ next
“for” is a command to specify the number of repetitions.
declear num ival
for ival=1 to 8 step 1
(contents of repetition)
next
Declare the local variable “ival.”
The initial value of the variable “ival” is 1. Add to the
variable by one for every looping and repeat the
commands from “for” to “next” until “ival” becomes 8.
declear num ival
for ival=1 to 8 step 1
(contents of repetition)
if
ld #genIn1
then
exitFor
endIf
next
Declare the local variable “ival.”
“exitFor” is a command to exit from the repetition of “for
next” and go to the next command of “next.”
Condition: If #genIn1=1, exit from the repetiion of “
next” even if “ival” does not become 8 and go to the
next command of “next.”
Features II CARTESIAN Benchtop Robot
66