Chapter 14 PLC Function |C200 Series
14-58
API
221~
223
D
OR#
S1 S2
Contact Logical operation OR#
Bit Devices Word Devices
X Y M K H KnX KnY KnM T C D
S
1
* * * * * * * *
S
2
* * * * * * * *
Operand: #: &, |, ^
Please refer to the specifications of each model for the
range of operands.
16-bit command (5 STEPS)
OR#
ZRSTP
32-bit command (9 STEPS)
DOR#
- - -
Flag signal: none
Explanation
1. S
1
: Data source device 1 S
2
: Data source device 2
2. This instruction compares the content in S
1
and S
2
. If the result is not “0”, the
continuity of the instruction is enabled. If the result is “0”, the continuity of the
instruction is disabled.
3. OR# (#: &, |, ^) is an operation instruction used on parallel contacts.
API No.
16 -bit
instruction
32 -bit
instruction
Continuity condition
No-continuity
condition
221 OR&
DOR&
S
1
& S
2
0 S
1
& S
2
0
222 OR| DOR| S
1
| S
2
0 S
1
| S
2
0
223 OR^ DOR^ S
1
^ S
2
0 S
1
^ S
2
0
4. &: Logical “AND” operation
5. |: Logical “OR” operation
6. ^: Logical “XOR” operation
Example
When X1 = On and the result of logical AND operation of C0 and C10 ≠ 0, Y10 = On.
1. M60 will be On, if X2 and M30 are On with one of the following two conditions: 1.
The OR operation result of 32-bit register D10 (D11) and 32-bit register D20(D21)
does not equal to 0. 2. The XOR operation result of 32-bit counter C235 and
32bits register D200 (D201) does not equal 0.
LD=
K200 C10
Y10
LD>
D200 K-30
X1
SET Y11
Call 1(800)985-6929 for Sales
Call 1(800)985-6929 for Sales