Chapter 16 PLC Function ApplicationsC2000-HS 
 
16-110
 
API   
 
LD#   
 
S1 S2
 
Contact form logical operation LD# 
215– 
217 
 
D   
 
  
 
 
Bit device    Word device   
16-bit command    (5 STEP) 
LD#  Continuous 
execution type 
-  - 
 
32-bit command    (9 STEP) 
DLD#  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 range 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 LD#This command can be used while directly connected with the busbar   
API No. 
16-bit 
commands 
32-bit 
commands 
Conditions for 
activation 
Conditions for inactivation 
215  LD&  DLD& 
S
1
 
& 
S
2
 
0 
S
1
 
& 
S
2
 
0 
216  LD|  DLD| 
S
1
 
| 
S
2
 
 0 
S
1
 
| 
S
2
 
0 
217  LD^  DLD^ 
S
1
 
^ 
S
2
 
 0 
S
1
 
^ 
S
2
 
0 
  &: logical AND operation.   
 
|: logical OR operation.   
 
^: logical XOR operation.     
 
  When the content of C0 and C10 is subjected to the logical AND operation, and 
the result is not equal to 0, Y10=On.   
  When the content of D200 and D300 is subjected to the logical OR operation, and 
the result is not equal to 0, and X1=On, Y11=On and remains in that state.   
LD
C0 C10
LD
D200 D300
SET
X1
&
I
Y11
Y10