Function, Expression, Execution condition – Toshiba SX 2000 User Manual
Page 62: Operand, Exampie
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".
1.4 Free ASCII mode
(2) HEX to ASCII conversion (HTOA)
FUN 62
HTOA
HEX to ASCII conversion
Expression
Input —^ ^ ^TOA (n) B ]— Output
Function
When the input is ON, the hexadecimal data of
n
registers starting with
A
is
converted to the ASCII characters and stored in
B
and after.
The uppermost digit of source
A
is stored in lower byte of destination 6, and
followed in this order.
The allowable range of n is 1 to 32.
When index or constant value is set as source
A.,
this function can be
performed under the condition that n is equal to 1. If n is more than 1, a
boundary error is occured.
Execution condition
Input
Operation
Output
OFF
No execution
OFF
ON
Normal execution
ON
Operand
Device
Register
Con
stant
Name
X
Y
S
L
R
Z
T.
c.
I
0
X
Y
s
L
R
w
T
c
D
F
I
0
I
J
K
Index
W W
w
W
W
w w
A
Source
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
n
Size
1 -32
B
Destination
V
V
V
V
V
V
V
V
V
V
V
Exampie
When R0010 is ON, 4 words data of RW100 to RW103 are converted into ASCII
characters, and stored in 8 words registers starting with D0220.
6F8C0926
45