7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
363
7
Logical sums of 16-bit data, logical sums of 32-bit data
WOR(P), DOR(P) [When two data are set]
■WOR
• Conducts a logical sum operation on each bit of the 16-bit data of the device designated by (D) and the 16-bit data of the
device designated by (S), 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 (D) and the 32-bit data of the
device designated by (S), 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.
(S): 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
(S)
(D)
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
S D
S D
WOR, DOR
WORP, DORP
indicates an instruction symbol of WOR/DOR.
1 001110011001100
11
0
1111111
00
1111
b15 b8 b0b7
b0b7b15 b8
OR
1 111110000 11
b0b7b15 b8
00 00
D
S
D
1 001 000111 0011
b0b15b31b16
OR
1111 000000 0011
b0b15b31b16
1111
000
111
00
11
b31b16 b0b15
+ 1
+ 1
+ 1
D
D
S
D
D
D
D
S
S