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
Description, Example, and Result
NOT (negation)
A
NOT A
1
0
0
1
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
1
1
0
XOR (exclusive-OR)
A B
A XOR B
1 1
1 0
0 1
0 0
0
1
1
0
IMP (implication)
A B
A IMP B
1 1
1 0
0 1
0 0
1
0
1
1
EQV (equivalence)
A B
A EQV B
1 1
1 0
0 1
0 0
1
0
0
1
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. IMP
6. +. -
13. EQV
7. Relational
operators
Calculation Examples of Logical Expressions
NOT (negation)
A =1= 0000000000000001
NOT 1 = 1111111111111110 = -2
NOT A = -2
AND (logical product)
Program Configuration
Section 4-1
Summary of Contents for SYSMAC C200H-ASC02
Page 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Page 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Page 122: ...Appendix B Specifications 115 130 35 100 5 ...
Page 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...