Omron SYSMAC FH Series User Manual page 216

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

Advertisement

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.
Operator
+
-
*
/
^
mod
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.
Operator
=
<>, ><
<
>
<=, =<
>=, =>
Note
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.
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
NOT
AND
OR
XOR
214
Basic Knowledge For Macro Customize Functions
Description of operation
Addition
Subtraction
Multiplication
Division
Exponent operation
Remainder
Description of operation
Equal
Not equal
Less than
Greater than
Less than or equal to
Greater than or equal to
Description of operation
Not
Logical AND
Logical OR
Exclusive OR
WWW.NNC.IR
Example
A& + B&
A& - B&
A& * B&
A& / B&
A& ^ B&
A& MOD B&
Example
A& = B&
A& <> B&, A& >< B&
A& < B&
A& > B&
A& <= B&, A& =< B&
A& >= B&, A& => B&
Example
NOT A&
A& AND B&
A& OR B&
A& XOR B&
Mathematical notation
A+B
A-B
AxB or AB
A/B
B
A
A-[A/B]Å~B
[] is the Gauss symbol
Vision System FH/FZ5 Series
User's Manual (Z340)

Advertisement

Table of Contents
loading

Table of Contents