![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429034.webp)
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
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...