Chapter 16 PLC Function Applications│CP2000 
 
16-117 
 
API   
 
OR※ 
 
S1 S2
 
Contact form compare OR* 
240– 
246 
 
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 compares the content of S
1
 and S
2
. Taking API 240 (OR=) as an 
example, when the result of comparison is equal, this command will be activated; 
when the result of comparison is unequal, this command will not be activated.   
  The OR* command is a compare command in parallel with a contact.   
API No.  16-bit commands 32-bit commands 
Conditions for 
activation 
Conditions for 
inactivation 
240 
OR=  DOR= 
S
1 
=  S
2
 
S
1 
≠ S
2
 
241 
OR>  DOR> 
S
1 
>  S
2
  S
1 
≦  S
2
 
242 
OR<  DOR< 
S
1 
<  S
2
  S
1 
≧  S
2
 
244 
OR<>  DOR<> 
S
1 
≠ S
2
 
S
1 
=  S
2
 
245 
OR<=  DOR<= 
S
1 
≦  S
2
  S
1 
>  S
2
 
246 
OR>=  DOR>= 
S
1 
≧  S
2
  S
1 
<  S
2
 
 
 
  When X0=On and the current value of C10 is also equal to K200, Y10=On.   
  When X1=Off and the content of register D0 is not equal to K-10, Y11=On and 
remains in that state.   
  When X2 =On and the content of the 32-bit register D0 (D11) is less than 678,493, 
or M3=On, M50=On.   
X2 M30
M60
OR>=
K200
C10
X1
Y0
DOR>=
D100
K100000