4 - 10 4 - 10
4 ST PROGRAM EXPRESSIONS
(3) IF ... ELSIF conditional statement
[Format]
IF <Boolean expression 1> THEN
<Statement 1 ... >
ELSIF <Boolean expression 2> THEN
<Statement 2 ... >
ELSIF <Boolean expression 3> THEN
<Statement 3 ... >
END_IF;
[Explanation]
Statement 1 is executed when Boolean expression (conditional expression)
1 is TRUE. Statement 2 is executed if the value of Boolean expression 1 is
FALSE and the value of Boolean expression 2 is TRUE.
Statement 3 is executed if the value of Boolean expression 2 is FALSE and
the value of Boolean expression 3 is TRUE.
FALSE
TRUE
FALSE
TRUE
FALSE
TRUE
Conditional
expression 1
Conditional
expression 2
Conditional
expression 3
Statement 1
Statement 2
Statement 3
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......