A.1 expression, A.1.1 operator, Usable operator – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 240: Arithmetic operator, Logic operator (only for the bit type), Comparison operator

Advertising
background image

Appendix A Expression

A.1.1 Operator

A-2

A.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.

A.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

Advertising
This manual is related to the following products: