
WWW.NNC.IR
Basic Knowledge For Macro Customize
Functions
215
5
Optimizing Scene
s (
M
ea
su
re
men
t Flo
w
s)
(M
acr
o
Custo
m
ize
Fu
ncti
ons)
Vision System FH/FZ5 Series
User’s Manual (Z340)
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.
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)
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)
Order of priority
Operator
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
A& = 1 + 2 + 4 / 2
B$ = "OMRON" + "FH"
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...