Mitsubishi MELSEC-q Programming Manual page 50

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

4 ST PROGRAM EXPRESSIONS
4 - 10
(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.
Conditional
expression 1
TRUE
Statement 1
FALSE
Conditional
expression 2
TRUE
Statement 2
FALSE
Conditional
expression 3
TRUE
Statement 3
FALSE
4 - 10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents