6F3B0250
132
T1/T1S User’s Manual
7. Instructions
Conversion instructions
FUN
Name
Expression
Function
Steps Speed Available Page
No.
(
m
s)
T1 T1S
062 Hex to ASCII
conversion
-
[
A HTOA (n) B ]
-
Converts the hexadecimal
data of
n words stating with A
into ASCII characters, and
stores them in
nx2 registers
starting with
B.
4
Ö
179
063 ASCII to Hex
conversion
-
[
A ATOH (n) B ]
-
Converts the ASCII
characters stored in
n
registers stating with
A into
hexadecimal data, and stores
them in
n/2 registers starting
with
B.
4
Ö
180
180 Absolute value
-
[
A ABS B ]
-
Stores the absolute value of
A
in
B.
3
5.0
Ö
Ö
249
182 2’s complement
-
[
A NEG B ]
-
Stores the 2’s complement
value of
A in B.
3
4.6
Ö
Ö
250
183 Double-word
2’s complement
-
[
A+1
×
A DNEG B+1
×
B ]
-
Stores the 2’s complement
value of
A+1
×
A in B+1
×
B.
3
4.6
Ö
Ö
251
185 7-segment
decode
-
[
A 7SEG B ]
-
Converts lower 4 bits of
A into
7-segment code, and stores it
in
B.
3
43.9
Ö
Ö
252
186 ASCII
conversion
-
[
A ASC B ]
-
Converts the alphanumerics
(max. 16 characters) of
A into
ASCII codes, and stores them
in registers starting with
B.
3 - 10
29.8 -
49.6
Ö
Ö
254
188 Binary
conversion
-
[
A BIN B ]
-
Converts the BCD data in
A
into binary data, and stores it
in
B.
3
65.5
Ö
Ö
255
190 BCD
conversion
-
[
A BCD B ]
-
Converts the binary data in
A
into BCD data, and stores it in
B.
3
55.6
Ö
Ö
256
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: [email protected]