Loctite CARTESIAN 400 User Manual

Page 85

Advertising
background image

Parameters (the initial value, end value and step value) of the command “for” can be set using
variables or expressions.

declear num loop
declear num ival
if
ld #genIn1
then
loop = 5
else
loop = 10
endIf
for ival=1 to loop step 1
(contents of repetition)
next

Declare the local variable “loop.”
Declare the local variable “ival.”
If
#genIn1=ON
then
Assign 5 to “loop.”
If not
Assign 10 to “loop.”

The initial value of the variable “ival” is 1. Add to the
variable by one for every looping and repeat “for
next” until the value of the “ival” become the same as
the variable “loop (5/6).”

do ~ exitDo ~ loop

Repeat an operation from “do” to “loop” until it exits by “exitDo.”

do
(contents of repetition)
loop

If there is no condition to exit from repetition, repeat
looping endlessly.

do
(contents of repetition)
if
ld #genIn1
then
exitDo
endIf
(contents of repetition)
loop

(contents of repetition) can be put before or after
Condition.

Condition:
If #genIn1=1, exit from the repetition of “do ~ loop” and
go to the next command of “loop.”

In case of the looping commands, an error will occur if the nest level exceeds 10.

If you set the looping commands at CP Passing Point or a point whose Base Type is CP
Passing Point as a point job, the robot may stop because of too many loops.

Features II CARTESIAN Benchtop Robot

67

Advertising
This manual is related to the following products: