Chapter  16  PLC  Function  ApplicationsC2000-HS 
 
16-111
 
API   
 
AND# 
 
S1 S2
 
Contact form logical operation AND# 
218– 
220 
 
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 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 AND# command is an operation command in series with the contact.   
API No. 
16-bit 
commands 
32-bit 
commands 
Conditions for 
activation 
Conditions for inactivation 
218  AND& 
DAND& 
S
1
 
& 
S
2
 
0 
S
1
 
& 
S
2
 
0 
219  AND|  DAND| 
S
1
 
| 
S
2
 
0 
S
1
 
| 
S
2
 
0 
220  AND^  DAND^ 
S
1
 
^ 
S
2
 
0 
S
1
 
^ 
S
2
 
0 
  &: logical AND operation.   
  |: logical OR operation.   
  ^: logical XOR operation.   
 
  When  X0=On  and  the  content  of  C0  and  C10  is  subjected  to  the  logical 
AND operation, and the result is not equal to 0, Y10=On.   
  When X1=Off and D10 and D0 is subjected to the logical OR operation, and the 
result is not equal to 0, Y11=On and remains in that state.   
  When  X2  =On  and  the  content  of  the  32-bit  register  D200  (D201)  and  32-bit 
register D100 (D101) is subjected to the logical XOR operation, and the result is 
not equal to 0 or M3=On, M50=On.   
M3
DAND
D200 D100
M50
AND
C0 C10
AND
D10 D0
SET
&
^
I
Y11
Y10
X0
X1
X2