Yaskawa Ladder Works Programming Manual User Manual
Page 213

A-1
Appendix Expression
Outline
It is necessary to describe the conditional expression and the operational expression in IF, WHILE, and
the EXPRESSION instruction in the ladder instruction. Those expressions can be described by using
“Expression”.
The use rule of the Expression is explained as follows.
1. Expression
The Expression is composed of the operator, the operand (constant and variable), and functions. The
end of one Expression is shown by the semicolon‘;’. The expressions can be united by using
parentheses '(',')'.
Each component of the Expression is explained here.
1.1 Operator
○ Usable operator
There is the following kinds of usable operators.
・ Arithmetic operator
+ Addition
- Subtraction
* Multiplication
/ Division
% Surplus
&
AND of each bit
|
OR of each bit
・ Logic operator (Only for the bit type)
&& Logical
product
|| Logical
add
! Logical
denial
・ Comparison operator
==
Equal to a right value
!=
Not equal to a right value
>
Greater than a right value
>=
Greater than or equal to a right value
<
Less than a right value
<=
Less than or equal to a right value