7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
365
7
WOR(P), DOR(P) [When three data are set]
■WOR
• Conducts a logical sum operation on each bit of the 16-bit data of the device designated by (S1) and the 16-bit data of the
device designated by (S2), and stores the results at the device designated by (D).
• For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
■DOR
• Conducts a logical sum operation on each bit of the 32-bit data of the device designated by (S1) and the 32-bit data of the
device designated by (S2), and stores the results at the device designated by (D).
• For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
(S1), (S2): Data for a logical sum operation or head number of the devices where the data is stored (BIN 16/32 bits)
(D): Head number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)
(S2)
(D)
Command
Command
P
WOR, DOR
WORP, DORP
S1
S2
S1
S2
D
D
indicates an instruction symbol of WOR/DOR.
0000
11
00
11
0000
11
1100110011110011
b15 b8 b0b7
b0b7b15 b8
OR
11
000000
1111
0000
b0b7b15 b8
S1
S2
D
00
1
0
11
0000
1111
b0
b15
b31
b16
OR
00
11
00
11
00
11
00
b0
b15
b31
b16
0011 111100 1111
b31
b16
b0
b15
+ 1
+ 1
+ 1
S1
S2
S1 S1
S2
S2
D
D D