7 while construct (while, end_while), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 157

Advertising
background image

5.5 Program Control Instructions

5.5.7 WHILE Construct (WHILE, END_WHILE)

5-88

5.5.7 WHILE Construct (WHILE, END_WHILE)

( 1 ) Operation

The programming between the WHILE and END_WHILE instructions are executed when the conditional expression
for the WHILE instruction is satisfied. After the last line is executed, program execution returns to the WHILE instruc-
tion. Execution of the programming is repeated for as long as the conditional expression is satisfied.
If the conditional expression is not satisfied, program execution jumps to the next step following the END_WHILE
instruction. None of the programming between the WHILE and END_WHILE instructions is executed.

∗ 1. The programming is executed and then execution returns to the WHILE instruction.

∗ 2. The programming is not executed and execution jumps to the next step.

( 2 ) Format

∗ Write with the format for an EXPRESSION instruction.

Refer to Chapter D Format for EXPRESSION Instruction for details on the format used to write the expression.

WHILE instruction

<conditional_expression>

END_WHILE

Next step

Programming

Condition

satisfied?

Satisfied.

*1

Not satisfied.

*2

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

Conditional expression

{

*

{

*

{

*

{

*

×

{

*

{

*

Programming

Conditional expression

Icon:

Key entry: WHILE, WEND

Advertising
This manual is related to the following products: