26
as shown in the following table. The operators are listed in the order of prece-
dence.
Logical Operator
Description, Example, and Result
A
1
0
NOT A
0
1
NOT (negation)
AND (logical product)
A B
A AND B
1 1
1 0
0 1
0 0
1
0
0
0
OR (logical sum)
A B
A OR B
1 1
1 0
0 1
0 0
1
0
XOR (exclusive-OR)
A B
A XOR B
1 1
1 0
0 1
0 0
0
IMP (implication)
EQV (equivalence)
A B
A IMP B
1 1
1 0
0 1
0 0
1
0
A B
A EQV B
1 1
1 0
0 1
0 0
1
0
0
1
1
1
1
1
1
1
0
Operator Priority
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)
8.
NOT
2. –
(negation)
9.
AND
3. *, /
10. OR
4. \
11.
XOR
5. MOD
12.
EQV
6. +.
–
13.
IMP
7. Relational
operators
Program Configuration
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...