
6F3B0250
Basic Hardware and Function
127
7. Instructions
Logical operations
FUN Name Expression Function Steps Speed Available Pa
e
No.
(
m
s)
T1 T1S
048 AND
-[
A
AND
B
®
C
]-
Finds logical AND of
A
and
B,
and stores it in
C.
45.7
ÖÖ
174
050 OR
-[
A
OR
B
®
C
]-
Finds logical OR of
A
and
B,
and stores it in
C.
45.7
ÖÖ
175
052 Exclusive OR
-[
A
EOR
B
®
C
]-
Finds logical exclusive OR of
A
and
B,
and stores it in
C.
45.7
ÖÖ
176
064 Bit test
-[
A
TEST
B
]-
Turns ON output if lo
ical AND
of
A
and
B
is not 0
.
35.0
ÖÖ
181
Shift operations
FUN Name Expression Function Steps Speed Available Pa
e
No.
(
m
s)
T1 T1S
068
1 bit shift ri
ht
-[ SHR1
A
]-
Shifts data of
A
1 bit to the right
(LSB direction). The carry fla
changes according to the result
.
26.8
ÖÖ
182
069
1 bit shift left
-[ SHL1
A
]-
Shifts data of
A
1 bit to the left
(MSB direction). The carry fla
changes according to the result
.
26.8
ÖÖ
183
070
n bit shift ri
ht
-[
A
SHR
n
®
B
]-
Shifts data of
A
n
bits to the right
(LSB direction) and stores the
result in
B
. The carry flag
changes according to the result
.
4 10.2
ÖÖ
184
071
n bit shift left
-[
A
SHL
n
®
B
]-
Shifts data of
A
n
bits to the left
(MSB direction) and stores the
result in
B
. The carry flag
chan
es accordin
to the result.
4 10.2
ÖÖ
185
074
Shift re
ister
D SR Q
S (
n
)
E
A
When shift input (S) comes ON,
shifts the data of specified shift
re
ister 1 bit to the left, and
stores data input (D) state into
A
.
This operation is enabled while
enable input (E) is ON. The carry
fla
chan
es accordin
to the
result.
Shift register:
n
devices starting
with device
A
.
3 65.9 -
76.2
ÖÖ
186
075
Bi-directional
shift re
ister
D DSR Q
S (
n
)
E
L
A
When shift input (S) comes ON,
shifts the data of specified shift
re
ister 1 bit to the left or to the
ri
ht dependin
on direction input
(L). This operation is enabled
while enable input (E) is ON. The
carry fla
chan
es accordin
to
the result.
Shift register:
n
devices starting
with device
A
.
Direction: Left when L is ON,
ri
ht when L is OFF
3 69.0 -
79.3
ÖÖ
188
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net