Omron SYSMAC CJ Operation Manual page 246

Sysmac cj-series programmable controller motion control unit
Hide thumbs Also See for SYSMAC CJ:
Table of Contents

Advertisement

All BASIC commands
4-2-202 REPEAT..UNTIL
4-2-203 RESET
4-2-204 RETURN
234
/i
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.
/i
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.
See
.
GOSUB..RETURN
Section 4-2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-mch72

Table of Contents