72
D320 PLC User's Manual
Logic Instructions
Mnemonic
Command
Word
Double Word
Description
AND
(DAND)
AND (logic multiply)
AND
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
D 0
0 0
1
OR
(DOR)
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
D 0
1 1
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
D 0
1 1
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
D 1
0 0
1
Rotation Instructions
Mnemonic
Command
Word
Double 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
Summary of Contents for D320 PLC
Page 1: ...D320 PLC User s Manual...
Page 18: ...6 D320 PLC User s Manual...
Page 28: ...16 D320 PLC User s Manual...
Page 34: ...22 D320 PLC User s Manual...
Page 78: ...66 D320 PLC User s Manual...
Page 176: ...164 D320 PLC User s Manual...
Page 210: ...198 D320 PLC User s Manual...
Page 258: ...246 D320 PLC User s Manual...