1 ) operators – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 404

D.1 Elements That You Can Use in Numeric Expressions
D-2
D.1
Elements That You Can Use in Numeric Expressions
Numeric expressions can include operators, operands (constants and variables), and functions.
This section describes each of these elements.
( 1 ) Operators
[ a ] Types of Operators and Usable Operators
The following table gives the types of operators and usable operators.
[ b ] Order of Evaluation
Operators are evaluated according to their processing priority and the order in which operands are grouped, as listed
below.
Operators on the same line have the same processing priority and are evaluated according to their grouping order.
Type
Usable Operators
Arithmetic and Logic
Operators
+
Add
−
Subtract
*
Multiply
/
Divide
%
Remainder
&
Bit-wise AND
|
Bit-wise OR
Logic Operators (Usable only
with bit data)
&&
Inclusive AND
||
Inclusive OR
!
Logical NOT
Comparison Operators
==
Equal to right-side value
!=
Unequal to right-side value
>
Greater than right-side value
>=
Greater than or equal to right-side value
<
Less than right-side value
<=
Less than or equal to right-side value
Substitution Operator
=
Substitutes left-side value with right-side value
Reserved Words
true
TRUE for a logical expression
false
FALSE for a logical expression
Priority*
Operators
Description
Grouping
Order
High
[] ()
Expression
Left to right
↑
↓
− !
Unary
Right to left
* / %
Multiplication, division, and remainder
Left to right
+
−
Addition and subtraction
< > <= >=
Relational
== !=
Equivalence
&
Bit-wise AND
|
Bit-wise OR
&&
Inclusive AND
Low
||
Inclusive OR