Expression - Omron SYSMAC FH Series User Manual

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

Operation Order of Operators
When multiple operators are included in one expression, operations are executed in the order of priority of
the operators. If you want to control the order of the operations, enclose the operations you want to perform
first in parentheses.
The order of priority of the operators is shown below.
Order of priority
1
Operation enclosed in parentheses
2
Macro function
3
Exponent operation (^)
4
Minus sign (-)
5
Multiplication and division (*, /)
6
Remainder (mod)
7
Addition and subtraction (+, -)
8
Relational operators (< >, =, etc.)
9
NOT
10
AND
11
OR
12
XOR

Expression

Constants, variables, and the operators that join them are referred to as an expression. Not only joined
constants and variables, but the constants and variables themselves are expressions, and expressions and
combinations of expressions form a statement.
Numerical expression
An expression that returns a numerical value is referred to as a numerical expression. This joins numerical
constants, numerical variables, and macro functions that return numerical values with arithmetical operators
and logic operators. Multiple numerical expressions can be joined by enclosing the expressions in
parentheses.
(Example of a numerical expression)
A& = 1 + 2 + 4 / 2
Character expression
An expression that returns a character string is referred to as a character expression. This joins character
string constants, character string variables, and macro functions that return character strings with plus signs.
Multiple character expressions can be joined by enclosing the expressions in parentheses.
(Example of a character expression)
B$ = "OMRON" + "FH"
Vision System FH/FZ5 Series
User's Manual (Z340)
Operator
Basic Knowledge For Macro Customize
WWW.NNC.IR
5
215
Functions

Advertisement

Table of Contents
loading

Table of Contents