![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686216.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
214
Vision System FH/FZ5 Series
User’s Manual (Z340)
2. Arithmetic Operator
An arithmetic operator performs an arithmetic operation, exponent operation, or remainder operation on
numerical value data, Division by 0 results in an error. If the interim result of an arithmetic operation such as
addition, subtraction, or multiplication is outside the range -1.0e30 to 1.0e30, an error will result.
Arithmetic operators that can be used in macro customize functions are shown below.
3. Relational Operator
A relational operator compares two numerical data items or two character data items. If the result of the
comparison is true, (-1) is returned. If false, (0) is returned. Normally this is used in an "If - Then" statement
for such purposes as controlling the flow of the program.
Relational operators that can be used in macro customize functions are shown below.
4. Logic Operator
A logic operator is used to investigate multiple conditions, and perform bit operations and binary operations
on exponential values. Logic operators that can be used in macro customize functions are shown below.
Operator
Description of operation
Example
Mathematical notation
+
Addition
A& + B&
A+B
-
Subtraction
A& - B&
A-B
*
Multiplication
A& * B&
AxB or AB
/
Division
A& / B&
A/B
^
Exponent operation
A& ^ B&
A
B
mod
Remainder
A& MOD B&
A-[A/B]Å~B
[] is the Gauss symbol
Operator
Description of operation
Example
=
Equal
A& = B&
<>, ><
Not equal
A& <> B&, A& >< B&
<
Less than
A& < B&
>
Greater than
A& > B&
<=, =<
Less than or equal to
A& <= B&, A& =< B&
>=, =>
Greater than or equal to
A& >= B&, A& => B&
When "=" is used in other than a conditional comparison such as an "If - Then" or "Select" statement, "=" is treated as a
assignment operator that assigns the value on the right side to the left side.
Operator
Description of operation
Example
NOT
Not
NOT A&
AND
Logical AND
A& AND B&
OR
Logical OR
A& OR B&
XOR
Exclusive OR
A& XOR B&
Note
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...