52 D50 PLC User's Manual
Logic Instructions
Mnemonic Command Byte Word Description
WAND
(DAND)
Bitwise AND (logic
multiply)
ND
D =
S1 =
S2 =
DAND
D =
S1 =
S2 =
Store AND of S1 and S2 in D.
S1 0 0 1 1
S2 0 1 0 1
D0 00 1
WOR
(DOR)
Bitwise OR (logic
sum)
OR
D =
S1 =
S2 =
DOR
D =
S1 =
S2 =
Store OR of S1 and S2 in D.
S1 0 0 1 1
S2 0 1 0 1
D0 11 1
XOR
(DXOR)
Exclusive OR
XOR
D =
S1 =
S2 =
DXOR
D =
S1 =
S2 =
Store exclusive OR of S1 and S2 in
D.
S1 0 0 1 1
S2 0 1 0 1
D0 11 0
XNR
(DXNR)
Exclusive OR NOT
(equal circuit)
XNR
D =
S1 =
S2 =
DXNR
D =
S1 =
S2 =
Store exclusive OR NOT of S1 and
S2 in D.
S1 0 0 1 1
S2 0 1 0 1
D1 00 1
Rotation Instructions
Mnemonic Command Byte Word Description
RLC
(DRLC)
Rotate left without
carry
RLC
D =
N =
DRLC
D =
N =
Rotate contents of designated
register D to the left N times.
(lower→higher)
F1.8 15 ...D... 0
RRC
(DRRC)
Rotate right without
carry
RRC
D =
N =
DRRC
D =
N =
Rotate contents of designated
register D to the right N times.
(higher→lower)
15 ...D... 0 F1.8
ROL
(DROL)
Rotate left
ROL
D =
N =
DROL
D =
N =
Rotate (shift) to the left N times.
(lower→higher)
(Input F1.8 value for low bit)
15 ...D... 0 F1.8
ROR
(DROR)
Rotate right
ROR
D =
N =
DROR
D =
N =
Rotate (shift) to the right N times.
(higher→lower)
(Input F1.8 value for high bit)
15 ...D... 0 F1.8
SHL
(DSHL)
Shift left
SHL
D =
N =
DSHL
D =
N =
Shift value of designated register D to
the left N times. (Input 0 for low bit)
F1.8 15 ...D... 0 0
SHR
(DSHR)
Shift right
SHR
D =
N =
DSHR
D =
N =
Shift value of designated register D to
the right N times. (Input 0 for high bit)
0 15 ...D... 0 F1.8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com