Omron SYSMAC C200H-ASC02 Operation Manual page 34

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

Program Configuration
Operator Priority
24
formed after arithmetic and relational operations. The outcome of a logical
operation is determined as shown in the following table. The operators are
listed in the order of precedence.
Logical Operator
NOT (negation)
AND (logical product)
OR (logical sum)
XOR (exclusive-OR)
IMP (implication)
EQV (equivalence)
Arithmetic and logical operations are performed in the following order. Note,
however, that an expression or function enclosed by parentheses is executed
first, irrespective of operator priority.
1.
^ (exponentiation)
2. - (negation)
3. *, /
4. \
5. MOD
6. +. -
7. Relational operators
Calculation Examples of Logical Expressions
NOT (negation)
A =1= 0000000000000001
NOT 1 = 1111111111111110 = -2
NOT A = -2
AND (logical product)
Description, Example, and Result
A
1
0
A B
1 1
1 0
0 1
0 0
A B
1 1
1 0
0 1
0 0
A B
1 1
1 0
0 1
0 0
A B
1 1
1 0
0 1
0 0
A B
1 1
1 0
0 1
0 0
8. NOT
9. AND
10. OR
11. XOR
12. IMP
13. EQV
Section 4-1
NOT A
0
1
A AND B
1
0
0
0
A OR B
1
1
1
0
A XOR B
0
1
1
0
A IMP B
1
0
1
1
A EQV B
1
0
0
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents