EasyManuals Logo
Home>Omron>Industrial Equipment>SYSMAC FH Series

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 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
Page #216 background imageLoading...
Page #216 background image
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

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals