![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454246.webp)
All BASIC commands
Section 4-2
235
4-2-206 REPEAT..UNTIL
/i
4-2-207 RESET
/i
4-2-208 RETURN
See
GOSUB..RETURN
.
Type
Program control command
Syntax
REPEAT
commands
UNTIL condition
Description
The
REPEAT ... UNTIL
structure allows the program segment between
the
REPEAT
and the
UNTIL
statement to be repeated a number of
times until the condition becomes
TRUE
.
Note:
REPEAT ... UNTIL
construct can be nested indefinitely.
Arguments
•
commands
Any valid set of BASIC commands
•
condition
Any valid BASIC logical expression
Example
A conveyor is to index 100mm at a speed of 1000mm/s, wait for 0.5s
and then repeat the cycle until an external counter signals to stop by
turning on input 4.
cycle:
SPEED = 1000
REPEAT
MOVE(100)
WAIT IDLE
WA(500)
UNTIL IN(4) = ON
See also
FOR..TO..STEP..NEXT
,
WHILE..WEND
.
Type
System command
Syntax
RESET
Description
The
RESET
command sets the value of all local variables of the current
BASIC task to 0.
Arguments
N/A
Example
No example.
See also
CLEAR
.
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...