A.2 recognizable expression, A.2.1 arithmetic operator, A.2.2 comparison operator – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual
Page 244: A.2.3 logic operator

Appendix A Expression
A.2.1 Arithmetic Operator
A-6
A.2 Recognizable Expression
The Expression is described by combining the operand and the operator. There are some restric-
tions in the description method. The restriction is explained as follows.
A.2.1 Arithmetic Operator
This operator can be used for the operand of the integer type and the real type.
The monadic minus can be used only once. The bit operation can use only the integer type.
The arithmetic operation cannot be used for the operand of the bit type.
Even if the calculation value exceeds the range of the register, the type conversion is not
automatically done. Therefore, the user should allocate an appropriate type in the variable.
MW00001
= MW00002 + MW00003
OK
MW00001
= MW00002 / 345
OK
MF00002
= (MW00004 + MF00002) / (ML00018 + MW00008)OK
MW00001
= MW00002 & 4096
OK
MB000010
= MB000011 − MB000012
NG
MW00001
= MB000011 ∗ MW00001
NG
A.2.2 Comparison Operator
This operator can be used for the operand of the integer type and the real type.
The register of the bit type should come left. In the case to do the comparison which uses “
=
= ” or “ != ” for the operand of the integer bit type, the comparison object should be an
expression of true/false.
MB000010
= MW00002 != MW00003
OK
MB000010
= MF00002 < 99.99
OK
MB000010
= MW00002 >= MW00003
OK
MB000010
= MB000011 = = true
OK
MB000010
= MB000011 != 0
NG
MB000010
= MB000011 = = 1
NG
A.2.3 Logic Operator
This operator can be used only for the operand of the bit type.
MB000010
= MB000011 && MB000012
OK
MB000010
= !MB000011
OK
MB000010
= (MW000020 >= 50) && MB000011
OK
MB000010
= MW00001 || MW00002
NG
MB000010
= !MW00001
NG
EXAMPLE
EXAMPLE
EXAMPLE