AH500 Programming Manual 
6-198 
Example 2: 
When X0.1 is ON, the logical operator OR takes the data in the 32-bit device (Y11, Y10) and the 
32-bit device (Y21, Y20), and performs the logical inclusive OR operation on each pair of 
corresponding bits. The operation result is stored in (Y41, Y40). 
 
Before the instruction 
is executed
After the instruction
is executed
DOR
b15 b0b31
S
1
S
2
D
Y11 Y10
Y21 Y20
Y41 Y40
1 1 1 1 1 1 1 1
0 0 0 0
1 1 1 1
0 0 0
0 0
1 1 1 1 1
111
0 00 00 000
11111
1111 11 1 1 11 1 1
0 0 0 0 0 0 0 0 0 0 0
0 00 0
1 1 1 1 1 1 11 1 11 1111 1 1 1 1 1 11 1 11
0 0