Repeat (while wend) command -24 – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 109

Advertising
background image

MotionSuite™ Series Machine Controller Programming Manual

Chapter 3: Advanced Programming Methods

3-24

3.1.10 Repeat (WHILE WEND) Command

! Outline

The Repeat (WHILE WEND) command repeats to execute the block within a designated
range, when the conditional expression is being formed.

! Detailed Explanation

The Repeat command method is shown as follows:

According to the above command, the WHILE~WEND block is repeated when the
conditional expression is being formed. If the conditional expression becomes invalid,
it jumps to the block after WEND.

WHILE (Conditional expression);
...;
...; (Process)
...;
WEND;

← Repeat command ends.

Process 1

Conditional
Expression

Valid

Invalid

Advertising