Chapter 6 Applied Instructions 
6-10 
API 
Instruction code  Operand 
Function 
0012~ 
0017 
D
OR※ 
 
S
1
, S
2
 
Comparing the values 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
  Pulse instruction  16-bit instruction (5 steps)
32-bit instruction (5 steps) 
Symbol: 
 
Taking OR= and DOR= for example 
S
1
 
:
Data source 1  Word/Double word 
S
2
 
:
Data source 2  Word/Double word 
Explanation: 
1.  The instructions are used to compare the value in S
1
 with that in S
2
. Take the instruction OR= 
for example. When the comparison result is that the value in S
1
 is equal to that in S
2
, the 
condition of the instruction is met. When the comparison result is that the value in S
1
 is not 
equal to that in S
2
, the condition of the instruction is not met. 
2.  Only the 32-bit instruction can use the 32-bit counter. 
number 
instruction 
instruction 
Comparison operation result 
0012 
OR=  DOR=  S
1
=S
2
 
S
1
≠S
2
 
0013 
OR<>  DOR<> 
S
1
≠S
2
 
S
1
=S
2
 
0014 
OR>  DOR>  S
1
>S
2
  S
1
≦S
2
 
0015 
OR>=  DOR>=  S
1
≧S
2
  S
1
<S
2
 
0016 
OR<  DOR<  S
1
<S
2
  S
1
≧S
2
 
0017 
OR<=  DOR<=  S
1
≦S
2
  S
1
>S
2
 
Example: 
1.  When X0.1 is ON, or when the current value in C10 is equal to 100, Y0.10 is ON.   
2.  When both X0.2 and M30 are ON, or when the value in (D101, D100) is greater than or equal 
to 1000,000, M60 is ON.