88 D50 PLC User's Manual
Instruction
Mnemonic Bit OR Operation Range
Bit
■ Byte
WOR
DOR
Bit OR operation
■ Word
Ladder
Process S1 and S2 in bit OR operation and store the result in D.
S1 S2 D
000
011
101
111
Description
1. Process S1 and S2 (byte/word) by bit OR operation and store the result in D.
For example: S1 = $00FF (hex)
S2 = $3333 (hex)
D = $33FF (hex)
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
Initial conditions: W0 = $00FF
W1 = $3333
W2 = $XXXX
Operation results: W0 = $00FF
W1 = $3333
W2 = $33FF
WOR
D =
S1 =
S2 =
R
R
DOR
D =
S1 =
S2 =
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
S2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
D 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1
OR
DOR
D = W2
S1 = W0
S2 = W1
R0.0
R
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com