All BASIC commands
Section 4-2
234
4-2-202 REPEAT..UNTIL
/i
4-2-203 RESET
/i
4-2-204 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
.
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...