Chapter 16 PLC Function Applications│CP2000 
 
 
16-116
 
API   
 
AND※ 
 
S1 S2
 
Contact form compare AND* 
232– 
238 
 
D   
 
  
 
 
Bit device    Word device   
16-bit command    (5 STEP) 
AND※ 
Continuous 
execution type 
-  - 
 
32-bit command    (9 STEP) 
DAND※ 
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 232 (AND=) 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 AND* command is a comparison command in series with a contact.   
API No.  16-bit commands 32-bit commands 
Conditions for 
activation 
Conditions for 
inactivation 
232 
AND=  DAND= 
S
1 
=  S
2
 
S
1 
≠ S
2
 
233 
AND>  DAND> 
S
1 
>  S
2
  S
1 
≦  S
2
 
234 
AND<  DAND< 
S
1 
<  S
2
  S
1 
≧  S
2
 
236 
AND<>  DAND<> 
S
1 
≠ S
2
 
S
1 
=  S
2
 
237 
AND<=  DAND<= 
S
1 
≦  S
2
  S
1 
>  S
2
 
238 
AND>=  DAND>= 
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.   
AND=
K200 C10
DAND>
K678493 D10
M3
Y10
AND<>
K-10 D0
SET Y11
M50
X2
X1
X0