6F3B0250
128
T1/T1S User’s Manual
7. Instructions
Rotate operations
FUN
Name
Expression
Function
Steps Speed Available Page
No.
(
m
s)
T1 T1S
078 1 bit rotate right
-
[ RTR1
A ]
-
Rotates data of
A 1 bit to the
right (LSB direction). The
carry flag changes according
to the result
.
2
6.8
Ö
Ö
190
079 1 bit rotate left
-
[ RTL1
A ]
-
Rotates data of
A 1 bit to the
left (MSB direction). The
carry flag changes according
to the result
.
2
6.8
Ö
Ö
191
080 n bit rotate right
-
[
A RTR n
®
B ]
-
Rotates 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
Ö
Ö
192
081 n bit rotate left
-
[
A RTL n
®
B ]
-
Rotates data of
A n bits to the
left (MSB direction) and
stores the result in
B. The
carry flag changes according
to the result.
4
10.2
Ö
Ö
193
Compare instructions
FUN
Name
Expression
Function
Steps Speed Available Page
No.
(
m
s)
T1 T1S
096 Greater than
-
[
A > B ]
-
Turns ON output if
A
>
B.
3
6.1
Ö
Ö
196
097 Greater than or
equal
-
[
A >= B ]
-
Turns ON output if
A
³
B.
3
5.3
Ö
Ö
197
098 Equal
-
[
A = B ]
-
Turns ON output if
A
=
B.
3
5.0
Ö
Ö
198
099 Not equal
-
[
A <> B ]
-
Turns ON output if
A
¹
B.
3
5.0
Ö
Ö
199
100 Less than
-
[
A < B ]
-
Turns ON output if
A
<
B.
3
6.1
Ö
Ö
200
101 Less than or
equal
-
[
A <= B ]
-
Turns ON output if
A
£
B.
3
5.3
Ö
Ö
201
102 Double-word
greater than
-
[
A+1
×
A D> B+1
×
B ]
-
Turns ON output
if
A+1
×
A
>
B+1
×
B.
3
6.1
Ö
Ö
202
103 Double-word
greater than or
equal
-
[
A+1
×
A D>= B+1
×
B ]
-
Turns ON output
if
A+1
×
A
³
B+1
×
B.
3
5.3
Ö
Ö
203
104 Double-word
equal
-
[
A+1
×
A D= B+1
×
B ]
-
Turns ON output
if
A+1
×
A
=
B+1
×
B.
3
5.0
Ö
Ö
204
105 Double-word
not equal
-
[
A+1
×
A D<> B+1
×
B ]
-
Turns ON output
if
A+1
×
A
¹
B+1
×
B.
3
5.0
Ö
Ö
205
106 Double-word
less than
-
[
A+1
×
A D< B+1
×
B ]
-
Turns ON output
if
A+1
×
A
<
B+1
×
B.
3
6.1
Ö
Ö
206
107 Double-word
less than or
equal
-
[
A+1
×
A D<= B+1
×
B ]
-
Turns ON output
if
A+1
×
A
£
B+1
×
B.
3
5.3
Ö
Ö
207
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: [email protected]