A.3 application to ladder program, A.3.1 conditional expression of if instruction, A.3.2 conditional expression of while instruction – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual
Page 247

A.3 Application to Ladder Program
A-9
A
A.3 Application to Ladder Program
The use of Expression in the ladder program is divided into three kinds of the following.
• Conditional expression of IF instruction
• Conditional expression of WHILE instruction
• Operational expression of EXPRESSION instruction
The use example is explained as follows.
A.3.1 Conditional Expression of IF Instruction
The Expression is described in the conditional expression description area of the IF instruc-
tion and the ELSE instruction. However, only Expression which outputs the result of the
bool type can be described. Therefore, the description of the Expression which includes the
substitution operator is not recognized.
MB000001
= = true
OK
MW00002 < 100
OK
MW00003 !
= MW00004
OK
MB000005
= false
NG
MW00007
= MW00010
NG
A.3.2 Conditional Expression of WHILE Instruction
The Expression is described in the conditional expression description area of the WHILE
instruction. However, only Expression which outputs the result of the bool type can be
described. Therefore, the description of the Expression which includes the substitution oper-
ator is not recognized.
Refer to the example of A.3.1 "Conditional Expression of IF Instruction".
EXAMPLE
EXAMPLE