10 if-else construct (if, else, end_if), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 164

5.5 Program Control Instructions
5.5.10 IF-ELSE Construct (IF, ELSE, END_IF)
5-95
Instructions
5
5.5.10 IF-ELSE Construct (IF, ELSE, END_IF)
( 1 ) Operation
When the conditional expression for the IF instruction is satisfied, only programming 1 is executed. Programming 2 is
not executed.
If the conditional expression is not satisfied, only programming 2 is executed. Programming 1 is not executed.
∗ 1. Programming 1 is executed and execution jumps to the next step.
∗ 2. Programming 2 is executed and execution jumps to the next step.
( 2 ) Format
∗ Write with the format for an EXPRESSION instruction.
Refer to Appendix D Format for EXPRESSION Instruction for details on the format used to write the expression.
IF instruction
<conditional_expression>
ELSE
Next step
Programming 1
Condition
satisfied?
Satisfied.
*1
Not satisfied.
*2
END_IF
Programming 2
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Conditional expression
{
*
{
*
{
*
{
*
×
{
*
{
*
, ,
Icon:
Key entry: IF, ELSE, IEND
Programming 1
Conditional
expression
Programming 2