Chapter 16 PLC Function ApplicationsC2000 Plus 
 
16-114
API  
 
OR#   
 
S1 S2
 
Contact form logical operation OR# 
221– 
223 
 
D  
 
  
 
 
Bit device    Word device   
16-bit command (5 STEP) 
OR#  Continuous 
execution type 
-  - 
 
32-bit command (9 STEP) 
DOR# Continuous 
execution type 
-  - 
 
Flag signal: none   
X Y M K  H KnX KnY KnM T  C  D 
S1    * * * * * * * * 
S2    * * * * * * * * 
Notes on operand usage:  #:&、|、^ 
Please refer to the function specifications table for each device in 
series for the scope of device usage 
 
 
  S
1
: data source device 1. S
2
: data source device 2.   
  This command performs comparison of the content of S
1
 and S
2
; when the result 
of comparison is not 0, this command will be activated, but this command will not 
be activated when the result of comparison is 0.   
  The OR# command is an operation command in series with the contact.   
API No. 
16-bit 
commands 
32-bit 
commands 
Conditions for 
activation 
Conditions for 
inactivation 
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 
  &: logical AND operation.   
  |: logical OR operation.   
  ^: logical XOR operation.   
 
  When X1=On or the content of C0 and C10 is subjected to the logical 
AND operation, and the result is not equal to 0, Y0=On.   
  When X2 and M30 are both equal to On, or the content of 32-bit register D10 (D11) 
and 32-bit register D20 (D21) is subjected to the logical OR operation, and the 
result is not equal to 0, or the content of the 32-bit counter C235 and the 32-bit 
register D200 (D201) is subjected to the logical XOR operation, and the result is 
not equal to 0, M60=On.   
OR
C0 C10
DOR
D10 D20
&
I
Y0
X2
X1
M30
M60
DOR
D25
D200
^