Figure 4.4.5.3 repeat instruction – Yaskawa YASNAC PC NC Programming Manual User Manual

Page 297

Advertising
background image

4 - 160

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

(2) Repeat Instructions

With the commands indicated above, blocks between the block next to the DO block and the
END block are repeatedly executed while the <conditional expression> is satisfied.

If the <conditional expression> is not satisfied, the program jumps to the block next to the
END block. It is possible to omit “WHILE [<conditional expression>]. In this case, the block
between the DO and END blocks is continually repeated.

FIGURE 4.4.5.3 Repeat Instruction

DO must be specified before END.

Note: °: Correct, ×: Incorrect

O1

-

END1

END1

-

DO1

°

×

Advertising