EasyManua.ls Logo

Mitsubishi Electric Q173DSCPU - Page 225

Mitsubishi Electric Q173DSCPU
556 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 - 2
5 OPERATION CONTROL PROGRAMS
(2) Priorities of operators and functions
Operators and functions have the following priorities.
Using parentheses allows an operation sequence to be specified freely.
Priority Item (Operator, Function)
High
Low
Calculation within parentheses ((...))
Standard function (SIN, COS, etc.), Type conversion (USHORT, LONG, etc.)
Bit inversion (~), logical negation (!), sign inversion ( )
Multiplication ( ), division (/), remainder (%)
Addition (+), subtraction ( )
Bit left shift (<<), bit right shift (>>)
Comparison operators: Less than (<), less than or equal to (<=),
more than (>), more than or equal to (>=)
Comparison operators: Equal to (==), not equal to (!=)
Bit logical AND (&)
Bit exclusive OR (^)
Bit logical OR (|)
Logical AND ( )
Logical OR (+)
Substitution (=)

Table of Contents

Related product manuals